OSDN Git Service

net: dsa: microchip: Improve phy mode message
authorPaul Barker <pbarker@konsulko.com>
Wed, 9 Sep 2020 10:04:15 +0000 (11:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 18:26:32 +0000 (11:26 -0700)
commit805a7e6f53886f47b3f9cee57a580cb8f20b9252
tree7fee4773a3bd781d8488cdcf4e183f07881a51ae
parent3c85f775151d8efb0fc83fd577a861c2356458e8
net: dsa: microchip: Improve phy mode message

Always print the selected phy mode for the CPU port when using the
ksz9477 driver. If the phy mode was changed, also print the previous
mode to aid in debugging.

To make the message more clear, prefix it with the port number which it
applies to and improve the language a little.

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