On Fri, Feb 05, 2021 at 01:36:43PM +0100, Hans Verkuil wrote:
> Hi Takashi,
> 
> Thank you for this patch, but it clashes with another patch trying to do the 
> same thing
> that has already been merged in our tree:
> 
> https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/
> 
> I do prefer your patch over the one already merged since it is a bit simpler, 
> but
> shouldn't the calls to dma_sync_single_for_cpu() and 
> dma_sync_single_for_device()
> in pwc-if.c also use urb->dev->bus->controller?
> 
> Also, Matwey's patch uses urb->dev->bus->sysdev instead of 
> urb->dev->bus->controller.
> How does 'sysdev' relate to 'controller'? I think 'controller' is the right 
> device to
> use, but either seems to work when I test it with my pwc webcam.

Hi Hans

A quick grep in driver/usb show that all but one dma mapping operation
use sysdev. The one other case uses controller. So the numbers suggest
controller is wrong, sysdev is correct.

But maybe ask GregKH?

           Andrew

Reply via email to