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>
This commit is contained in:
committed by
David S. Miller
parent
9a97434215
commit
d09d747ae4
@@ -602,7 +602,8 @@ static void smc_hardware_send_pkt(unsigned long data)
|
||||
SMC_PUSH_DATA(lp, buf, len & ~1);
|
||||
|
||||
/* Send final ctl word with the last byte if there is one */
|
||||
SMC_outw(((len & 1) ? (0x2000 | buf[len-1]) : 0), ioaddr, DATA_REG(lp));
|
||||
SMC_outw(lp, ((len & 1) ? (0x2000 | buf[len - 1]) : 0), ioaddr,
|
||||
DATA_REG(lp));
|
||||
|
||||
/*
|
||||
* If THROTTLE_TX_PKTS is set, we stop the queue here. This will
|
||||
|
||||
Reference in New Issue
Block a user