dwc2: explicitly force host mode for USB_DR_MODE_HOST

- Add dwc2_force_mode(hsotg, true) call in USB_DR_MODE_HOST case
- Ensures proper host mode initialization for Rockchip platforms
- Applies to both 6.18 and 6.19 kernel patches
This commit is contained in:
Igor Pecovnik 2026-03-04 21:29:59 +01:00 committed by Igor
parent fa61a10ddb
commit ae085455e3
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ index 111111111111..222222222222 100644
+
switch (hsotg->dr_mode) {
case USB_DR_MODE_HOST:
dwc2_force_mode(hsotg, true);
/*
* NOTE: This is required for some rockchip soc based
* platforms on their host-only dwc2.

View File

@ -35,6 +35,7 @@ index 111111111111..222222222222 100644
+
switch (hsotg->dr_mode) {
case USB_DR_MODE_HOST:
dwc2_force_mode(hsotg, true);
/*
* NOTE: This is required for some rockchip soc based
* platforms on their host-only dwc2.