RE: [RFC] gadget ethernet dma align fix

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

 



Matthieu

>-----Original Message-----
>From: linux-usb-owner@xxxxxxxxxxxxxxx [mailto:linux-usb-owner@xxxxxxxxxxxxxxx] On Behalf Of matthieu
>castet
>Sent: Wednesday, December 23, 2009 2:11 PM
>To: linux-usb@xxxxxxxxxxxxxxx
>Cc: Alan Stern
>Subject: [RFC] gadget ethernet dma align fix
>
>Hi,
>
>I attach a patch that should allow to use gadget ethernet with driver
>not supporting dma on unaligned address.
>
>This is untested on real hardware.

Gave a first round of test on real hardware.

1) patch did not compile
	a) missing ;
	b) a typecast was needed like: ((unsigned long)skb->data & 3)
	c) WARN_ON() getting hit multiple times, thereby generating un-managable amount of logs: so disable WARN_ON()

	The result is attached patch (usb-align-v2.patch)

2) After these changes, I can see that:
Ping from host side works fine
Ping from device side hangs

So looks like the problem is not solved yet.
Will debug further tomorrow.

>
>
>Merry Christmas
>
>
>Matthieu

Attachment: usb-align-v2.patch
Description: usb-align-v2.patch


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

  Powered by Linux