]> git.baikalelectronics.ru Git - kernel.git/commit
net: smc91x: isolate u16 writes alignment workaround
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 17 Oct 2016 19:45:30 +0000 (21:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 18:14:21 +0000 (14:14 -0400)
commitf2697c935fe2a90326e8a2e29c94e96944fb1a92
treeaa2152bf6253451a3abdbe40eda23024e815899d
parent46015617e0e002ff331fc52589fe425a5f52e235
net: smc91x: isolate u16 writes alignment workaround

Writes to u16 has a special handling on 3 PXA platforms, where the
hardware wiring forces these writes to be u32 aligned.

This patch isolates this handling for PXA platforms as before, but
enables this "workaround" to be set up dynamically, which will be the
case in device-tree build types.

This patch was tested on 2 PXA platforms : mainstone, which relies on
the workaround, and lubbock, which doesn't.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/mn10300/unit-asb2303/include/unit/smc91111.h
drivers/net/ethernet/smsc/smc91x.c
drivers/net/ethernet/smsc/smc91x.h