linux/drivers/phy/marvell
Miquel Raynal ae4c5d69ac phy: mvebu-cp110-comphy: fix port check in ->xlate()
So far the PHY ->xlate() callback was checking if the port was
"invalid" before continuing, meaning that the port has not been used
yet. This check is not correct as there is no opposite call to
->xlate() once the PHY is released by the user and the port will
remain "valid" after the first phy_get()/phy_put() calls. Hence, if
this driver is built as a module, inserted, removed and inserted
again, the PHY will appear busy and the second probe will fail.

To fix this, just drop the faulty check and instead verify that the
port number is valid (ie. in the possible range).

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2019-02-07 11:10:46 +05:30
..
Kconfig phy: phy-pxa-usb: add a new driver 2018-10-18 19:44:39 +02:00
Makefile phy: phy-pxa-usb: add a new driver 2018-10-18 19:44:39 +02:00
phy-armada375-usb2.c phy: armada375-usb2: switch to SPDX license identifier 2019-02-07 11:10:45 +05:30
phy-berlin-sata.c phy: fix build breakage: add PHY_MODE_SATA 2019-01-16 18:00:54 +05:30
phy-berlin-usb.c phy: berlin: switch to SPDX license identifier 2018-07-10 13:45:12 +05:30
phy-mvebu-cp110-comphy.c phy: mvebu-cp110-comphy: fix port check in ->xlate() 2019-02-07 11:10:46 +05:30
phy-mvebu-sata.c phy: make phy-mvebu-sata explicitly non-modular 2019-02-07 11:10:45 +05:30
phy-pxa-28nm-hsic.c
phy-pxa-28nm-usb2.c
phy-pxa-usb.c phy: phy-pxa-usb: add a new driver 2018-10-18 19:44:39 +02:00