Skip to content

Commit 0ed91d4

Browse files
Thinh Nguyengregkh
authored andcommitted
usb: dwc3: Check for USB4 IP_NAME
Synopsys renamed DWC_usb32 IP to DWC_usb4 as of IP version 1.30. No functional change except checking for the IP_NAME here. The driver will treat the new IP_NAME as if it's DWC_usb32. Additional features for USB4 will be introduced and checked separately. Cc: stable@vger.kernel.org Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://patch.msgid.link/e6f1827754c7a7ddc5eb7382add20bfe3a9b312f.1767390747.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f8f9c1f commit 0ed91d4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/usb/dwc3/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,8 @@ static bool dwc3_core_is_valid(struct dwc3 *dwc)
993993

994994
reg = dwc3_readl(dwc->regs, DWC3_GSNPSID);
995995
dwc->ip = DWC3_GSNPS_ID(reg);
996+
if (dwc->ip == DWC4_IP)
997+
dwc->ip = DWC32_IP;
996998

997999
/* This should read as U3 followed by revision number */
9981000
if (DWC3_IP_IS(DWC3)) {

drivers/usb/dwc3/core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,7 @@ struct dwc3 {
12651265
#define DWC3_IP 0x5533
12661266
#define DWC31_IP 0x3331
12671267
#define DWC32_IP 0x3332
1268+
#define DWC4_IP 0x3430
12681269

12691270
u32 revision;
12701271

0 commit comments

Comments
 (0)