]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/usb/musb/musb_gadget.c
usb: musb: set TXMAXP and AUTOSET for full speed bulk in device mode
authorsupriya karanth <supriya.karanth@stericsson.com>
Thu, 6 Dec 2012 05:42:48 +0000 (11:12 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 10 Jan 2013 12:15:19 +0000 (14:15 +0200)
commitbb3a2ef2eb8cfaea335dcb3426350df7f3d48069
treebf1388a03d7533cdabbed072cd6aaa9b09cc3734
parent7e56e621ce9cf4604694c969087456aced338be6
usb: musb: set TXMAXP and AUTOSET for full speed bulk in device mode

The TXMAXP register is not set correctly for full speed bulk case
when the can_bulk_split() is used. Without this PIO transfers will
not take place correctly

The "mult" factor needs to be updated correctly for the
can_bulk_split() case

The AUTOSET bit in the TXCSR is not being set if the "mult"
factor is greater than 0 for the High Bandwidth ISO case.
But the "mult" factor is also greater than 0 in case of Full speed
bulk transfers with the packet splitting in TXMAXP register

Without the AUTOSET the DMA transfers will not progress in mode1

[ balbi@ti.com : add braces to both branches ]

Signed-off-by: supriya karanth <supriya.karanth@stericsson.com>
Signed-off-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c