* [U-Boot] USB unaligned problem
@ 2010-02-01 10:30 Daniel Hellstrom
2010-02-01 18:52 ` Remy Bohmer
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Hellstrom @ 2010-02-01 10:30 UTC (permalink / raw)
To: u-boot
Hi Remy,
I experience unaligned exceptions when using the USB stack in u-boot on
SPARC/LEON. I believe that there are many places in the code that must
be updated since many structures are declared with the GCC attribute
PACKED and still use 16-bit or 32-bit fields. However, I have so far
only needed to patch one C-line to make it work. I'm not sure why the
packed attribute is used in so many structures, I guess it is bacause of
the layout of the USB information headers read from USB devices.
Please see commit 5b6bc53e4c3eadd04f2ecb94bbb596dca306236a in u-boot
sparc repoistory, usb branch:
http://git.denx.de/?p=u-boot/u-boot-sparc.git;a=commit;h=5b6bc53e4c3eadd04f2ecb94bbb596dca306236a
What do you think?
Best Regards,
Daniel Hellstrom
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] USB unaligned problem
2010-02-01 10:30 [U-Boot] USB unaligned problem Daniel Hellstrom
@ 2010-02-01 18:52 ` Remy Bohmer
0 siblings, 0 replies; 2+ messages in thread
From: Remy Bohmer @ 2010-02-01 18:52 UTC (permalink / raw)
To: u-boot
Hi,
2010/2/1 Daniel Hellstrom <daniel@gaisler.com>:
> Hi Remy,
>
> I experience unaligned exceptions when using the USB stack in u-boot on
> SPARC/LEON. I believe that there are many places in the code that must be
> updated since many structures are declared with the GCC attribute PACKED and
> still use 16-bit or 32-bit fields. However, I have so far only needed to
> patch one C-line to make it work. I'm not sure why the packed attribute is
> used in so many structures, I guess it is bacause of the layout of the USB
> information headers read from USB devices.
I think that was historically the reason (in OHCI), but I never
investigated if less 'packed' attributes would be suitable as well.
> Please see commit 5b6bc53e4c3eadd04f2ecb94bbb596dca306236a in u-boot sparc
> repoistory, usb branch:
>
> http://git.denx.de/?p=u-boot/u-boot-sparc.git;a=commit;h=5b6bc53e4c3eadd04f2ecb94bbb596dca306236a
>
> What do you think?
That it should be posted to the mailinglist, and that I would take it
in in the u-boot-usb repository...
Kind regards,
Remy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-01 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01 10:30 [U-Boot] USB unaligned problem Daniel Hellstrom
2010-02-01 18:52 ` Remy Bohmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox