linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: xhci-mtk: Fix typo
@ 2020-08-08 12:49 Frank Wunderlich
  2020-08-12  1:26 ` Chunfeng Yun
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Wunderlich @ 2020-08-08 12:49 UTC (permalink / raw)
  To: linux-mediatek
  Cc: Frank Wunderlich, Greg Kroah-Hartman, Matthias Brugger,
	Chunfeng Yun, linux-usb, linux-arm-kernel, linux-kernel

From: Frank Wunderlich <frank-w@public-files.de>

fix this small typo u3_ports_disabed => u3_ports_disabled

Fixes: 55ba6e9e25a6 (usb: xhci-mtk: support option to disable usb3 ports)
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 drivers/usb/host/xhci-mtk.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index 4311d4c9b68d..8f321f39ab96 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -77,7 +77,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk)
 {
 	struct mu3c_ippc_regs __iomem *ippc = mtk->ippc_regs;
 	u32 value, check_val;
-	int u3_ports_disabed = 0;
+	int u3_ports_disabled = 0;
 	int ret;
 	int i;
 
@@ -92,7 +92,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk)
 	/* power on and enable u3 ports except skipped ones */
 	for (i = 0; i < mtk->num_u3_ports; i++) {
 		if ((0x1 << i) & mtk->u3p_dis_msk) {
-			u3_ports_disabed++;
+			u3_ports_disabled++;
 			continue;
 		}
 
@@ -117,7 +117,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk)
 	check_val = STS1_SYSPLL_STABLE | STS1_REF_RST |
 			STS1_SYS125_RST | STS1_XHCI_RST;
 
-	if (mtk->num_u3_ports > u3_ports_disabed)
+	if (mtk->num_u3_ports > u3_ports_disabled)
 		check_val |= STS1_U3_MAC_RST;
 
 	ret = readl_poll_timeout(&ippc->ip_pw_sts1, value,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: xhci-mtk: Fix typo
  2020-08-08 12:49 [PATCH] usb: xhci-mtk: Fix typo Frank Wunderlich
@ 2020-08-12  1:26 ` Chunfeng Yun
  0 siblings, 0 replies; 2+ messages in thread
From: Chunfeng Yun @ 2020-08-12  1:26 UTC (permalink / raw)
  To: Frank Wunderlich
  Cc: linux-mediatek, Frank Wunderlich, Greg Kroah-Hartman,
	Matthias Brugger, linux-usb, linux-arm-kernel, linux-kernel

On Sat, 2020-08-08 at 14:49 +0200, Frank Wunderlich wrote:
> From: Frank Wunderlich <frank-w@public-files.de>
> 
> fix this small typo u3_ports_disabed => u3_ports_disabled
> 
> Fixes: 55ba6e9e25a6 (usb: xhci-mtk: support option to disable usb3 ports)
> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
> ---
>  drivers/usb/host/xhci-mtk.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
> index 4311d4c9b68d..8f321f39ab96 100644
> --- a/drivers/usb/host/xhci-mtk.c
> +++ b/drivers/usb/host/xhci-mtk.c
> @@ -77,7 +77,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk)
>  {
>  	struct mu3c_ippc_regs __iomem *ippc = mtk->ippc_regs;
>  	u32 value, check_val;
> -	int u3_ports_disabed = 0;
> +	int u3_ports_disabled = 0;
>  	int ret;
>  	int i;
>  
> @@ -92,7 +92,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk)
>  	/* power on and enable u3 ports except skipped ones */
>  	for (i = 0; i < mtk->num_u3_ports; i++) {
>  		if ((0x1 << i) & mtk->u3p_dis_msk) {
> -			u3_ports_disabed++;
> +			u3_ports_disabled++;
>  			continue;
>  		}
>  
> @@ -117,7 +117,7 @@ static int xhci_mtk_host_enable(struct xhci_hcd_mtk *mtk)
>  	check_val = STS1_SYSPLL_STABLE | STS1_REF_RST |
>  			STS1_SYS125_RST | STS1_XHCI_RST;
>  
> -	if (mtk->num_u3_ports > u3_ports_disabed)
> +	if (mtk->num_u3_ports > u3_ports_disabled)
>  		check_val |= STS1_U3_MAC_RST;
>  
>  	ret = readl_poll_timeout(&ippc->ip_pw_sts1, value,

Reviewed-by: Chunfeng Yun <chunfeng.yun@mediatek.com>

Thanks



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-12  1:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-08 12:49 [PATCH] usb: xhci-mtk: Fix typo Frank Wunderlich
2020-08-12  1:26 ` Chunfeng Yun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).