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

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 <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/1634133425-25670-5-git-send-email-fabrice.gasnier@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabrice Gasnier and committed by
Greg Kroah-Hartman
9e894ee3 f5c8a6cb

+2
+2
drivers/usb/dwc2/params.c
··· 176 176 177 177 p->otg_caps.hnp_support = false; 178 178 p->otg_caps.srp_support = false; 179 + p->otg_caps.otg_rev = 0x200; 179 180 p->speed = DWC2_SPEED_PARAM_FULL; 180 181 p->host_rx_fifo_size = 128; 181 182 p->host_nperio_tx_fifo_size = 96; ··· 198 197 199 198 p->otg_caps.hnp_support = false; 200 199 p->otg_caps.srp_support = false; 200 + p->otg_caps.otg_rev = 0x200; 201 201 p->activate_stm_id_vb_detection = !device_property_read_bool(hsotg->dev, "usb-role-switch"); 202 202 p->host_rx_fifo_size = 440; 203 203 p->host_nperio_tx_fifo_size = 256;