]> 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)
commit5ee286d32b1f70b9bdbff769f3468480c6988112
treeaa2152bf6253451a3abdbe40eda23024e815899d
parent9061ef37b45403a615226d09a5434ddf96e97cd6
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