]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: phy: xgmiitorgmii: Support generic PHY status read
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 15 Feb 2019 16:17:08 +0000 (17:17 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit8997d6c60dc0cd28aa6a21def348dd6eb1256cbd
tree387f571134098441874d853dd26033c6d9def6f3
parentc30445e5fc6f98bad77760872ee38947257e936c
net: phy: xgmiitorgmii: Support generic PHY status read

BugLink: https://bugs.launchpad.net/bugs/1837813
[ Upstream commit 197f9ab7f08ce4b9ece662f747c3991b2f0fbb57 ]

Some PHY drivers like the generic one do not provide a read_status
callback on their own but rely on genphy_read_status being called
directly.

With the current code, this results in a NULL function pointer call.
Call genphy_read_status instead when there is no specific callback.

Fixes: f411a6160bd4 ("net: phy: Add gmiitorgmii converter support")
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/phy/xilinx_gmii2rgmii.c