]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Fix fifo reads for dm816x with musb_dsps
authorTony Lindgren <tony@atomide.com>
Fri, 20 Mar 2015 00:10:16 +0000 (17:10 -0700)
committerFelipe Balbi <balbi@ti.com>
Tue, 24 Mar 2015 16:36:38 +0000 (11:36 -0500)
commite6580e6e0af346e9a0e1d33308c4e49472151ad6
treeb0304a33282ac2d4ef4c9dff5b46df3814ffdfaf
parentf04bdd37fe2e840d1b5cae190ad447cae1caf2b3
usb: musb: Fix fifo reads for dm816x with musb_dsps

Looks like dm81xx can only do 32-bit fifo reads like am35x. Let's set
up musb-dsps with a custom read_fifo function based on the compatible
flag.

Otherwise we can get the following errors when starting dhclient on a
asix USB Ethernet adapter:

asix 2-1:1.0 eth2: asix_rx_fixup() Bad Header Length 0xffff003c, offset 4

While at it, let's also remove pointless cast of the driver data.

Cc: Bin Liu <binmlist@gmail.com>
Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: George Cherian <george.cherian@ti.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_dsps.c