All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
@ 2008-05-17 11:01 Bryan Wu
       [not found] ` <1211022081-27298-1-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Bryan Wu @ 2008-05-17 11:01 UTC (permalink / raw)
  To: me, david-b, tony; +Cc: linux-omap, linux-usb, linux-kernel


Hi folks,

We discussed these 4 bugs before. Now we fixed them.
Please review following 2 patches.

Thanks
-Bryan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [PATCH 1/2] MUSB: fix bug - since 2.6.24 urb API changed, giveback function return wrong status
  2008-05-17 11:01 [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin Bryan Wu
@ 2008-05-17 11:01     ` Bryan Wu
  2008-05-17 11:01 ` [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin Bryan Wu
  2008-05-17 14:37 ` [PATCH 0/2] MUSB: 2 patches to fix some bug " David Brownell
  2 siblings, 0 replies; 21+ messages in thread
From: Bryan Wu @ 2008-05-17 11:01 UTC (permalink / raw)
  To: me-uiRdBs8odbtmTBlB0Cgj/Q, david-b-yBeKhBN/0LDR7s880joybQ,
	tony-4v6yS6AI5VpBDgjK7y7TUQ
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Bryan Wu

When MUSB got STALL, but reported "short read trasfer"
usb-storage: Command MODE_SENSE (6 bytes)
usb-storage:  1a 00 3f 00 c0 00
usb-storage: Bulk Command S 0x43425355 T 0x18 L 192 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 192 bytes, 1 entries
usb-storage: Status code -121; transferred 0/192
usb-storage: -- short read transfer
usb-storage: Bulk data transfer result 0x1
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 0/13
usb-storage: -- short transfer
usb-storage: Received 0-length CSW; retrying...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 0/13
usb-storage: -- short transfer
usb-storage: Bulk status result = 1
usb-storage: -- transport indicates error, resetting
usb-storage: storage_pre_reset


The right message is:

usb-storage: Command MODE_SENSE (6 bytes)
usb-storage:  1a 00 3f 00 c0 00
usb-storage: Bulk Command S 0x43425355 T 0x6 L 192 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 192 bytes, 1 entries
usb-storage: Status code -121; transferred 4/192
usb-storage: -- short read transfer
usb-storage: Bulk data transfer result 0x1
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code -32; transferred 0/13
usb-storage: clearing endpoint halt for pipe 0xc0010280
usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=82 len=0
usb-storage: usb_stor_clear_halt: result = 0
usb-storage: Attempting to get CSW (2nd try)...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete

Signed-off-by: Bryan Wu <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
 drivers/usb/musb/musb_host.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 3d4fc3e..535922d 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -422,7 +422,11 @@ musb_advance_schedule(struct musb *musb, struct urb *urb,
 		qh = hw_ep->in_qh;
 	else
 		qh = hw_ep->out_qh;
-	qh = musb_giveback(qh, urb, 0);
+
+	if (urb->status == -EINPROGRESS)
+		qh = musb_giveback(qh, urb, 0);
+	else
+		qh = musb_giveback(qh, urb, urb->status);
 
 	if (qh && qh->is_ready && !list_empty(&qh->hep->urb_list)) {
 		DBG(4, "... next ep%d %cX urb %p\n",
-- 
1.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 1/2] MUSB: fix bug - since 2.6.24 urb API changed, giveback function return wrong status
@ 2008-05-17 11:01     ` Bryan Wu
  0 siblings, 0 replies; 21+ messages in thread
From: Bryan Wu @ 2008-05-17 11:01 UTC (permalink / raw)
  To: me, david-b, tony; +Cc: linux-omap, linux-usb, linux-kernel, Bryan Wu

When MUSB got STALL, but reported "short read trasfer"
usb-storage: Command MODE_SENSE (6 bytes)
usb-storage:  1a 00 3f 00 c0 00
usb-storage: Bulk Command S 0x43425355 T 0x18 L 192 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 192 bytes, 1 entries
usb-storage: Status code -121; transferred 0/192
usb-storage: -- short read transfer
usb-storage: Bulk data transfer result 0x1
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 0/13
usb-storage: -- short transfer
usb-storage: Received 0-length CSW; retrying...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 0/13
usb-storage: -- short transfer
usb-storage: Bulk status result = 1
usb-storage: -- transport indicates error, resetting
usb-storage: storage_pre_reset


The right message is:

usb-storage: Command MODE_SENSE (6 bytes)
usb-storage:  1a 00 3f 00 c0 00
usb-storage: Bulk Command S 0x43425355 T 0x6 L 192 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 192 bytes, 1 entries
usb-storage: Status code -121; transferred 4/192
usb-storage: -- short read transfer
usb-storage: Bulk data transfer result 0x1
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code -32; transferred 0/13
usb-storage: clearing endpoint halt for pipe 0xc0010280
usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=82 len=0
usb-storage: usb_stor_clear_halt: result = 0
usb-storage: Attempting to get CSW (2nd try)...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete

Signed-off-by: Bryan Wu <cooloney@kernel.org>
---
 drivers/usb/musb/musb_host.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 3d4fc3e..535922d 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -422,7 +422,11 @@ musb_advance_schedule(struct musb *musb, struct urb *urb,
 		qh = hw_ep->in_qh;
 	else
 		qh = hw_ep->out_qh;
-	qh = musb_giveback(qh, urb, 0);
+
+	if (urb->status == -EINPROGRESS)
+		qh = musb_giveback(qh, urb, 0);
+	else
+		qh = musb_giveback(qh, urb, urb->status);
 
 	if (qh && qh->is_ready && !list_empty(&qh->hep->urb_list)) {
 		DBG(4, "... next ep%d %cX urb %p\n",
-- 
1.5.5


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin
  2008-05-17 11:01 [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin Bryan Wu
       [not found] ` <1211022081-27298-1-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
@ 2008-05-17 11:01 ` Bryan Wu
  2008-05-19 15:16   ` Gadiyar, Anand
  2008-05-17 14:37 ` [PATCH 0/2] MUSB: 2 patches to fix some bug " David Brownell
  2 siblings, 1 reply; 21+ messages in thread
From: Bryan Wu @ 2008-05-17 11:01 UTC (permalink / raw)
  To: me, david-b, tony
  Cc: linux-omap, linux-usb, linux-kernel, Bryan Wu, Sonic Zhang

 - USB-IDE
   http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3789
 - 30G iPod
   http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3806
 - USB to CF/SD card reader
   http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3790
   http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3807

Sonic found, when we got STALL, we should clear the toggle.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.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 535922d..806c479 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1473,7 +1473,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
 			(void) musb->dma_controller->channel_abort(dma);
 			xfer_len = dma->actual_len;
 		}
-		musb_h_flush_rxfifo(hw_ep, 0);
+		musb_h_flush_rxfifo(hw_ep, MUSB_RXCSR_CLRDATATOG);
 		musb_writeb(epio, MUSB_RXINTERVAL, 0);
 		done = true;
 		goto finish;
-- 
1.5.5


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-17 11:01 [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin Bryan Wu
       [not found] ` <1211022081-27298-1-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  2008-05-17 11:01 ` [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin Bryan Wu
@ 2008-05-17 14:37 ` David Brownell
  2008-05-19  6:39   ` Bryan Wu
  2 siblings, 1 reply; 21+ messages in thread
From: David Brownell @ 2008-05-17 14:37 UTC (permalink / raw)
  To: Bryan Wu; +Cc: me, tony, linux-omap, linux-usb, linux-kernel

On Saturday 17 May 2008, Bryan Wu wrote:
> 
> We discussed these 4 bugs before. Now we fixed them.
> Please review following 2 patches.

They looked plausible to me ... though the urb->status
one is a bit of a band-aid, and when that field finally
vanishes a better fix will be needed.

- Dave

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-17 14:37 ` [PATCH 0/2] MUSB: 2 patches to fix some bug " David Brownell
@ 2008-05-19  6:39   ` Bryan Wu
       [not found]     ` <386072610805182339n2e141b83q4b8f9804194088e4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 21+ messages in thread
From: Bryan Wu @ 2008-05-19  6:39 UTC (permalink / raw)
  To: David Brownell; +Cc: me, tony, linux-omap, linux-usb, linux-kernel

On Sat, May 17, 2008 at 10:37 PM, David Brownell <david-b@pacbell.net> wrote:
> On Saturday 17 May 2008, Bryan Wu wrote:
>>
>> We discussed these 4 bugs before. Now we fixed them.
>> Please review following 2 patches.
>
> They looked plausible to me ... though the urb->status
> one is a bit of a band-aid, and when that field finally
> vanishes a better fix will be needed.
>

OK, so is there any plan for merge the MUSB to mainline and finally to
remove the urb->status?

-Bryan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-19  6:39   ` Bryan Wu
@ 2008-05-19  7:49         ` Felipe Balbi
  0 siblings, 0 replies; 21+ messages in thread
From: Felipe Balbi @ 2008-05-19  7:49 UTC (permalink / raw)
  To: Bryan Wu
  Cc: David Brownell, tony-4v6yS6AI5VpBDgjK7y7TUQ,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA



On Mon, 19 May 2008 14:39:10 +0800, "Bryan Wu" <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Sat, May 17, 2008 at 10:37 PM, David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
> wrote:
>> On Saturday 17 May 2008, Bryan Wu wrote:
>>>
>>> We discussed these 4 bugs before. Now we fixed them.
>>> Please review following 2 patches.
>>
>> They looked plausible to me ... though the urb->status
>> one is a bit of a band-aid, and when that field finally
>> vanishes a better fix will be needed.
>>
> 
> OK, so is there any plan for merge the MUSB to mainline and finally to
> remove the urb->status?

I was planing to do this by the end of this year or as soon as I make all
usb if tests pass again. I'm out of tools for that right now :-s

But of course we can check this with more caution since we have this bug
to solve before sending it to mainline.

-- 
Best Regards,

Felipe Balbi
http://felipebalbi.com
me-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
@ 2008-05-19  7:49         ` Felipe Balbi
  0 siblings, 0 replies; 21+ messages in thread
From: Felipe Balbi @ 2008-05-19  7:49 UTC (permalink / raw)
  To: Bryan Wu; +Cc: David Brownell, tony, linux-omap, linux-usb, linux-kernel



On Mon, 19 May 2008 14:39:10 +0800, "Bryan Wu" <cooloney@kernel.org> wrote:
> On Sat, May 17, 2008 at 10:37 PM, David Brownell <david-b@pacbell.net>
> wrote:
>> On Saturday 17 May 2008, Bryan Wu wrote:
>>>
>>> We discussed these 4 bugs before. Now we fixed them.
>>> Please review following 2 patches.
>>
>> They looked plausible to me ... though the urb->status
>> one is a bit of a band-aid, and when that field finally
>> vanishes a better fix will be needed.
>>
> 
> OK, so is there any plan for merge the MUSB to mainline and finally to
> remove the urb->status?

I was planing to do this by the end of this year or as soon as I make all
usb if tests pass again. I'm out of tools for that right now :-s

But of course we can check this with more caution since we have this bug
to solve before sending it to mainline.

-- 
Best Regards,

Felipe Balbi
http://felipebalbi.com
me@felipebalbi.com


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-19  7:49         ` Felipe Balbi
@ 2008-05-19  8:05             ` Bryan Wu
  -1 siblings, 0 replies; 21+ messages in thread
From: Bryan Wu @ 2008-05-19  8:05 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: David Brownell, tony-4v6yS6AI5VpBDgjK7y7TUQ,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

On Mon, May 19, 2008 at 3:49 PM, Felipe Balbi <me-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org> wrote:
>
>
> On Mon, 19 May 2008 14:39:10 +0800, "Bryan Wu" <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>> On Sat, May 17, 2008 at 10:37 PM, David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
>> wrote:
>>> On Saturday 17 May 2008, Bryan Wu wrote:
>>>>
>>>> We discussed these 4 bugs before. Now we fixed them.
>>>> Please review following 2 patches.
>>>
>>> They looked plausible to me ... though the urb->status
>>> one is a bit of a band-aid, and when that field finally
>>> vanishes a better fix will be needed.
>>>
>>
>> OK, so is there any plan for merge the MUSB to mainline and finally to
>> remove the urb->status?
>
> I was planing to do this by the end of this year or as soon as I make all
> usb if tests pass again. I'm out of tools for that right now :-s
>

Great, after I enable the DMA mode 1 on Blackfin and cleanup the code,
I will send
out the code before you sent them to upstream

Thanks
-Bryan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
@ 2008-05-19  8:05             ` Bryan Wu
  0 siblings, 0 replies; 21+ messages in thread
From: Bryan Wu @ 2008-05-19  8:05 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: David Brownell, tony, linux-omap, linux-usb, linux-kernel

On Mon, May 19, 2008 at 3:49 PM, Felipe Balbi <me@felipebalbi.com> wrote:
>
>
> On Mon, 19 May 2008 14:39:10 +0800, "Bryan Wu" <cooloney@kernel.org> wrote:
>> On Sat, May 17, 2008 at 10:37 PM, David Brownell <david-b@pacbell.net>
>> wrote:
>>> On Saturday 17 May 2008, Bryan Wu wrote:
>>>>
>>>> We discussed these 4 bugs before. Now we fixed them.
>>>> Please review following 2 patches.
>>>
>>> They looked plausible to me ... though the urb->status
>>> one is a bit of a band-aid, and when that field finally
>>> vanishes a better fix will be needed.
>>>
>>
>> OK, so is there any plan for merge the MUSB to mainline and finally to
>> remove the urb->status?
>
> I was planing to do this by the end of this year or as soon as I make all
> usb if tests pass again. I'm out of tools for that right now :-s
>

Great, after I enable the DMA mode 1 on Blackfin and cleanup the code,
I will send
out the code before you sent them to upstream

Thanks
-Bryan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* RE: [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin
  2008-05-17 11:01 ` [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin Bryan Wu
@ 2008-05-19 15:16   ` Gadiyar, Anand
  2008-05-19 15:28     ` Mike Frysinger
  0 siblings, 1 reply; 21+ messages in thread
From: Gadiyar, Anand @ 2008-05-19 15:16 UTC (permalink / raw)
  To: Bryan Wu, me@felipebalbi.com, david-b@pacbell.net,
	tony@atomide.com
  Cc: linux-omap@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, Sonic Zhang

Hi,

I am unable to visit any of these links. I get the following error "Unknown or invalid plugin: 'tracker'".

Regards,
Anand

> -----Original Message-----
> From: linux-usb-owner@vger.kernel.org
> [mailto:linux-usb-owner@vger.kernel.org] On Behalf Of Bryan Wu
> Sent: Saturday, May 17, 2008 4:31 PM
> To: me@felipebalbi.com; david-b@pacbell.net; tony@atomide.com
> Cc: linux-omap@vger.kernel.org; linux-usb@vger.kernel.org;
> linux-kernel@vger.kernel.org; Bryan Wu; Sonic Zhang
> Subject: [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin
>
>  - USB-IDE
>
> <http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3789>
>  - 30G iPod
>
> <http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3806>
>  - USB to CF/SD card reader
>
> <http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3790>
>
> <http://blackfin.uclinux.org/gf/project/linux-kernel/tracker/?action=TrackerItemEdit&tracker_item_id=3807>
>
> Sonic found, when we got STALL, we should clear the toggle.
>
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
> Signed-off-by: Bryan Wu <cooloney@kernel.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 535922d..806c479 100644
> --- a/drivers/usb/musb/musb_host.c
> +++ b/drivers/usb/musb/musb_host.c
> @@ -1473,7 +1473,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
>                         (void)
> musb->dma_controller->channel_abort(dma);
>                         xfer_len = dma->actual_len;
>                 }
> -               musb_h_flush_rxfifo(hw_ep, 0);
> +               musb_h_flush_rxfifo(hw_ep, MUSB_RXCSR_CLRDATATOG);
>                 musb_writeb(epio, MUSB_RXINTERVAL, 0);
>                 done = true;
>                 goto finish;
> --
> 1.5.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin
  2008-05-19 15:16   ` Gadiyar, Anand
@ 2008-05-19 15:28     ` Mike Frysinger
  0 siblings, 0 replies; 21+ messages in thread
From: Mike Frysinger @ 2008-05-19 15:28 UTC (permalink / raw)
  To: Gadiyar, Anand
  Cc: Bryan Wu, me@felipebalbi.com, david-b@pacbell.net,
	tony@atomide.com, linux-omap@vger.kernel.org,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sonic Zhang

On Mon, May 19, 2008 at 11:16 AM, Gadiyar, Anand <gadiyar@ti.com> wrote:
> I am unable to visit any of these links. I get the following error "Unknown or invalid plugin: 'tracker'".

change "linux-kernel" in the url to "uclinux-dist"
-mike

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-19  8:05             ` Bryan Wu
@ 2008-05-21 15:50                 ` Tony Lindgren
  -1 siblings, 0 replies; 21+ messages in thread
From: Tony Lindgren @ 2008-05-21 15:50 UTC (permalink / raw)
  To: Bryan Wu
  Cc: Felipe Balbi, David Brownell, linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

* Bryan Wu <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> [080519 01:06]:
> On Mon, May 19, 2008 at 3:49 PM, Felipe Balbi <me-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org> wrote:
> >
> >
> > On Mon, 19 May 2008 14:39:10 +0800, "Bryan Wu" <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> >> On Sat, May 17, 2008 at 10:37 PM, David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
> >> wrote:
> >>> On Saturday 17 May 2008, Bryan Wu wrote:
> >>>>
> >>>> We discussed these 4 bugs before. Now we fixed them.
> >>>> Please review following 2 patches.
> >>>
> >>> They looked plausible to me ... though the urb->status
> >>> one is a bit of a band-aid, and when that field finally
> >>> vanishes a better fix will be needed.
> >>>
> >>

I'll push these to linux-omap tree then.

> >> OK, so is there any plan for merge the MUSB to mainline and finally to
> >> remove the urb->status?
> >
> > I was planing to do this by the end of this year or as soon as I make all
> > usb if tests pass again. I'm out of tools for that right now :-s
> >
> 
> Great, after I enable the DMA mode 1 on Blackfin and cleanup the code,
> I will send
> out the code before you sent them to upstream

Maybe we should get the musb code to USB tree before that? It's been out
of the scope for linux-omap tree for quite a while now.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
@ 2008-05-21 15:50                 ` Tony Lindgren
  0 siblings, 0 replies; 21+ messages in thread
From: Tony Lindgren @ 2008-05-21 15:50 UTC (permalink / raw)
  To: Bryan Wu
  Cc: Felipe Balbi, David Brownell, linux-omap, linux-usb, linux-kernel

* Bryan Wu <cooloney@kernel.org> [080519 01:06]:
> On Mon, May 19, 2008 at 3:49 PM, Felipe Balbi <me@felipebalbi.com> wrote:
> >
> >
> > On Mon, 19 May 2008 14:39:10 +0800, "Bryan Wu" <cooloney@kernel.org> wrote:
> >> On Sat, May 17, 2008 at 10:37 PM, David Brownell <david-b@pacbell.net>
> >> wrote:
> >>> On Saturday 17 May 2008, Bryan Wu wrote:
> >>>>
> >>>> We discussed these 4 bugs before. Now we fixed them.
> >>>> Please review following 2 patches.
> >>>
> >>> They looked plausible to me ... though the urb->status
> >>> one is a bit of a band-aid, and when that field finally
> >>> vanishes a better fix will be needed.
> >>>
> >>

I'll push these to linux-omap tree then.

> >> OK, so is there any plan for merge the MUSB to mainline and finally to
> >> remove the urb->status?
> >
> > I was planing to do this by the end of this year or as soon as I make all
> > usb if tests pass again. I'm out of tools for that right now :-s
> >
> 
> Great, after I enable the DMA mode 1 on Blackfin and cleanup the code,
> I will send
> out the code before you sent them to upstream

Maybe we should get the musb code to USB tree before that? It's been out
of the scope for linux-omap tree for quite a while now.

Tony

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-21 15:50                 ` Tony Lindgren
@ 2008-05-21 17:14                     ` David Brownell
  -1 siblings, 0 replies; 21+ messages in thread
From: David Brownell @ 2008-05-21 17:14 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Bryan Wu, Felipe Balbi, linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

On Wednesday 21 May 2008, Tony Lindgren wrote:
> 
> > Great, after I enable the DMA mode 1 on Blackfin and cleanup the code,
> > I will send
> > out the code before you sent them to upstream
> 
> Maybe we should get the musb code to USB tree before that? It's been out
> of the scope for linux-omap tree for quite a while now.

I'm all for getting the musb_hdrc driver into the 2.6.27 queue...
I presume there are still some infrastructure changes in usbcore
that block that merge?  It'd be nice if we could merge musb_hdrc
without those changes (OTG related) and then update that stuff
separately.

- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
@ 2008-05-21 17:14                     ` David Brownell
  0 siblings, 0 replies; 21+ messages in thread
From: David Brownell @ 2008-05-21 17:14 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Bryan Wu, Felipe Balbi, linux-omap, linux-usb, linux-kernel

On Wednesday 21 May 2008, Tony Lindgren wrote:
> 
> > Great, after I enable the DMA mode 1 on Blackfin and cleanup the code,
> > I will send
> > out the code before you sent them to upstream
> 
> Maybe we should get the musb code to USB tree before that? It's been out
> of the scope for linux-omap tree for quite a while now.

I'm all for getting the musb_hdrc driver into the 2.6.27 queue...
I presume there are still some infrastructure changes in usbcore
that block that merge?  It'd be nice if we could merge musb_hdrc
without those changes (OTG related) and then update that stuff
separately.

- Dave


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-21 17:14                     ` David Brownell
  (?)
@ 2008-05-21 19:06                     ` Felipe Balbi
       [not found]                       ` <61cdb2dcc22913ddefddd7b4a6faede3-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org>
  -1 siblings, 1 reply; 21+ messages in thread
From: Felipe Balbi @ 2008-05-21 19:06 UTC (permalink / raw)
  To: David Brownell
  Cc: Tony Lindgren, Bryan Wu, linux-omap, linux-usb, linux-kernel



On Wed, 21 May 2008 10:14:44 -0700, David Brownell <david-b@pacbell.net>
wrote:
> On Wednesday 21 May 2008, Tony Lindgren wrote:
>>
>> > Great, after I enable the DMA mode 1 on Blackfin and cleanup the code,
>> > I will send
>> > out the code before you sent them to upstream
>>
>> Maybe we should get the musb code to USB tree before that? It's been out
>> of the scope for linux-omap tree for quite a while now.
> 
> I'm all for getting the musb_hdrc driver into the 2.6.27 queue...
> I presume there are still some infrastructure changes in usbcore
> that block that merge?  It'd be nice if we could merge musb_hdrc
> without those changes (OTG related) and then update that stuff
> separately.

Ok then, I'll prepare the patches during the next week and post
here on l-o so people can comment.

Any otg related stuff will come later.

-- 
Best Regards,

Felipe Balbi
http://felipebalbi.com
me@felipebalbi.com


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-21 19:06                     ` Felipe Balbi
@ 2008-05-21 20:04                           ` David Brownell
  0 siblings, 0 replies; 21+ messages in thread
From: David Brownell @ 2008-05-21 20:04 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Tony Lindgren, Bryan Wu, linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

On Wednesday 21 May 2008, Felipe Balbi wrote:
> 
> > I'm all for getting the musb_hdrc driver into the 2.6.27 queue...
> > I presume there are still some infrastructure changes in usbcore
> > that block that merge?  It'd be nice if we could merge musb_hdrc
> > without those changes (OTG related) and then update that stuff
> > separately.
> 
> Ok then, I'll prepare the patches during the next week and post
> here on l-o so people can comment.

When it's a USB patch, please post to linux-usb.  Most of the
relevant reviewers won't be on Linux-OMAP.  ;)

That said, I'm looking forward to seeing the www.beagleboard.org
hardware [1] become more generally available.  That will make some
musb_hdrc hardware available in a more developer-friendly rig than,
say, an N810 tablet.  And it might well get more folk in a position
where they can use that driver!  (I think some Blackfin devboards
are available already, but they're more pricey.)

- Dave

[1] http://www.elinux.org/BeagleBoard
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
@ 2008-05-21 20:04                           ` David Brownell
  0 siblings, 0 replies; 21+ messages in thread
From: David Brownell @ 2008-05-21 20:04 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: Tony Lindgren, Bryan Wu, linux-omap, linux-usb, linux-kernel

On Wednesday 21 May 2008, Felipe Balbi wrote:
> 
> > I'm all for getting the musb_hdrc driver into the 2.6.27 queue...
> > I presume there are still some infrastructure changes in usbcore
> > that block that merge?  It'd be nice if we could merge musb_hdrc
> > without those changes (OTG related) and then update that stuff
> > separately.
> 
> Ok then, I'll prepare the patches during the next week and post
> here on l-o so people can comment.

When it's a USB patch, please post to linux-usb.  Most of the
relevant reviewers won't be on Linux-OMAP.  ;)

That said, I'm looking forward to seeing the www.beagleboard.org
hardware [1] become more generally available.  That will make some
musb_hdrc hardware available in a more developer-friendly rig than,
say, an N810 tablet.  And it might well get more folk in a position
where they can use that driver!  (I think some Blackfin devboards
are available already, but they're more pricey.)

- Dave

[1] http://www.elinux.org/BeagleBoard

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
  2008-05-21 20:04                           ` David Brownell
@ 2008-05-21 20:10                               ` Mike Frysinger
  -1 siblings, 0 replies; 21+ messages in thread
From: Mike Frysinger @ 2008-05-21 20:10 UTC (permalink / raw)
  To: David Brownell
  Cc: Felipe Balbi, Tony Lindgren, Bryan Wu,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

On Wed, May 21, 2008 at 4:04 PM, David Brownell wrote:
> That said, I'm looking forward to seeing the www.beagleboard.org
> hardware [1] become more generally available.  That will make some
> musb_hdrc hardware available in a more developer-friendly rig than,
> say, an N810 tablet.  And it might well get more folk in a position
> where they can use that driver!  (I think some Blackfin devboards
> are available already, but they're more pricey.)

unfortunately, that is the case.  the BF527 EZKit is ~$900 while the
BF548 EZKit is ~$1000.  i'm hoping us software guys keep complaining
enough for the hardware guys to put out a bare bone kit at a
reasonable price (sub $300).
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin
@ 2008-05-21 20:10                               ` Mike Frysinger
  0 siblings, 0 replies; 21+ messages in thread
From: Mike Frysinger @ 2008-05-21 20:10 UTC (permalink / raw)
  To: David Brownell
  Cc: Felipe Balbi, Tony Lindgren, Bryan Wu, linux-omap, linux-usb,
	linux-kernel

On Wed, May 21, 2008 at 4:04 PM, David Brownell wrote:
> That said, I'm looking forward to seeing the www.beagleboard.org
> hardware [1] become more generally available.  That will make some
> musb_hdrc hardware available in a more developer-friendly rig than,
> say, an N810 tablet.  And it might well get more folk in a position
> where they can use that driver!  (I think some Blackfin devboards
> are available already, but they're more pricey.)

unfortunately, that is the case.  the BF527 EZKit is ~$900 while the
BF548 EZKit is ~$1000.  i'm hoping us software guys keep complaining
enough for the hardware guys to put out a bare bone kit at a
reasonable price (sub $300).
-mike

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-05-21 20:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-17 11:01 [PATCH 0/2] MUSB: 2 patches to fix some bug found on Blackfin Bryan Wu
     [not found] ` <1211022081-27298-1-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2008-05-17 11:01   ` [PATCH 1/2] MUSB: fix bug - since 2.6.24 urb API changed, giveback function return wrong status Bryan Wu
2008-05-17 11:01     ` Bryan Wu
2008-05-17 11:01 ` [PATCH 2/2] MUSB: Real fix bug 4 usb bugs found on Blackfin Bryan Wu
2008-05-19 15:16   ` Gadiyar, Anand
2008-05-19 15:28     ` Mike Frysinger
2008-05-17 14:37 ` [PATCH 0/2] MUSB: 2 patches to fix some bug " David Brownell
2008-05-19  6:39   ` Bryan Wu
     [not found]     ` <386072610805182339n2e141b83q4b8f9804194088e4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-05-19  7:49       ` Felipe Balbi
2008-05-19  7:49         ` Felipe Balbi
     [not found]         ` <71636ee466dd53c366eb11d8fc981e8b-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org>
2008-05-19  8:05           ` Bryan Wu
2008-05-19  8:05             ` Bryan Wu
     [not found]             ` <386072610805190105y6618dd9bwe32503c1ae11b865-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-05-21 15:50               ` Tony Lindgren
2008-05-21 15:50                 ` Tony Lindgren
     [not found]                 ` <20080521155003.GZ23002-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2008-05-21 17:14                   ` David Brownell
2008-05-21 17:14                     ` David Brownell
2008-05-21 19:06                     ` Felipe Balbi
     [not found]                       ` <61cdb2dcc22913ddefddd7b4a6faede3-uiRdBs8odbtmTBlB0Cgj/Q@public.gmane.org>
2008-05-21 20:04                         ` David Brownell
2008-05-21 20:04                           ` David Brownell
     [not found]                           ` <200805211304.53082.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-05-21 20:10                             ` Mike Frysinger
2008-05-21 20:10                               ` Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.