Re: [RFC 2/4] dwc3: host: Set xhci quirk for LPM if a platform supports it

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

 



On Fri, Apr 11, 2014 at 11:26 PM, Felipe Balbi <balbi@xxxxxx> wrote:
> On Fri, Apr 11, 2014 at 03:50:04PM +0530, Pratyush Anand wrote:
>> If a platform supports LPM then enable quirk in XHCI for the same.
>>
>> Signed-off-by: Pratyush Anand <pratyush.anand@xxxxxx>
>> ---
>>  drivers/usb/dwc3/core.c | 1 +
>>  drivers/usb/dwc3/core.h | 1 +
>>  drivers/usb/dwc3/host.c | 2 ++
>>  3 files changed, 4 insertions(+)
>>
>> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
>> index 358375e..119dea3 100644
>> --- a/drivers/usb/dwc3/core.c
>> +++ b/drivers/usb/dwc3/core.c
>> @@ -490,6 +490,7 @@ static int dwc3_probe(struct platform_device *pdev)
>>               dwc->maximum_speed = DWC3_DCFG_SUPERSPEED;
>>
>>       dwc->needs_fifo_resize = of_property_read_bool(node, "tx-fifo-resize");
>> +     dwc->lpm_capable = of_property_read_bool(node, "lpm-capable");
>
> if we really don't have any way of detecting in runtime this feature, we
> *must* give platform_data the same support.

OK.

>
>>
>>       pm_runtime_enable(dev);
>>       pm_runtime_get_sync(dev);
>> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
>> index 27dad99..f7bf6da 100644
>> --- a/drivers/usb/dwc3/core.h
>> +++ b/drivers/usb/dwc3/core.h
>> @@ -725,6 +725,7 @@ struct dwc3 {
>>       unsigned                setup_packet_pending:1;
>>       unsigned                delayed_status:1;
>>       unsigned                needs_fifo_resize:1;
>> +     unsigned                lpm_capable:1;
>
> missing documentation!!!

Will add.

Pratyush

>
> --
> balbi
--
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