]> git.baikalelectronics.ru Git - kernel.git/commit
net: smc91x: Fix device tree based configuration so it's usable
authorTony Lindgren <tony@atomide.com>
Wed, 11 Dec 2013 21:04:27 +0000 (13:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 21:36:22 +0000 (16:36 -0500)
commit8ab83eefb9fa0664a251e8e5f2f598a03a7f0f68
treea1bd2f4c5a05c98f44cde5d1623c3cc00856dcf3
parent9c3a6e2837bc0aa9c9fc3d5a1f8a7caeaeb6e11e
net: smc91x: Fix device tree based configuration so it's usable

Commit 277d42d7cd7f (drivers/net: Use of_match_ptr() macro in smc91x.c)
added minimal device tree support to smc91x, but it's not working on
many platforms because of the lack of some key configuration bits.

Fix the issue by parsing the necessary configuration like the
smc911x driver is doing. As most smc91x users seem to use 16-bit
access, let's default to that if no reg-io-width is specified.

Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: netdev@vger.kernel.org
Cc: devicetree@vger.kernel.org
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/smsc-lan91c111.txt
drivers/net/ethernet/smsc/smc91x.c