]> git.sur5r.net Git - u-boot/commit
usb: do explicit unaligned accesses
authorLucas Stach <dev@lynxeye.de>
Thu, 6 Sep 2012 06:00:13 +0000 (08:00 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 20 Sep 2012 22:05:00 +0000 (00:05 +0200)
commit93ad908c43ed5d8e3e546dd22fa08b668c5090d9
treeaf7d9ef75657572108bdc48f671010c82cbcfce3
parent81c1d7b605e1a48d3c02248c5e51fabcf42f5014
usb: do explicit unaligned accesses

usb_hub_descriptor has to be packed as it's used for
communication with the device. Member wHubCharacteristics
violates the natural alignment rules.

Use explicit unaligned access functions for this member.
Fixes ARMv7 traping while using USB.

v2: fix typo found by Thomas Langer

v3: rebased on top of u-boot-usb/master

Signed-off-by: Lucas Stach <dev@lynxeye.de>
common/usb_hub.c
drivers/usb/host/ehci-hcd.c