[RFC PATCH 3/5] usb: dwc2: Adapt the return value changed for disabled blob

From: Inochi Amaoto

Date: Mon Sep 21 2026 - 22:48:46 EST


Check EOPNOTSUPP for disabled helper function as the change in phy core.

Signed-off-by: Inochi Amaoto <inochiama@xxxxxxxxx>
---
drivers/usb/dwc2/platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index ef0d73077034..62b663ef1504 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -243,7 +243,7 @@ static int dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg)
ret = PTR_ERR(hsotg->phy);
switch (ret) {
case -ENODEV:
- case -ENOSYS:
+ case -EOPNOTSUPP:
hsotg->phy = NULL;
break;
default:
--
2.55.0