Re: [PATCH 076/100] usb: gadget: udc-core: copy dma-related parameters from parent

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

 



Hi,

On Tue, Feb 26, 2013 at 11:34:38AM +0200, Felipe Balbi wrote:
> gadget's device pointer now is guaranteed to
> have valid dma_mask, dma_parms and coherent_dma_mask
> fields since we're always copying from our
> parent device.
> 
> Signed-off-by: Felipe Balbi <balbi@xxxxxx>
> ---
>  drivers/usb/gadget/udc-core.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c
> index 8a1eeb2..08d5df7 100644
> --- a/drivers/usb/gadget/udc-core.c
> +++ b/drivers/usb/gadget/udc-core.c
> @@ -185,6 +185,10 @@ int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget)
>  
>  	dev_set_name(&gadget->dev, "gadget");
>  
> +	dma_set_coherent_mas(&gadget->dev, parent->coherent_dma_mask);

fixed this one

> +	gadget->dev.dma_mask = dev->dma_mask;

fixed this one

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux