Re: [PATCH 1/1] usb: xhci: setup packets don't need DMA mapping

2021-01-17 Thread Daewoong Kim
Peter Chen, thanks for your comments. On Fri, 15 Jan 2021 08:32:51 +0800, Peter Chen wrote: > On 21-01-14 13:00:21, Alan Stern wrote: > > On Thu, Jan 14, 2021 at 01:04:02PM +0800, Peter Chen wrote: > > > On 21-01-14 11:59:07, Daewoong Kim wrote: > > > > DMA mapping of urb->setup_packet is not nece

Re: [PATCH 1/1] usb: xhci: setup packets don't need DMA mapping

2021-01-14 Thread Peter Chen
On 21-01-14 13:00:21, Alan Stern wrote: > On Thu, Jan 14, 2021 at 01:04:02PM +0800, Peter Chen wrote: > > On 21-01-14 11:59:07, Daewoong Kim wrote: > > > DMA mapping of urb->setup_packet is not necessary for xHCI host > > > controllers. The xHCI specification says that Setup Stage TRB includes > >

Re: [PATCH 1/1] usb: xhci: setup packets don't need DMA mapping

2021-01-14 Thread Alan Stern
On Thu, Jan 14, 2021 at 01:04:02PM +0800, Peter Chen wrote: > On 21-01-14 11:59:07, Daewoong Kim wrote: > > DMA mapping of urb->setup_packet is not necessary for xHCI host > > controllers. The xHCI specification says that Setup Stage TRB includes > > whole Setup Data; therefore, urb->setup_dma will

Re: [PATCH 1/1] usb: xhci: setup packets don't need DMA mapping

2021-01-13 Thread Peter Chen
On 21-01-14 11:59:07, Daewoong Kim wrote: > DMA mapping of urb->setup_packet is not necessary for xHCI host > controllers. The xHCI specification says that Setup Stage TRB includes > whole Setup Data; therefore, urb->setup_dma will not be used in the xhci > HCD code. > How about bypass map/unmap

[PATCH 1/1] usb: xhci: setup packets don't need DMA mapping

2021-01-13 Thread Daewoong Kim
DMA mapping of urb->setup_packet is not necessary for xHCI host controllers. The xHCI specification says that Setup Stage TRB includes whole Setup Data; therefore, urb->setup_dma will not be used in the xhci HCD code. Signed-off-by: Daewoong Kim --- drivers/usb/core/hcd.c | 4 +++- drivers/usb/