Re: [PATCH 03/30] usb: dwc2: gadget: Add descriptor DMA binding

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

 



On 11/8/2016 1:15 AM, Felipe Balbi wrote:
> John Youn <johnyoun@xxxxxxxxxxxx> writes:
> 
>> From: Vahram Aharonyan <vahrama@xxxxxxxxxxxx>
>>
>> Add the devicetree binding to enable descriptor DMA and read it in to
>> the corresponding parameter during probe.
>>
>> Signed-off-by: Vahram Aharonyan <vahrama@xxxxxxxxxxxx>
>> Signed-off-by: John Youn <johnyoun@xxxxxxxxxxxx>
>> ---
>>  Documentation/devicetree/bindings/usb/dwc2.txt |  1 +
>>  drivers/usb/dwc2/core.h                        |  4 ++++
>>  drivers/usb/dwc2/gadget.c                      | 11 +++++++++++
>>  drivers/usb/dwc2/params.c                      |  4 ++++
>>  4 files changed, 20 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt
>> index 389a461..1db9c37 100644
>> --- a/Documentation/devicetree/bindings/usb/dwc2.txt
>> +++ b/Documentation/devicetree/bindings/usb/dwc2.txt
>> @@ -27,6 +27,7 @@ Refer to phy/phy-bindings.txt for generic phy consumer properties
>>    Refer to usb/generic.txt
>>  - snps,host-dma-disable: disable host DMA mode.
>>  - snps,gadget-dma-enable: enable gadget DMA mode.
>> +- snps,gadget-dma-desc-enable: enable gadget DMA descriptor mode.
> 
> seems to be discoverable as well:
> 
> #define GHWCFG4_DESC_DMA_DYN			(1 << 31)
> #define GHWCFG4_DESC_DMA			(1 << 30)
> 
> care to comment?
> 

This is just following patch 1/30 for consistency.

We can make it discoverable and set automatically as well.

John


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux