Skip to contentSkip to conversation

USB: musb: fix build error introduced by isoc change

PATCH Applied Mike Frysinger 5 participants 5 messages Mar 8, 2010 – Mar 11, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index d21fffa..ef29f38 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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
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
index d21fffa..ef29f38 100644
@@ -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;
                        }
#2 lore raw
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

Acked-by
#3 lore raw
In reply to Gadiyar, Anand
Quoted 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
Signature · 1 line
balbi
Applied
#4 lore raw
In reply to Mike Frysinger
Quoted 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".

applied, thanks

Signature · 1 line
balbi