Skip to content

Commit

Permalink
USB: PHY: JZ4770: Fix static checker warning.
Browse files Browse the repository at this point in the history
The commit 2a6c0b8 ("USB: PHY: JZ4770: Add support for new
Ingenic SoCs.") introduced the initialization function for different
chips, but left the relevant code involved in the resetting process
in the original function, resulting in uninitialized variable calls.

Fixes: 2a6c0b8 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.").
Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Link: https://lore.kernel.org/r/20200825081654.18186-2-zhouyanjie@wanyeetech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
周琰杰 (Zhou Yanjie) authored and Greg Kroah-Hartman committed Aug 25, 2020
1 parent 2b74b0a commit 41dd70b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/phy/phy-jz4770.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ static int ingenic_usb_phy_init(struct usb_phy *phy)

/* Wait for PHY to reset */
usleep_range(30, 300);
reg = readl(priv->base + REG_USBPCR_OFFSET);
writel(reg & ~USBPCR_POR, priv->base + REG_USBPCR_OFFSET);
usleep_range(300, 1000);

Expand Down

0 comments on commit 41dd70b

Please sign in to comment.