Commit 18106234 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

usb: mtu3: Fix spelling mistake "disabed" -> "disabled"

The variable u3_ports_disabed contains a spelling mistake,
rename it to u3_ports_disabled.
Reviewed-by: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210311092529.4898-1-colin.king@canonical.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a154ec9
...@@ -109,7 +109,7 @@ int ssusb_host_enable(struct ssusb_mtk *ssusb) ...@@ -109,7 +109,7 @@ int ssusb_host_enable(struct ssusb_mtk *ssusb)
void __iomem *ibase = ssusb->ippc_base; void __iomem *ibase = ssusb->ippc_base;
int num_u3p = ssusb->u3_ports; int num_u3p = ssusb->u3_ports;
int num_u2p = ssusb->u2_ports; int num_u2p = ssusb->u2_ports;
int u3_ports_disabed; int u3_ports_disabled;
u32 check_clk; u32 check_clk;
u32 value; u32 value;
int i; int i;
...@@ -118,10 +118,10 @@ int ssusb_host_enable(struct ssusb_mtk *ssusb) ...@@ -118,10 +118,10 @@ int ssusb_host_enable(struct ssusb_mtk *ssusb)
mtu3_clrbits(ibase, U3D_SSUSB_IP_PW_CTRL1, SSUSB_IP_HOST_PDN); mtu3_clrbits(ibase, U3D_SSUSB_IP_PW_CTRL1, SSUSB_IP_HOST_PDN);
/* power on and enable u3 ports except skipped ones */ /* power on and enable u3 ports except skipped ones */
u3_ports_disabed = 0; u3_ports_disabled = 0;
for (i = 0; i < num_u3p; i++) { for (i = 0; i < num_u3p; i++) {
if ((0x1 << i) & ssusb->u3p_dis_msk) { if ((0x1 << i) & ssusb->u3p_dis_msk) {
u3_ports_disabed++; u3_ports_disabled++;
continue; continue;
} }
...@@ -140,7 +140,7 @@ int ssusb_host_enable(struct ssusb_mtk *ssusb) ...@@ -140,7 +140,7 @@ int ssusb_host_enable(struct ssusb_mtk *ssusb)
} }
check_clk = SSUSB_XHCI_RST_B_STS; check_clk = SSUSB_XHCI_RST_B_STS;
if (num_u3p > u3_ports_disabed) if (num_u3p > u3_ports_disabled)
check_clk = SSUSB_U3_MAC_RST_B_STS; check_clk = SSUSB_U3_MAC_RST_B_STS;
return ssusb_check_clocks(ssusb, check_clk); return ssusb_check_clocks(ssusb, check_clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment