]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: Make switch detection more informative
authorPaul Barker <pbarker@konsulko.com>
Wed, 9 Sep 2020 10:04:14 +0000 (11:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 18:26:32 +0000 (11:26 -0700)
commitc02ba2e706a9f6658d46c4b3c2b56f35b4a92913
treeee97359239d5f9faec2e035c646fcefbdfbd29c5
parentf892b21577d390fa42a4f55e3070cce645106ec6
net: dsa: microchip: Make switch detection more informative

To make switch detection more informative print the result of the
ksz9477/ksz9893 compatibility check. With debug output enabled also
print the contents of the Chip ID registers as a 40-bit hex string.

As this detection is the first communication with the switch performed
by the driver, making it easy to see any errors here will help identify
issues with SPI data corruption or reset sequencing.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c