]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Feb 2019 08:08:05 +0000 (09:08 +0100)
commit071fb6b8087e2b6c5accc71b6902451453d08a01
tree859c9ea5e9d964e943bae619576de1411ade830a
parent718f16f5246e5fcae51c4f382ab0a6363e38539d
net: phy: xgmiitorgmii: Support generic PHY status read

[ 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: Sasha Levin <sashal@kernel.org>
drivers/net/phy/xilinx_gmii2rgmii.c