Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thinh Nguyen and committed by
Greg Kroah-Hartman
0ed91d47 f8f9c1f4

+3
+2
drivers/usb/dwc3/core.c
··· 993 993 994 994 reg = dwc3_readl(dwc->regs, DWC3_GSNPSID); 995 995 dwc->ip = DWC3_GSNPS_ID(reg); 996 + if (dwc->ip == DWC4_IP) 997 + dwc->ip = DWC32_IP; 996 998 997 999 /* This should read as U3 followed by revision number */ 998 1000 if (DWC3_IP_IS(DWC3)) {
+1
drivers/usb/dwc3/core.h
··· 1265 1265 #define DWC3_IP 0x5533 1266 1266 #define DWC31_IP 0x3331 1267 1267 #define DWC32_IP 0x3332 1268 + #define DWC4_IP 0x3430 1268 1269 1269 1270 u32 revision; 1270 1271