linux/drivers/net/phy
Florian Fainelli ec988ad78e phy: Don't increment MDIO bus refcount unless it's a different owner
Commit 3e3aaf6494 ("phy: fix mdiobus module safety") fixed the way we
dealt with MDIO bus module reference count, but sort of introduced a
regression in that, if an Ethernet driver registers its own MDIO bus
driver, as is common, we will end up with the Ethernet driver's
module->refnct set to 1, thus preventing this driver from any removal.

Fix this by comparing the network device's device driver owner against
the MDIO bus driver owner, and only if they are different, increment the
MDIO bus module refcount.

Fixes: 3e3aaf6494 ("phy: fix mdiobus module safety")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-07 13:27:14 -05:00
..
Kconfig drivers: net: phy: Correct duplicate MDIO_XGENE entry 2016-10-06 21:15:42 -04:00
Makefile
amd.c
aquantia.c
at803x.c at803x: double check SGMII side autoneg 2016-10-27 16:05:17 -04:00
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm7xxx.c
bcm63xx.c
bcm87xx.c
broadcom.c
cicada.c
davicom.c
dp83640.c
dp83640_reg.h
dp83848.c net: phy: dp83848: add dp83822 PHY support 2016-10-29 17:25:17 -04:00
dp83867.c
et1011c.c
fixed_phy.c net: phy: fixed_phy: fix of_node leak in fixed_phy_unregister 2016-11-17 12:05:05 -05:00
icplus.c
intel-xway.c
lxt.c
marvell.c
mdio-bcm-iproc.c
mdio-bcm-unimac.c
mdio-bitbang.c
mdio-cavium.c
mdio-cavium.h
mdio-gpio.c
mdio-hisi-femac.c
mdio-moxart.c
mdio-mux-bcm-iproc.c
mdio-mux-gpio.c
mdio-mux-mmioreg.c
mdio-mux.c
mdio-octeon.c
mdio-sun4i.c
mdio-thunder.c
mdio-xgene.c drivers: net: phy: xgene: Fix 'remove' function 2016-09-13 12:04:11 -04:00
mdio-xgene.h
mdio_bus.c
mdio_device.c
micrel.c net: phy: micrel: fix KSZ8041FTL supported value 2016-11-23 20:18:36 -05:00
microchip.c phy: mark lan88xx_suspend() static 2016-09-19 21:52:10 -04:00
mscc.c net: phy: Add Wake-on-LAN driver for Microsemi PHYs. 2016-10-06 20:48:04 -04:00
national.c
phy.c net: phy: Trigger state machine on state change and not polling. 2016-10-13 12:03:47 -04:00
phy_device.c phy: Don't increment MDIO bus refcount unless it's a different owner 2016-12-07 13:27:14 -05:00
qsemi.c
realtek.c net: phy: realtek: fix enabling of the TX-delay for RTL8211F 2016-11-28 12:06:54 -05:00
smsc.c
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
vitesse.c net/phy/vitesse: Configure RGMII skew on VSC8601, if needed 2016-11-16 17:53:56 -05:00
xilinx_gmii2rgmii.c net: phy: xgmiitorgmii: Fix non static symbol warning 2016-08-23 17:17:48 -07:00