We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ce71e8 commit 86e7084Copy full SHA for 86e7084
drivers/phy/renesas/phy-rcar-gen3-usb2.c
@@ -467,8 +467,11 @@ static int rcar_gen3_phy_usb2_init(struct phy *p)
467
val = readl(usb2_base + USB2_INT_ENABLE);
468
val |= USB2_INT_ENABLE_UCOM_INTEN | rphy->int_enable_bits;
469
writel(val, usb2_base + USB2_INT_ENABLE);
470
- writel(USB2_SPD_RSM_TIMSET_INIT, usb2_base + USB2_SPD_RSM_TIMSET);
471
- writel(USB2_OC_TIMSET_INIT, usb2_base + USB2_OC_TIMSET);
+
+ if (!rcar_gen3_is_any_rphy_initialized(channel)) {
472
+ writel(USB2_SPD_RSM_TIMSET_INIT, usb2_base + USB2_SPD_RSM_TIMSET);
473
+ writel(USB2_OC_TIMSET_INIT, usb2_base + USB2_OC_TIMSET);
474
+ }
475
476
/* Initialize otg part (only if we initialize a PHY with IRQs). */
477
if (rphy->int_enable_bits)
0 commit comments