From: Gwenhael Goavec-Merou Date: Fri, 15 Aug 2014 13:00:38 +0000 (+0200) Subject: net: phy: smsc: move smsc_phy_config_init reset part in a soft_reset function X-Git-Tag: omap-for-v3.17/fixes-against-rc2~24^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21009686662fd21412ca35def7cb3cc8346e1c3d;p=pandora-kernel.git 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 Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed