RE: dwc2: usb/ethernet dongle does not work

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

 



> From: linux-usb-owner@xxxxxxxxxxxxxxx [mailto:linux-usb-owner@xxxxxxxxxxxxxxx] On Behalf Of Dinh Nguyen
> Sent: Monday, July 28, 2014 5:53 AM
> 
> On Mon, 2014-07-28 at 15:05 +0800, Roy wrote:
> > Hi Dinh:
> >
> >     Do you think it might be a problem of a un-aligned DMA buffer
> > address? We know that the usbnet driver submits lots of URBs with a
> > 2-byte aligned buffer address. But in Buffer DMA mode, the starting DMA
> > address must be DWORD-aligned, only if turn on Descriptor DMA mode this
> > this 4-byte aligned limit disappear. We met this kind of problem in our
> > platform which powered by a arm based SoC, RK3288, using the DWC_OTG
> > 3.10a usb IP.
> >
> >
> 
> Yes, I think this is the issue. But even in decscriptor DMA mode the
> USB/ethernet is only able to get an IP address from DHCP, pings sometime
> work and when pings work, it is extremely slow. I still cannot mount an
> NFS using a the adapter.
> 
> Does it work perfectly for you? Would you care to share a patch?

The driver is supposed to handle non-aligned data buffers. Look for the
use of 'chan->align_buf' and 'qh->dw_align_buf' in the driver.

-- 
Paul

��.n��������+%������w��{.n�����{���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥





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

  Powered by Linux