[U-Boot] [PATCH 2/2] usb: gadget: Use unaligned access for wMaxPacketSize

Łukasz Dałek luk0104 at gmail.com
Mon May 13 14:03:11 CEST 2013


On 13.05.2013 12:23, Vivek Gautam wrote:
> Use get_unaligned() while fetching wMaxPacketSize to avoid
> voilating any alignment rules.
>
> Signed-off-by: Vivek Gautam <gautam.vivek at samsung.com>
> Cc: Lukasz Majewski <l.majewski at samsung.com>
> Cc: Piotr Wilczek <p.wilczek at samsung.com>
> Cc: Kyungmin Park <kyungmin.park at samsung.com>
> Cc: Lukasz Dalek <luk0104 at gmail.com>
> Cc: Marek Vasut <marex at denx.de>
> ---
>
> Just did a build test on u-boot-usb/master branch.
> Need to be tested further.
>
> Based on u-boot-usb/next.
>
>   drivers/usb/gadget/f_mass_storage.c |    3 ++-
>   drivers/usb/gadget/pxa25x_udc.c     |   13 +++++++------
>   2 files changed, 9 insertions(+), 7 deletions(-)

Tested pxa25x_udc.c on u-boot/master on h2200 (PXA255) and works fine.

Yours sincerely,
Lukasz Dalek


More information about the U-Boot mailing list