Skip to contentSkip to conversation

fix smsc911x build failure due to "net/smsc911x: Check if PHY is in operational mode before software reset"

REGRESSION Russell King - ARM Linux 2 participants 2 messages Jan 18, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

From: Russell King <[email protected]>

Commit 6386994e03ebbe (net/smsc911x: Check if PHY is in operational mode before software reset) causes the following build errors with ARM Versatile Express:

drivers/net/ethernet/smsc/smsc911x.c: In function 'smsc911x_phy_disable_energy_detect':
drivers/net/ethernet/smsc/smsc911x.c:1329: error: 'MII_LAN83C185_CTRL_STATUS' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c:1329: error: (Each undeclared identifier is reported only once drivers/net/ethernet/smsc/smsc911x.c:1329: error: for each function it appears in.) drivers/net/ethernet/smsc/smsc911x.c:1340: error: 'MII_LAN83C185_EDPWRDOWN' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c:1341: error: 'MII_LAN83C185_ENERGYON' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c: In function 'smsc911x_phy_enable_energy_detect':
drivers/net/ethernet/smsc/smsc911x.c:1364: error: 'MII_LAN83C185_CTRL_STATUS' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c:1372: error: 'MII_LAN83C185_EDPWRDOWN' undeclared (first use in this function)

Adding linux/smscphy.h solves this build error.

--

 drivers/net/ethernet/smsc/smsc911x.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/ethernet/smsc/smsc911x.c +1 -0
index 9d0b8ce..9aeb666 100644
@@ -54,6 +54,7 @@
 #include <linux/swab.h>
 #include <linux/phy.h>
 #include <linux/smsc911x.h>
+#include <linux/smscphy.h>
 #include <linux/device.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
maintainer
#1 lore raw

From: Russell King - ARM Linux <[email protected]>
Date: Wed, 18 Jan 2012 17:36:12 +0000

Quoted 5 lines

From: Russell King <[email protected]>

Commit 6386994e03ebbe (net/smsc911x: Check if PHY is in operational mode before software reset) causes the following build errors with ARM Versatile Express:

This was already fixed by me by including smscphy.h in smsc911x.h