Skip to content

Commit 9e894ee

Browse files
Fabrice Gasniergregkh
authored andcommitted
usb: dwc2: stm32mp15: set otg_rev
STM32MP15 complies with the OTG 2.0. Set OTG revision accordingly. It is useful for the of_usb_update_otg_caps() routine to check and update otg_rev to the lower value between DT and provided params. Signed-off-by: Fabrice Gasnier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f5c8a6c commit 9e894ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/usb/dwc2/params.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ static void dwc2_set_stm32mp15_fsotg_params(struct dwc2_hsotg *hsotg)
176176

177177
p->otg_caps.hnp_support = false;
178178
p->otg_caps.srp_support = false;
179+
p->otg_caps.otg_rev = 0x200;
179180
p->speed = DWC2_SPEED_PARAM_FULL;
180181
p->host_rx_fifo_size = 128;
181182
p->host_nperio_tx_fifo_size = 96;
@@ -197,6 +198,7 @@ static void dwc2_set_stm32mp15_hsotg_params(struct dwc2_hsotg *hsotg)
197198

198199
p->otg_caps.hnp_support = false;
199200
p->otg_caps.srp_support = false;
201+
p->otg_caps.otg_rev = 0x200;
200202
p->activate_stm_id_vb_detection = !device_property_read_bool(hsotg->dev, "usb-role-switch");
201203
p->host_rx_fifo_size = 440;
202204
p->host_nperio_tx_fifo_size = 256;

0 commit comments

Comments
 (0)