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 55a387e commit 9ce71e8Copy full SHA for 9ce71e8
drivers/phy/renesas/phy-rcar-gen3-usb2.c
@@ -537,9 +537,17 @@ static int rcar_gen3_phy_usb2_power_off(struct phy *p)
537
struct rcar_gen3_chan *channel = rphy->ch;
538
int ret = 0;
539
540
- scoped_guard(spinlock_irqsave, &channel->lock)
+ scoped_guard(spinlock_irqsave, &channel->lock) {
541
rphy->powered = false;
542
543
+ if (rcar_gen3_are_all_rphys_power_off(channel)) {
544
+ u32 val = readl(channel->base + USB2_USBCTR);
545
+
546
+ val |= USB2_USBCTR_PLL_RST;
547
+ writel(val, channel->base + USB2_USBCTR);
548
+ }
549
550
551
if (channel->vbus)
552
ret = regulator_disable(channel->vbus);
553
0 commit comments