* [PATCH] usb: dwc3: core: Add DWC31 version 2.00a controller
@ 2024-03-01 21:35 Wesley Cheng
2024-03-01 21:45 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Wesley Cheng @ 2024-03-01 21:35 UTC (permalink / raw)
To: gregkh, Thinh.Nguyen; +Cc: linux-kernel, linux-usb, Wesley Cheng
Add revision value for identifying DWC31 version 2.00a based controllers.
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
---
drivers/usb/dwc3/core.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index df544ec730d2..f3bbbc1947bd 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -1259,6 +1259,7 @@ struct dwc3 {
#define DWC31_REVISION_170A 0x3137302a
#define DWC31_REVISION_180A 0x3138302a
#define DWC31_REVISION_190A 0x3139302a
+#define DWC31_REVISION_200A 0x3230302a
#define DWC32_REVISION_ANY 0x0
#define DWC32_REVISION_100A 0x3130302a
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: dwc3: core: Add DWC31 version 2.00a controller
2024-03-01 21:35 [PATCH] usb: dwc3: core: Add DWC31 version 2.00a controller Wesley Cheng
@ 2024-03-01 21:45 ` Greg KH
2024-03-01 22:47 ` Wesley Cheng
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2024-03-01 21:45 UTC (permalink / raw)
To: Wesley Cheng; +Cc: Thinh.Nguyen, linux-kernel, linux-usb
On Fri, Mar 01, 2024 at 01:35:54PM -0800, Wesley Cheng wrote:
> Add revision value for identifying DWC31 version 2.00a based controllers.
>
> Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
> ---
> drivers/usb/dwc3/core.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> index df544ec730d2..f3bbbc1947bd 100644
> --- a/drivers/usb/dwc3/core.h
> +++ b/drivers/usb/dwc3/core.h
> @@ -1259,6 +1259,7 @@ struct dwc3 {
> #define DWC31_REVISION_170A 0x3137302a
> #define DWC31_REVISION_180A 0x3138302a
> #define DWC31_REVISION_190A 0x3139302a
> +#define DWC31_REVISION_200A 0x3230302a
What code uses this define?
Why add a define that is not used?
confused,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: dwc3: core: Add DWC31 version 2.00a controller
2024-03-01 21:45 ` Greg KH
@ 2024-03-01 22:47 ` Wesley Cheng
2024-03-07 2:01 ` Thinh Nguyen
0 siblings, 1 reply; 4+ messages in thread
From: Wesley Cheng @ 2024-03-01 22:47 UTC (permalink / raw)
To: Greg KH; +Cc: Thinh.Nguyen, linux-kernel, linux-usb
Hi Greg,
On 3/1/2024 1:45 PM, Greg KH wrote:
> On Fri, Mar 01, 2024 at 01:35:54PM -0800, Wesley Cheng wrote:
>> Add revision value for identifying DWC31 version 2.00a based controllers.
>>
>> Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
>> ---
>> drivers/usb/dwc3/core.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
>> index df544ec730d2..f3bbbc1947bd 100644
>> --- a/drivers/usb/dwc3/core.h
>> +++ b/drivers/usb/dwc3/core.h
>> @@ -1259,6 +1259,7 @@ struct dwc3 {
>> #define DWC31_REVISION_170A 0x3137302a
>> #define DWC31_REVISION_180A 0x3138302a
>> #define DWC31_REVISION_190A 0x3139302a
>> +#define DWC31_REVISION_200A 0x3230302a
>
> What code uses this define?
>
Don't think there is anything within the DWC3 core that would be
different specifically for 2.00a versus previous revisions. (so far)
> Why add a define that is not used?
>
There is a running list of all the DWC3 revisions. Not all of them are
being used, so my understanding was that we're just keeping track of all
possible version values that can be read from the DWC3 version HW
register. If this is the not the case, maybe we can just leave this out
until we find a need to add it.
Thanks
Wesley Cheng
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: dwc3: core: Add DWC31 version 2.00a controller
2024-03-01 22:47 ` Wesley Cheng
@ 2024-03-07 2:01 ` Thinh Nguyen
0 siblings, 0 replies; 4+ messages in thread
From: Thinh Nguyen @ 2024-03-07 2:01 UTC (permalink / raw)
To: Wesley Cheng; +Cc: Greg KH, Thinh Nguyen, linux-kernel, linux-usb
On Fri, Mar 01, 2024, Wesley Cheng wrote:
> Hi Greg,
>
> On 3/1/2024 1:45 PM, Greg KH wrote:
> > On Fri, Mar 01, 2024 at 01:35:54PM -0800, Wesley Cheng wrote:
> > > Add revision value for identifying DWC31 version 2.00a based controllers.
> > >
> > > Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
> > > ---
> > > drivers/usb/dwc3/core.h | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> > > index df544ec730d2..f3bbbc1947bd 100644
> > > --- a/drivers/usb/dwc3/core.h
> > > +++ b/drivers/usb/dwc3/core.h
> > > @@ -1259,6 +1259,7 @@ struct dwc3 {
> > > #define DWC31_REVISION_170A 0x3137302a
> > > #define DWC31_REVISION_180A 0x3138302a
> > > #define DWC31_REVISION_190A 0x3139302a
> > > +#define DWC31_REVISION_200A 0x3230302a
> >
> > What code uses this define?
> >
>
> Don't think there is anything within the DWC3 core that would be different
> specifically for 2.00a versus previous revisions. (so far)
>
> > Why add a define that is not used?
> >
>
> There is a running list of all the DWC3 revisions. Not all of them are
> being used, so my understanding was that we're just keeping track of all
> possible version values that can be read from the DWC3 version HW register.
> If this is the not the case, maybe we can just leave this out until we find
> a need to add it.
>
Greg already picked this up, so it's fine. But I would prefer to only
define new macros when they are needed. There are a lot of versions and
configurations we don't list in dwc3.
Thanks,
Thinh
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-07 2:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01 21:35 [PATCH] usb: dwc3: core: Add DWC31 version 2.00a controller Wesley Cheng
2024-03-01 21:45 ` Greg KH
2024-03-01 22:47 ` Wesley Cheng
2024-03-07 2:01 ` Thinh Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®