]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: phy: fixed_phy: Fix fixed_phy not checking GPIO
authorMoritz Fischer <mdf@kernel.org>
Thu, 7 Feb 2019 05:45:29 +0000 (21:45 -0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit75a78aa795456c2dd52f293ea332f5fcfa0531bd
treefd17faa2eafdfe54b97e0adf3226d2121db6c73d
parent5e1b2fad2a1d26e3b7aea33c891362ff533ebe92
net: phy: fixed_phy: Fix fixed_phy not checking GPIO

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 8f289805616e81f7c1690931aa8a586c76f4fa88 ]

Fix fixed_phy not checking GPIO if no link_update callback
is registered.

In the original version all users registered a link_update
callback so the issue was masked.

Fixes: a5597008dbc2 ("phy: fixed_phy: Add gpio to determine link up/down.")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/phy/fixed_phy.c