]> git.baikalelectronics.ru Git - kernel.git/commit
net: smc91x: Fix gpios for device tree based booting
authorTony Lindgren <tony@atomide.com>
Thu, 30 Oct 2014 16:59:27 +0000 (09:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Oct 2014 19:54:18 +0000 (15:54 -0400)
commit513695fc8fc8e595a3d5a5f5ee64d9ed3a00eb3c
tree2baef674f3a88ad52943fade77b0129f188ab1c8
parent1da1d1c8061e9174d03b98aeac371214c5ee50c0
net: smc91x: Fix gpios for device tree based booting

With legacy booting, the platform init code was taking care of
the configuring of GPIOs. With device tree based booting, things
may or may not work depending what bootloader has configured or
if the legacy platform code gets called.

Let's add support for the pwrdn and reset GPIOs to the smc91x
driver to fix the issues of smc91x not working properly when
booted in device tree mode.

And let's change n900 to use these settings as some versions
of the bootloader do not configure things properly causing
errors.

Reported-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/smsc-lan91c111.txt
arch/arm/boot/dts/omap3-n900.dts
arch/arm/mach-omap2/pdata-quirks.c
drivers/net/ethernet/smsc/smc91x.c
drivers/net/ethernet/smsc/smc91x.h