net: fec: fix initial runtime PM refcount
Lucas Stach authored
The clocks are initially active and thus the device is marked active.
This still keeps the PM refcount at 0, the pm_runtime_put_autosuspend()
call at the end of probe then leaves us with an invalid refcount of -1,
which in turn leads to the device staying in suspended state even though
netdev open had been called.

Fix this by initializing the refcount to be coherent with the initial
device status.

Fixes:
8fff755e

 (net: fec: Ensure clocks are enabled while using mdio bus)
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Tested-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
14d2b7c1
Name Last commit Last update
..
3com 3c59x: Fix resource leaks in vortex_open
8390 drivers/net: remove all references to obsolete Ethernet-HOWTO
adaptec drivers/net: remove all references to obsolete Ethernet-HOWTO
adi drivers/net: remove all references to obsolete Ethernet-HOWTO
aeroflex net: greth: constify of_device_id array
agere drivers/net: remove all references to obsolete Ethernet-HOWTO
allwinner drivers/net: remove all references to obsolete Ethernet-HOWTO
alteon drivers/net: remove all references to obsolete Ethernet-HOWTO
altera altera_tse: Correct rx packet length
amd amd-xgbe: Fix DMA API debug warning
apm drivers: net: xgene: Pre-initialize ret in xgene_enet_get_resources()
apple drivers/net: remove all references to obsolete Ethernet-HOWTO
arc drivers/net: remove all references to obsolete Ethernet-HOWTO
atheros drivers/net: remove all references to obsolete Ethernet-HOWTO
broadcom Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
brocade drivers/net: remove all references to obsolete Ethernet-HOWTO
cadence macb: Fix build with macro'ized readl/writel.
calxeda ethernet: codespell comment spelling fixes
cavium net: thunderx: Fix for crash while BGX teardown
chelsio cxgb4: Fix incorrect sequence numbers shown in devlog
cirrus drivers/net: remove all references to obsolete Ethernet-HOWTO
cisco enic: fix issues in enic_poll
davicom dm9000: Add regulator and reset support to dm9000
dec drivers/net: remove all references to obsolete Ethernet-HOWTO
dlink drivers/net: remove all references to obsolete Ethernet-HOWTO
emulex
ezchip
faraday
freescale
fujitsu
hisilicon
hp
i825xx
ibm
icplus
intel
marvell
mellanox
micrel
microchip
moxa
myricom
natsemi
neterion
nuvoton
nvidia
nxp
octeon
oki-semi
packetengines
pasemi
qlogic
qualcomm
rdc
realtek
renesas
rocker
samsung
seeq
sfc
sgi
silan
sis
smsc
stmicro
sun
tehuti
ti
tile
toshiba
tundra
via
wiznet
xilinx
xircom
xscale
Kconfig
Makefile
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
korina.c
lantiq_etop.c
netx-eth.c