]> git.baikalelectronics.ru Git - kernel.git/commit
smsc911x: add external phy detection overrides
authorSteve Glendinning <steve.glendinning@smsc.com>
Tue, 27 Jan 2009 06:51:11 +0000 (06:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2009 08:37:21 +0000 (00:37 -0800)
commitfbadf2637a37fcc7105b6552ffee795a9ef4b13b
tree95166b84758afba8fdbbf4ce2fdb4dd3b5a4ccac
parent22e2b3f334070b006bf76ff3bce98a9ae9cadb7f
smsc911x: add external phy detection overrides

On LAN9115/LAN9117/LAN9215/LAN9217, external phys are supported.  These
are usually indicated by a hardware strap which sets an "external PHY
detected" bit in the HW_CFG register.

In some cases it is desirable to override this hardware strap and force
use of either the internal phy or an external PHY.  This patch adds
SMSC911X_FORCE_INTERNAL_PHY and SMSC911X_FORCE_EXTERNAL_PHY flags so a
platform can indicate this preference via its platform_data.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smsc911x.c
include/linux/smsc911x.h