summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2015-08-03 17:50:11 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-06 18:53:25 -0700
commit14d2b7c1a96ef37eb571599c73d4a1a606b964d6 (patch)
treef20bc93cb449500e54bbe6afbddee1accfb90f23 /drivers/net/dsa
parent2475b22526d70234ecfe4a1ff88aed69badefba9 (diff)
downloadop-kernel-dev-14d2b7c1a96ef37eb571599c73d4a1a606b964d6.zip
op-kernel-dev-14d2b7c1a96ef37eb571599c73d4a1a606b964d6.tar.gz
net: fec: fix initial runtime PM refcount
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: 8fff755e9f8 (net: fec: Ensure clocks are enabled while using mdio bus) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud