]> Git Repo - linux.git/commit
net: phy: smsc: move smsc_phy_config_init reset part in a soft_reset function
authorGwenhael Goavec-Merou <[email protected]>
Fri, 15 Aug 2014 13:00:38 +0000 (15:00 +0200)
committerDavid S. Miller <[email protected]>
Sun, 17 Aug 2014 03:15:54 +0000 (20:15 -0700)
commit21009686662fd21412ca35def7cb3cc8346e1c3d
treee1c0877d3158a8d879a0d776b8e7ffdebfc9ddf4
parent5b7911c1fccb063155a3d4705d39637e676e25be
net: phy: smsc: move smsc_phy_config_init reset part in a soft_reset function

On the one hand, phy_device.c provides a generic reset function if the phy
driver does not provide a soft_reset pointer. This generic reset does not take
into account the state of the phy, with a potential failure if the phy is in
powerdown mode. On the other hand, smsc driver provides a function with both
correct reset behaviour and configuration.

This patch moves the reset part into a new smsc_phy_reset function and provides
the soft_reset pointer to have a correct reset behaviour by default.

Signed-off-by: Gwenhael Goavec-Merou <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/phy/smsc.c
This page took 0.049894 seconds and 4 git commands to generate.