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

Piotr Wilczek p.wilczek at samsung.com
Tue May 14 15:37:29 CEST 2013


> -----Original Message-----
> From: Vivek Gautam [mailto:gautam.vivek at samsung.com]
> Sent: Monday, May 13, 2013 12:24 PM
> To: u-boot at lists.denx.de
> Cc: gautam.vivek at samsung.com; Lukasz Majewski; Piotr Wilczek; Kyungmin
> Park; Lukasz Dalek; Marek Vasut
> Subject: [PATCH 2/2] usb: gadget: Use unaligned access for
> wMaxPacketSize
> 
> 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 'f_mass_storage.c' on u-boot/samsung.
It works fine with or without this patch on Trats2.

Best regards,
Piotr Wilczek





More information about the U-Boot mailing list