* [PATCH] USB: musb: fix build error introduced by isoc change
@ 2010-03-08 16:26 Mike Frysinger
2010-03-08 16:31 ` Gadiyar, Anand
2010-03-11 12:43 ` Felipe Balbi
0 siblings, 2 replies; 5+ messages in thread
From: Mike Frysinger @ 2010-03-08 16:26 UTC (permalink / raw)
To: linux-usb, Felipe Balbi; +Cc: stable, stable-review, linux-kernel, Sonic Zhang
From: Sonic Zhang <sonic.zhang@analog.com>
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 <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
drivers/usb/musb/musb_host.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index d21fffa..ef29f38 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -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;
}
--
1.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [PATCH] USB: musb: fix build error introduced by isoc change
2010-03-08 16:26 [PATCH] USB: musb: fix build error introduced by isoc change Mike Frysinger
@ 2010-03-08 16:31 ` Gadiyar, Anand
2010-03-08 16:41 ` Mike Frysinger
2010-03-08 18:34 ` Felipe Balbi
2010-03-11 12:43 ` Felipe Balbi
1 sibling, 2 replies; 5+ messages in thread
From: Gadiyar, Anand @ 2010-03-08 16:31 UTC (permalink / raw)
To: Mike Frysinger, linux-usb@vger.kernel.org, Felipe Balbi
Cc: stable@kernel.org, stable-review@kernel.org,
linux-kernel@vger.kernel.org, Sonic Zhang
Mike Frysinger wrote:
>
> From: Sonic Zhang <sonic.zhang@analog.com>
>
> 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.
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Anand Gadiyar <gadiyar@ti.com>
> ---
> drivers/usb/musb/musb_host.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
> index d21fffa..ef29f38 100644
> --- a/drivers/usb/musb/musb_host.c
> +++ b/drivers/usb/musb/musb_host.c
> @@ -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;
> }
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: musb: fix build error introduced by isoc change
2010-03-08 16:31 ` Gadiyar, Anand
@ 2010-03-08 16:41 ` Mike Frysinger
2010-03-08 18:34 ` Felipe Balbi
1 sibling, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2010-03-08 16:41 UTC (permalink / raw)
To: Gadiyar, Anand
Cc: linux-usb@vger.kernel.org, Felipe Balbi, stable@kernel.org,
stable-review@kernel.org, linux-kernel@vger.kernel.org,
Sonic Zhang
On Mon, Mar 8, 2010 at 11:31, Gadiyar, Anand wrote:
> Mike Frysinger wrote:
>> From: Sonic Zhang <sonic.zhang@analog.com>
>>
>> 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 ;)
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: musb: fix build error introduced by isoc change
2010-03-08 16:31 ` Gadiyar, Anand
2010-03-08 16:41 ` Mike Frysinger
@ 2010-03-08 18:34 ` Felipe Balbi
1 sibling, 0 replies; 5+ messages in thread
From: Felipe Balbi @ 2010-03-08 18:34 UTC (permalink / raw)
To: Gadiyar, Anand
Cc: Mike Frysinger, linux-usb@vger.kernel.org, Felipe Balbi,
stable@kernel.org, stable-review@kernel.org,
linux-kernel@vger.kernel.org, Sonic Zhang
On Mon, Mar 08, 2010 at 10:01:45PM +0530, Gadiyar, Anand wrote:
> Mike Frysinger wrote:
> >
> > From: Sonic Zhang <sonic.zhang@analog.com>
> >
> > 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.
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.
> > Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
> > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
> Acked-by: Anand Gadiyar <gadiyar@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
--
balbi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: musb: fix build error introduced by isoc change
2010-03-08 16:26 [PATCH] USB: musb: fix build error introduced by isoc change Mike Frysinger
2010-03-08 16:31 ` Gadiyar, Anand
@ 2010-03-11 12:43 ` Felipe Balbi
1 sibling, 0 replies; 5+ messages in thread
From: Felipe Balbi @ 2010-03-11 12:43 UTC (permalink / raw)
To: ext Mike Frysinger
Cc: linux-usb@vger.kernel.org, Balbi Felipe (Nokia-D/Helsinki),
stable@kernel.org, stable-review@kernel.org,
linux-kernel@vger.kernel.org, Sonic Zhang
On Mon, Mar 08, 2010 at 05:26:01PM +0100, ext Mike Frysinger wrote:
>From: Sonic Zhang <sonic.zhang@analog.com>
>
>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 <sonic.zhang@analog.com>
>Signed-off-by: Mike Frysinger <vapier@gentoo.org>
applied, thanks
--
balbi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-03-11 13:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 16:26 [PATCH] USB: musb: fix build error introduced by isoc change Mike Frysinger
2010-03-08 16:31 ` Gadiyar, Anand
2010-03-08 16:41 ` Mike Frysinger
2010-03-08 18:34 ` Felipe Balbi
2010-03-11 12:43 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox