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)
commit3c85f775151d8efb0fc83fd577a861c2356458e8
treeee97359239d5f9faec2e035c646fcefbdfbd29c5
parentd85427e3c8dd36ab5a1202cc2c003b307c49bc07
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