Re: [PATCH] usb: r8a66597-udc unaligned fifo fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 30, 2009 at 08:57:24PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@xxxxxxxxxxxxx>
> 
> Rework the r8a66597-udc fifo code to avoid unaligned accesses.
> 
> Without this patch unaligned exceptions will degrade the
> USB performance. The exceptions come from the fact that
> the usb fifo data buffers may be misaligned.
> 
> This patch updates the fifo access code to only use
> insl()/outsl() and insw()/outsw() in the case of properly
> aligned data buffers. The fallback case is that inl()/inw()
> are used for misaligned buffer reads together with outb()
> that is used for misaligned buffer writes.
> 
> Signed-off-by: Magnus Damm <damm@xxxxxxxxxxxxx>
> ---
> 
>  Tested on kfr2r09 with CONFIG_USB_CDC_COMPOSITE=y
> 
>  drivers/usb/gadget/r8a66597-udc.h |  105 +++++++++++++++++++++----------------
>  1 file changed, 62 insertions(+), 43 deletions(-)
> 
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux