Re: [PATCH 3/3] usb: dwc3: gadget: Add support for disabling U1 and U2 entries

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

 



Hi Thinh and Anurag

On man, 2019-05-06 at 19:21 +0000, Thinh Nguyen wrote:

> > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> > index a1b126f..4f0912c 100644
> > --- a/drivers/usb/dwc3/core.c
> > +++ b/drivers/usb/dwc3/core.c
> > @@ -1285,6 +1285,10 @@ static void dwc3_get_properties(struct dwc3
> > *dwc)
> >  				"snps,dis_u2_susphy_quirk");
> >  	dwc->dis_enblslpm_quirk = device_property_read_bool(dev,
> >  				"snps,dis_enblslpm_quirk");
> > +	dwc->dis_u1_entry_quirk = device_property_read_bool(dev,
> > +				"snps,dis_u1_entry_quirk");
> > +	dwc->dis_u2_entry_quirk = device_property_read_bool(dev,
> > +				"snps,dis_u2_entry_quirk");
> 
> Please use "-" rather than "_" in the property names.

I have thought about this feature over the weekend, and think the
naming should be changed to something like "snps,bos-u1-exit-lat-in-us" 
and named the same in the code. And then be the value used by the
get_config_params. E.g. the device-tree is used to set the values
directly used for bUxdevExitLat instead of named something not related
to exit latency.

With this the name and function is a 1 to 1 match, and you can among
others set it to 0 for optaining what Anurag wants.

Regarding the disabling of U1 / U2. I send this to Anurag
https://marc.info/?l=linux-usb&m=155683299311954&w=2
Here i created a configfs interface with the names "lpm_U1_disable" and
"lpm_U2_disable" for controlling the DTCL of dwc3, and reject
SET_FEATURE(U1/U2)

Will send this in seperate patch tomorrow, in the hope that Anurags
feature can become a way for controlling exit latency, and my patch
become a way for disabling U1/U2

BR
Claus




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux