]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Add phydev_warn()
authorAndrew Lunn <andrew@lunn.ch>
Sat, 29 Sep 2018 21:04:10 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 05:55:35 +0000 (22:55 -0700)
commit1e06d82cc89a521f6c41efa3c952aedf53809e19
tree7dc31f40374d00acf6c2e232c26cbdfd14dfa9c3
parent474d26368e47ba66245fae2123fac7b59a9f99a6
net: phy: Add phydev_warn()

Not all new style LINK_MODE bits can be converted into old style
SUPPORTED bits. We need to warn when such a conversion is attempted.
Add a helper for this.

Convert all pr_warn() calls to phydev_warn() where possible.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c
drivers/net/phy/dp83640.c
drivers/net/phy/marvell.c
drivers/net/phy/marvell10g.c
drivers/net/phy/microchip.c
include/linux/phy.h