linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mx35_3ds: remove unnecessary USB OTG init flag
@ 2018-02-21 22:17 Martin Kaiser
  2018-02-24  9:08 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Kaiser @ 2018-02-21 22:17 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, Fabio Estevam, Russell King,
	linux-arm-kernel, linux-kernel
  Cc: Martin Kaiser

The platform-specific init function for the USB OTG port,
mx35_3ds_otg_init(), sets the MXC_EHCI_INTERNAL_PHY flag.

This flag is applicable only to the host port, not to the OTG port. It's
ignored by mx35_initialize_usb_hw() when the OTG port is initialized.

Remove the flag to make it clear what is actually configured.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
 arch/arm/mach-imx/mach-mx35_3ds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/mach-mx35_3ds.c b/arch/arm/mach-imx/mach-mx35_3ds.c
index 1c33a6c..f1963f2 100644
--- a/arch/arm/mach-imx/mach-mx35_3ds.c
+++ b/arch/arm/mach-imx/mach-mx35_3ds.c
@@ -407,7 +407,7 @@ static void __init imx35_3ds_init_mc13892(void)
 
 static int mx35_3ds_otg_init(struct platform_device *pdev)
 {
-	return mx35_initialize_usb_hw(pdev->id, MXC_EHCI_INTERNAL_PHY);
+	return mx35_initialize_usb_hw(pdev->id, 0);
 }
 
 /* OTG config */
-- 
2.1.4

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

* Re: [PATCH] ARM: mx35_3ds: remove unnecessary USB OTG init flag
  2018-02-21 22:17 [PATCH] ARM: mx35_3ds: remove unnecessary USB OTG init flag Martin Kaiser
@ 2018-02-24  9:08 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2018-02-24  9:08 UTC (permalink / raw)
  To: Martin Kaiser
  Cc: Sascha Hauer, Fabio Estevam, Russell King, linux-arm-kernel,
	linux-kernel

On Wed, Feb 21, 2018 at 11:17:43PM +0100, Martin Kaiser wrote:
> The platform-specific init function for the USB OTG port,
> mx35_3ds_otg_init(), sets the MXC_EHCI_INTERNAL_PHY flag.
> 
> This flag is applicable only to the host port, not to the OTG port. It's
> ignored by mx35_initialize_usb_hw() when the OTG port is initialized.
> 
> Remove the flag to make it clear what is actually configured.
> 
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>

We do not take any patch on legacy board files, unless it fixes some
real problem.

Shawn

> ---
>  arch/arm/mach-imx/mach-mx35_3ds.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-imx/mach-mx35_3ds.c b/arch/arm/mach-imx/mach-mx35_3ds.c
> index 1c33a6c..f1963f2 100644
> --- a/arch/arm/mach-imx/mach-mx35_3ds.c
> +++ b/arch/arm/mach-imx/mach-mx35_3ds.c
> @@ -407,7 +407,7 @@ static void __init imx35_3ds_init_mc13892(void)
>  
>  static int mx35_3ds_otg_init(struct platform_device *pdev)
>  {
> -	return mx35_initialize_usb_hw(pdev->id, MXC_EHCI_INTERNAL_PHY);
> +	return mx35_initialize_usb_hw(pdev->id, 0);
>  }
>  
>  /* OTG config */
> -- 
> 2.1.4
> 

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

end of thread, other threads:[~2018-02-24  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21 22:17 [PATCH] ARM: mx35_3ds: remove unnecessary USB OTG init flag Martin Kaiser
2018-02-24  9:08 ` Shawn Guo

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).