public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] usb storage class CTL timeout problem
@ 2006-05-16 22:30 Winston Lin
  2006-05-17  4:24 ` Frank
  2006-05-17 22:34 ` Wolfgang Denk
  0 siblings, 2 replies; 11+ messages in thread
From: Winston Lin @ 2006-05-16 22:30 UTC (permalink / raw)
  To: u-boot

Hi, 

Does anyone know why some USB mass storage devices work and some don't on the 
same board with the same u-boot 1.1.3?  I was able to track the msg down to 
hc_interrupt() used by submit_common_msg() in ./cpu/mpc5xxx/usb_ohci.c file.  
The hc_interrupt() always return 0xff (SF) and the submit_common_msg() in its 
for-loop times out on SF eventually.  

Regards,

Winston


=> usb reset
(Re)start USB...
USB:   scanning bus for devices... 2 USB Devices found
=> usb scan
Scan for storage device:
       scanning bus for storage devices...
ERROR: CTL:TIMEOUT
  Device 0: Vendor: ChipsBnk Prod.: Flash Disk       Rev: 2.00
            Type: Removable Hard Disk
            Capacity: 125.6 MB = 0.1 GB (257344 x 512)
=> usb scan
Scan for storage device:
       scanning bus for storage devices...
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT
ERROR: CTL:TIMEOUT

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] usb storage class CTL timeout problem
@ 2006-05-17 14:59 Lin Hungwen-RA8614
  2006-05-17 15:19 ` Frank
  0 siblings, 1 reply; 11+ messages in thread
From: Lin Hungwen-RA8614 @ 2006-05-17 14:59 UTC (permalink / raw)
  To: u-boot

I tried increasing the timeout var in the submit_common_msg() and that
did not work either.  Do you remember which delay it was or which
function (ie reset) this delay existed?

Thank you,

Winston


---------------------------------
Winston Lin
Systems/Applications Developer
Freescale Semiconductor, Inc.
phone: (512) 895-6218
email: winston.lin at freescale.com
-----Original Message-----
From: Frank [mailto:frannk_m1 at yahoo.com] 
Sent: Tuesday, May 16, 2006 11:25 PM
To: Lin Hungwen-RA8614; u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] usb storage class CTL timeout problem



--- Winston Lin <winston.lin@freescale.com> wrote:

> Hi,
> 
> Does anyone know why some USB mass storage devices work and some don't

> on the

I seem to remember a long time ago I had to increase the delays in the
OHCI driver to get it to work. It's been a long time since I worked on
it so I can't be more speicific then that...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] usb storage class CTL timeout problem
@ 2006-05-18  0:32 Lin Hungwen-RA8614
  2006-05-18  7:18 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Lin Hungwen-RA8614 @ 2006-05-18  0:32 UTC (permalink / raw)
  To: u-boot

 I have not... We have been using 1.1.3 as the code basis for our
current u-boot development and releases.  But I will be downloading the
1.1.4 and do a diff on the ohci driver for the mpc5200 processor.

Thank you,

winston


---------------------------------
Winston Lin
Systems/Applications Developer
Freescale Semiconductor, Inc.
phone: (512) 895-6218
email: winston.lin at freescale.com
-----Original Message-----
From: wd@denx.de [mailto:wd at denx.de] 
Sent: Wednesday, May 17, 2006 5:34 PM
To: Lin Hungwen-RA8614
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] usb storage class CTL timeout problem 

In message <loom.20060517T001440-141@post.gmane.org> you wrote:
> 
> Does anyone know why some USB mass storage devices work and some don't

> on the same board with the same u-boot 1.1.3?  I was able to track the

> msg down to

Because some are of poor quality and violate the USB specification?

BTW: did you try using a recent version of U-Boot?

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Just think, with VLSI we can have 100 ENIACS on a chip!"
- Alan Perlis

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] usb storage class CTL timeout problem
@ 2006-05-18  1:36 Lin Hungwen-RA8614
  2006-05-18  7:19 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Lin Hungwen-RA8614 @ 2006-05-18  1:36 UTC (permalink / raw)
  To: u-boot

 I just tried copying ohci driver, usb.c, cmd_usb.c, and usb_storage.c
files from 1.1.4 to my 1.1.3 source tree but same error msg occurred.
We have maybe 50-50 chance of running into the flash sticks that do not
work with our u-boot;  however, once we jump into linux, the same usb
device is properly recognized.  So, it's likely the linux usb driver is
more forgiving when it comes to usb devices that are not quite usb-spec
compliant?  


Regards,

Winston


---------------------------------
Winston Lin
Systems/Applications Developer
Freescale Semiconductor, Inc.
phone: (512) 895-6218
email: winston.lin at freescale.com
-----Original Message-----
From: wd@denx.de [mailto:wd at denx.de] 
Sent: Wednesday, May 17, 2006 5:34 PM
To: Lin Hungwen-RA8614
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] usb storage class CTL timeout problem 

In message <loom.20060517T001440-141@post.gmane.org> you wrote:
> 
> Does anyone know why some USB mass storage devices work and some don't

> on the same board with the same u-boot 1.1.3?  I was able to track the

> msg down to

Because some are of poor quality and violate the USB specification?

BTW: did you try using a recent version of U-Boot?

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Just think, with VLSI we can have 100 ENIACS on a chip!"
- Alan Perlis

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] usb storage class CTL timeout problem
@ 2006-05-18 13:46 Lin Hungwen-RA8614
  0 siblings, 0 replies; 11+ messages in thread
From: Lin Hungwen-RA8614 @ 2006-05-18 13:46 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

I can't speak for all u-boot development effort within Freescale.  But
as for our small development team here, stability is more important.  If
we do see the need or have the time for moving on to the newer version,
we will proceed as we may need to in this case. 

Thank you,

Winston


---------------------------------
Winston Lin
Systems/Applications Developer
Freescale Semiconductor, Inc.
phone: (512) 895-6218
email: winston.lin at freescale.com
-----Original Message-----
From: wd@denx.de [mailto:wd at denx.de] 
Sent: Thursday, May 18, 2006 2:19 AM
To: Lin Hungwen-RA8614
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] usb storage class CTL timeout problem 

In message
<BE1D02A7E1D3DB4DB2787F2D3E1EDEDE67B68F@az33exm23.fsl.freescale.net> you
wrote:
>  I have not... We have been using 1.1.3 as the code basis for our 
> current u-boot development and releases.  But I will be downloading 
> the

May I ask why Freescale uses old  and  obsolete  code  as  basis  for
current   development   and  releases?  This  iseems  pretty  contra-
productive to me.

For example, I'm pretty frustrated that Freescale releases  old  code
for  the  MPC8349EMDS  board  which completely ignores, and partially
duplicates, all efforts or Kumar Gala and DENX for these boards.

This is a waste of effort, and bad service to your customers.

> 1.1.4 and do a diff on the ohci driver for the mpc5200 processor.

Please use top-of-tree.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The IQ of the group is the lowest IQ of a member of the group divided by
the number of people in the group.

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

end of thread, other threads:[~2006-06-23  2:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 22:30 [U-Boot-Users] usb storage class CTL timeout problem Winston Lin
2006-05-17  4:24 ` Frank
2006-05-17 22:34 ` Wolfgang Denk
2006-06-23  2:10   ` Privet
  -- strict thread matches above, loose matches on Subject: below --
2006-05-17 14:59 Lin Hungwen-RA8614
2006-05-17 15:19 ` Frank
2006-05-18  0:32 Lin Hungwen-RA8614
2006-05-18  7:18 ` Wolfgang Denk
2006-05-18  1:36 Lin Hungwen-RA8614
2006-05-18  7:19 ` Wolfgang Denk
2006-05-18 13:46 Lin Hungwen-RA8614

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox