Re: [PATCH] usb: devio: fix mmap() on non-coherent DMA architectures

2019-08-02 Thread Gavin Li
eliminate this warning. Best, Gavin On Fri, Aug 2, 2019 at 5:14 AM Greg KH wrote: > > On Thu, Aug 01, 2019 at 03:04:36PM -0700, gavi...@thegavinli.com wrote: > > From: Gavin Li > > > > On architectures that are not (or are optionally) DMA coherent, > > dma_alloc_coherent

Re: [PATCH] usb: devio: fix mmap() on non-coherent DMA architectures

2019-08-05 Thread Gavin Li
The purpose of this section of code is to map that memory into userspace, and the code before this patch would incorrectly calculate the pfn required to do so. This patch simply changes it to use the correct function to do so rather than doing it from scratch. On Mon, Aug 5, 2019 at 4:37 AM David

Re: [PATCH v1] usb: host: xhci: reliable endpoint reset after halt

2017-05-29 Thread Gavin Li
e in the no-op trb case. Best, Gavin On Mon, May 29, 2017 at 7:06 AM, Mathias Nyman wrote: > On 26.05.2017 22:12, gavi...@thegavinli.com wrote: >> >> From: Gavin Li >> >> If a stalling TRB is cancelled and NOOP'ed in xhci_handle_cmd_stop_ep(), >> finish_td() never

Re: [PATCH] usb: usbfs: only account once for mmap()'ed usb memory usage

2019-08-15 Thread Gavin Li
02:29:24PM -0700, gavi...@thegavinli.com wrote: > > From: Gavin Li > > > > Memory usage for USB memory allocated via mmap() is already accounted > > for at mmap() time; no need to account for it again at submiturb time. > > > > Signed-off-by: Gavin Li > >