summaryrefslogtreecommitdiff
path: root/drivers/adc/stm32-adc-core.c
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2024-02-25 22:10:19 +0000
committerKever Yang <kever.yang@rock-chips.com>2024-03-14 11:48:40 +0800
commit803fbdfd1c0214b694eb489b6dac465b697f0f71 (patch)
tree368db177721ad43330e48aec6e88ce180123eb82 /drivers/adc/stm32-adc-core.c
parent6d8cdfd15367b9ed0f8c9458a0f9a9962a767000 (diff)
phy: rockchip-inno-usb2: Write to correct GRF
On RK3399 the USB2PHY regs are located in the common GRF, remaining SoCs that is supported by this driver have the USB2PHY regs in a different GRF. When support for RK356x, RK3588 and RK3328 was added this driver was never updated to use correct GRF and have instead incorrectly written to wrong GRF for these SoCs. The default reset values for the USB2PHY have made USB mostly working even when wrong GRF was used, however, following have been observed: scanning bus usb@fd840000 for devices... ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to token (IN) or did not provide a handshake (OUT) (5) ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to token (IN) or did not provide a handshake (OUT) (5) unable to get device descriptor (error=-1) Fix this by using a regmap from rockchip,usbgrf prop and fall back to getting a regmap for parent udevice instead of always getting the common GRF. Also protect against accidental clear of bit 0 in a reg with offset 0, only bind driver to enabled otg/host-ports and remove unused headers. Fixes: 3da15f0b49a2 ("phy: rockchip-inno-usb2: Add USB2 PHY for rk3568") Fixes: cdf9010f6e17 ("phy: rockchip-inno-usb2: add initial support for rk3588 PHY") Fixes: 9aa93d84038b ("phy: rockchip-inno-usb2: Add USB2 PHY for RK3328") Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/adc/stm32-adc-core.c')
0 files changed, 0 insertions, 0 deletions