]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedbae34fd4d26f8744ec8062330c8e55987d8d4a
treec41e64503f7384cd64114cb46c0d047d56319f7f
parent83fe118ccfa12e8d9da687b77397a558e7ed4517
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