]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: brcmstb: Make two changes in MDIO register fields
authorJim Quinlan <james.quinlan@broadcom.com>
Fri, 14 Feb 2025 17:39:35 +0000 (12:39 -0500)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Tue, 4 Mar 2025 16:03:04 +0000 (16:03 +0000)
commita9ec9fb7385e519a793f2a33da5f748e17a0bc27
treeca15690ac40ffa682274f87a9e4b2f7f5a304285
parent42fd45be82bbb5b6cf0103e9e701d9801709c348
PCI: brcmstb: Make two changes in MDIO register fields

The hardware has been updated with two changes to the MDIO packet
format.

The CMD field used to be 12 bits and now is only 1 bit. This change
is backwards compatible because the field's starting bit position is
unchanged, and the only commands we've used have values 0 and 1.

The PORT field's width has been changed from 4 bits to 5 bits. When
written, the new bit is not contiguous with the other four. However,
this change is backwards compatible because the driver never used
anything other than 0 for the port field's value.

Thus, update the existing code to handle new changes to the hardware
in a backwards-compatible manner.

Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20250214173944.47506-8-james.quinlan@broadcom.com
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/pcie-brcmstb.c