]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: smsc: reintroduced unconditional soft reset
authorManfred Schlaegl <manfred.schlaegl@ginzinger.com>
Mon, 6 Jun 2016 08:47:47 +0000 (10:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 05:14:58 +0000 (22:14 -0700)
commit1241f7e0f47412f08d50e6b91ba63cff47defb9e
treea79a86a27467193c76ffca098ea8bf4966c1065e
parentb642a07ee58e9f13317a512f61dbc60454eb149d
net: phy: smsc: reintroduced unconditional soft reset

We detected some problems using the smsc lan8720a in combination with
i.MX28 and tracked this down to commit 83a7bf972a9e ("net: phy: smsc: move
smsc_phy_config_init reset part in a soft_reset function")
With 83a7bf972a the generic soft reset is replaced by a specific function
which handles power down state correctly. But additionally the soft reset
itself got conditional and is therefore also only performed if the phy is
in power down state.

This patch keeps the conditional wake up from power down, but
re-introduces the unconditional soft reset using the generic soft reset
function.
It was tested on linux-4.1.25 and linux-4.7.0-rc2.

Signed-off-by: Manfred Schlaegl <manfred.schlaegl@ginzinger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c