summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/Kconfig
diff options
context:
space:
mode:
authorJerry Ray <jerry.ray@microchip.com>2022-09-02 16:30:20 -0500
committerDavid S. Miller <davem@davemloft.net>2022-09-07 11:06:04 +0100
commit732f374e23a9ae05dbc13825e4b02b3abce9f9aa (patch)
treece0cc7ceef66cc4f34f68d00e801e573c700943b /drivers/net/dsa/Kconfig
parent6674e7fd3beaf745b2e9d281a66f925a13de8ea7 (diff)
net: dsa: LAN9303: Add early read to sync
Add initial BYTE_ORDER read to sync the 32-bit accesses over the 16-bit mdio bus to improve driver robustness. The lan9303 expects two mdio read transactions back-to-back to read a 32-bit register. The first read transaction causes the other half of the 32-bit register to get latched. The subsequent read returns the latched second half of the 32-bit read. The BYTE_ORDER register is an exception to this rule. As it is a constant value, there is no need to latch the second half. We read this register first in case there were reads during the boot loader process that might have occurred prior to this driver taking over ownership of accessing this device. This patch has been tested on the SAMA5D3-EDS with a LAN9303 RMII daughter card. Signed-off-by: Jerry Ray <jerry.ray@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/Kconfig')
0 files changed, 0 insertions, 0 deletions