diff options
| author | Junhui Liu <[email protected]> | 2025-01-10 21:55:21 +0800 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2025-06-02 09:57:25 +0200 |
| commit | 94a1f8fe47e26250dd5704b2c2187622522eca6b (patch) | |
| tree | 981e1a33a52b2df6db1dcebf7505347379ca7f2e /include/linux | |
| parent | 14f904130964f251e78349a2e370c5069f2af500 (diff) | |
usb: dwc2: Fix incorrect ULPI_UTMI_SEL bit setting
The ULPI_UTMI_SEL bit in the DWC2 driver was set incorrectly. According
to the datasheet [1], this bit should be set to 0 for UTMI interface and 1
for ULPI interface. The existing code had this logic reversed,
causing the interface selection to be incorrect.
This commit corrects the ULPI_UTMI_SEL bit setting to match the
datasheet's description. Referencing the kernel's code [2] also confirms
this fix.
[1] https://rockchip.fr/RK312X%20TRM/chapter-26-usb-otg-2-0.pdf#page=30
[2] https://github.com/torvalds/linux/blob/v6.13-rc3/drivers/usb/dwc2/core.c#L1106
Reviewed-by: Marek Vasut <[email protected]>
Tested-by: Peter Robinson <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Signed-off-by: Junhui Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
