提交 41dd70b3 编写于 作者: 周琰杰 (Zhou Yanjie) 提交者: Greg Kroah-Hartman

USB: PHY: JZ4770: Fix static checker warning.

The commit 2a6c0b82 ("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: 2a6c0b82 ("USB: PHY: JZ4770: Add support for new Ingenic SoCs.").
Signed-off-by: N周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Link: https://lore.kernel.org/r/20200825081654.18186-2-zhouyanjie@wanyeetech.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2b74b0a0
...@@ -176,6 +176,7 @@ static int ingenic_usb_phy_init(struct usb_phy *phy) ...@@ -176,6 +176,7 @@ static int ingenic_usb_phy_init(struct usb_phy *phy)
/* Wait for PHY to reset */ /* Wait for PHY to reset */
usleep_range(30, 300); usleep_range(30, 300);
reg = readl(priv->base + REG_USBPCR_OFFSET);
writel(reg & ~USBPCR_POR, priv->base + REG_USBPCR_OFFSET); writel(reg & ~USBPCR_POR, priv->base + REG_USBPCR_OFFSET);
usleep_range(300, 1000); usleep_range(300, 1000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册