From: Evgeny Boger <boger@xxxxxxxxxxxxxx> Date: Thu, 9 Oct 2014 02:14:58 +0400 > There might be 11 GPIOs in total. > Last three GPIOs (offsets 8-10, 0-based) are shared with FDX, LNKA, SPD > LEDs respectively. The LEDs are driven by chip by default at startup time. > Once the corresponding GPIO is requested, the chip LED drive logic is disabled. > > The numbering scheme according to datasheets differs a bit between LAN9500 > and LAN951x. > > For LAN951x: > GPIOs with offsets 0-7 are named "GPIO3" - "GPIO7", > offsets 8-10 are for "GPIO0" - "GPIO2" (these three are multiplexed with nFDX_LED, > nLNKA_LED, nSPD_LED). > > For LAN9500: > The datasheet name is the same as the corresponding offset, i.e. offsets 0-10 are > for "GPIO0"-"GPIO10". > > Signed-off-by: Evgeny Boger <boger@xxxxxxxxxxxxxx> Please either "select GPIOLIB" from USB_NET_SMSC95XX, or add a new config option "UBS_NET_SMSC95XX_GPIO" which does it. I would prefer the former, and then you can get rid of all of the ifdefs in your patch. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html