All of lore.kernel.org
 help / color / mirror / Atom feed
From: Piotr Wilczek <p.wilczek@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] usb: gadget: Use unaligned access for wMaxPacketSize
Date: Tue, 14 May 2013 15:37:29 +0200	[thread overview]
Message-ID: <000101ce50a8$2e728cf0$8b57a6d0$%wilczek@samsung.com> (raw)
In-Reply-To: <1368440618-11359-2-git-send-email-gautam.vivek@samsung.com>


> -----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@samsung.com>
> Cc: Lukasz Majewski <l.majewski@samsung.com>
> Cc: Piotr Wilczek <p.wilczek@samsung.com>
> Cc: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: Lukasz Dalek <luk0104@gmail.com>
> Cc: Marek Vasut <marex@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

  parent reply	other threads:[~2013-05-14 13:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13 10:23 [U-Boot] [PATCH 1/2] usb: Use get_unaligned() in usb_endpoint_maxp() for wMaxPacketSize Vivek Gautam
2013-05-13 10:23 ` [U-Boot] [PATCH 2/2] usb: gadget: Use unaligned access " Vivek Gautam
2013-05-13 10:50   ` Kyungmin Park
2013-05-13 11:46     ` Vivek Gautam
2013-05-13 11:56     ` Albert ARIBAUD
2013-05-13 12:03   ` Łukasz Dałek
2013-05-14 13:37   ` Piotr Wilczek [this message]
2013-05-14 13:49   ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000101ce50a8$2e728cf0$8b57a6d0$%wilczek@samsung.com' \
    --to=p.wilczek@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.