]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: phy: phylink: Release link GPIO
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 10 May 2018 20:17:30 +0000 (13:17 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:45 +0000 (14:20 +0100)
commit4d27166b834769f6df5ba8c0af2ab0f1e6c4c504
tree2d8204ddb3973c41133d07b308ed83214199f65b
parent8165c79843d9c2d3586f590501897704aa63ef72
net: phy: phylink: Release link GPIO

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit daab3349ad1a69663ccad278ed71d55974d104b4 ]

We are not releasing the link GPIO descriptor with gpiod_put() which results in
subsequent probing to get -EBUSY when calling fwnode_get_named_gpiod(). Fix this
by doing the release in phylink_destroy().

Fixes: 9525ae83959b ("phylink: add phylink infrastructure")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/phy/phylink.c