USB: musb: fix build error introduced by isoc change
Subsystems (2)
PATCH 1/1 USB: musb: fix build error introduced by isoc change
From: Sonic Zhang <[email protected]>
The recent commit "usb: musb: Fix for isochronous IN transfer" (f82a689fa) seems to have been against an older kernel version. It uses the old style naming of variables. Unfortunately, this breaks building for most MUSB users out there since "bDesiredMode" has been renamed to "desired_mode".
--- drivers/usb/musb/musb_host.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/musb/musb_host.c +1 -1
@@ -1689,7 +1689,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) dma->desired_mode =1 ;if (rx_count < hw_ep->max_packet_sz_rx) { length = rx_count; - dma->bDesiredMode =0 ; + dma->desired_mode =0 ; }else { length = urb->transfer_buffer_length; }
Signature · 1 line
1.7.0
Quoted 8 lines · Mike Frysinger
From: Sonic Zhang <[email protected]>
The recent commit "usb: musb: Fix for isochronous IN transfer" (
f82a689fa) seems to have been against an older kernel version. It uses the old style naming of variables. Unfortunately, this breaks building for most MUSB users out there since "bDesiredMode" has been renamed to "desired_mode".
Looks like this code is under a "#ifdef USE_MODE1" check; that's why we did not find this during regular builds. Felipe's upcoming patches would make this code redundant anyway.
Till then, we might as well fix it.
Quoted 2 lines
Signed-off-by Sonic Zhang <[email protected]>Signed-off-by Mike Frysinger <[email protected]>
Quoted 18 lines
--- drivers/usb/musb/musb_host.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/usb/musb/musb_host.c +1
-1@@ -1689,7 +1689,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) dma->desired_mode =1 ;if (rx_count < hw_ep->max_packet_sz_rx) { length = rx_count; - dma->bDesiredMode =0 ; + dma->desired_mode =0 ; }else { length = urb->transfer_buffer_length; }
Quoted 11 lines · Anand
Quoted 7 lines · Mike Frysinger
From: Sonic Zhang <[email protected]>
The recent commit "usb: musb: Fix for isochronous IN transfer" (
f82a689fa) seems to have been against an older kernel version. It uses the old style naming of variables. Unfortunately, this breaks building for most MUSB users out there since "bDesiredMode" has been renamed to "desired_mode".Looks like this code is under a "#ifdef
USE_MODE1" check; that's why we did not find this during regular builds.
ah, ok. Felipe should tweak the changelog to mention this when merging ;)
Quoted 3 lines
Felipe's upcoming patches would make this code redundant anyway.
Till then, we might as well fix it.
right ... this at least should go into 2.6.33.x
-mike
Felipe Balbi
Acked-byQuoted 10 lines · Anand
Quoted 8 lines · Mike Frysinger
From: Sonic Zhang <[email protected]>
The recent commit "usb: musb: Fix for isochronous IN transfer" (
f82a689fa) seems to have been against an older kernel version. It uses the old style naming of variables. Unfortunately, this breaks building for most MUSB users out there since "bDesiredMode" has been renamed to "desired_mode".
Quoted 5 lines
Looks like this code is under a "#ifdef
USE_MODE1" check; that's why we did not find this during regular builds. Felipe's upcoming patches would make this code redundant anyway.Till then, we might as well fix it.
yes, it was my bad. I should have reviewed the code more carefully. We will be testing the mode1 support on DaVinci during this and the next week and when we get it working, we will publish the mode1 dma changes again which will completely change this code.
Quoted 4 lines
Quoted 2 lines
Signed-off-by Sonic Zhang <[email protected]>Signed-off-by Mike Frysinger <[email protected]>Acked-by Anand Gadiyar <[email protected]>
Signature · 1 line
balbi
Felipe Balbi
AppliedQuoted 9 lines · ext Mike Frysinger
From: Sonic Zhang <[email protected]>
The recent commit "usb: musb: Fix for isochronous IN transfer" (
f82a689fa) seems to have been against an older kernel version. It uses the old style naming of variables. Unfortunately, this breaks building for most MUSB users out there since "bDesiredMode" has been renamed to "desired_mode".Signed-off-by Sonic Zhang <[email protected]>Signed-off-by Mike Frysinger <[email protected]>
applied, thanks
Signature · 1 line
balbi