smsc95xx: dynamically fix up TX buffer alignment with padding bytes
authorP33M <p33m@github.com>
Wed, 1 May 2019 16:04:32 +0000 (17:04 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:32 +0000 (00:08 +0100)
commit96b972dc736d943f371a16ccca452a053d83c65b
treeccd979109feb44ce6260595748940ad1cc76b1f3
parent3f96ff60b1ca7a294c894f0185685f111b3aeaec
smsc95xx: dynamically fix up TX buffer alignment with padding bytes

dwc_otg requires a 32-bit aligned buffer start address, otherwise
expensive bounce buffers are used. The LAN951x hardware can skip up to
3 bytes between the TX header and the start of frame data, which can
be used to force alignment of the URB passed to dwc_otg.

As found in https://github.com/raspberrypi/linux/issues/2924
drivers/net/usb/smsc95xx.c
drivers/net/usb/smsc95xx.h