public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [patch 0/2] Some more USB-OHCI bugfixes [V2]
@ 2008-10-10  8:23 Remy Bohmer
  2008-10-10  8:23 ` [U-Boot] [patch 1/2 V2] fix USB initialisation procedure Remy Bohmer
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Remy Bohmer @ 2008-10-10  8:23 UTC (permalink / raw)
  To: u-boot

This is version 2 of these series!
Only patch 1 of 2 has changed, some pedantic Coding Style issues updated that
were not detected by Linux/scripts/checkpatch.pl.

The USB OHCI init procedure sets the maximum message length the wrong way.
A max of 64 bits should not be done by writing '64' in maxpacketsize, but '3'.
While fixing this problem it turned out that there is more wrong here in this
code it turned out that the wrong bits were checked to determine if the pipe
was of type PIPE_INTERRUPT. This series fixes those errors also.

I made it 2 seperate patches. The 1st of this series is fully tested and correct
on at least the AT91SAM9261 cores.

The 2nd patch, however, is created by search-for-the-same-errors-and-replace.
I am not able to test that patch, I do not have the boards, so that needs to be
done by others or by review. It is clear that code there is buggy in the
first place.

These patches require my previous series called
'Improve stability USB memory sticks for the common OHCI USB layer.' to be
applied before this series. So they should apply on the u-boot-usb git tree.
--> git://git.denx.de/u-boot-usb.git

I want to mention also, that everytime I look deeper into this code, I find new
bugs. It appears that several parts of this code is written with interrupt
handling in mind, while we have no interrupt handling at all.
Assumptions are done that a interrupt handler does things asynchronous, causing
long loops that have no real use at all...
So, no guarantees that _all_ problems are solved by now...

-- 

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

end of thread, other threads:[~2010-02-01 10:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10  8:23 [U-Boot] [patch 0/2] Some more USB-OHCI bugfixes [V2] Remy Bohmer
2008-10-10  8:23 ` [U-Boot] [patch 1/2 V2] fix USB initialisation procedure Remy Bohmer
2010-01-29  8:29   ` Daniel Hellstrom
2010-01-29 14:57     ` Remy Bohmer
2010-02-01 10:09       ` Daniel Hellstrom
2008-10-10  8:23 ` [U-Boot] [patch 2/2] The PIPE_INTERRUPT flag is used wrong Remy Bohmer
2008-10-14 15:13 ` [U-Boot] [patch 0/2] Some more USB-OHCI bugfixes [V2] Markus Klotzbücher
2008-10-28 23:07   ` Wolfgang Denk
2008-10-29  8:49     ` Markus Klotzbücher

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