net: phy: smsc: Fix disabling energy detect mode
authorTeresa Remmet <t.remmet@phytec.de>
Wed, 20 Jan 2016 12:40:35 +0000 (13:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jan 2016 20:06:03 +0000 (12:06 -0800)
commit0a9c453eef65fed569757e21423400cfcd55e206
treec41e64503f7384cd64114cb46c0d047d56319f7f
parent8e0c2ab262b804f87d26499695e6bfa5f366780c
net: phy: smsc: Fix disabling energy detect mode

When the lan87xx_read_status function is getting called the
energy detect mode is enabled again even if it has been
disabled by device tree.

Added private struct to check the energy detect status.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c