linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: lpc32xx: stop overwriting TEST_CLK_SEL
@ 2019-04-11 14:12 Alexandre Belloni
  2019-04-15  7:59 ` gregory.clement
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Belloni @ 2019-04-11 14:12 UTC (permalink / raw)
  To: Vladimir Zapolskiy, Sylvain Lemieux
  Cc: Alexandre Belloni, Gregory Clement, linux-kernel, linux-arm-kernel

While the UDA1380 is described in some lpc3250 device trees, there is
currently no real user of that codec. Anyway, if the codec needs a clock,
it should take it explicitly.

lpc3250_machine_init is called for all the lpc32xx machines and some are
using test1_clk (for example to strobe an HW watchdog). Overwriting
TEST_CLK_SEL prevents booting those platforms.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 arch/arm/mach-lpc32xx/phy3250.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/arm/mach-lpc32xx/phy3250.c b/arch/arm/mach-lpc32xx/phy3250.c
index fdbb1409c32b..1db8508493a5 100644
--- a/arch/arm/mach-lpc32xx/phy3250.c
+++ b/arch/arm/mach-lpc32xx/phy3250.c
@@ -128,11 +128,6 @@ static void __init lpc3250_machine_init(void)
 {
 	lpc32xx_serial_init();
 
-	/* Test clock needed for UDA1380 initial init */
-	__raw_writel(LPC32XX_CLKPWR_TESTCLK2_SEL_MOSC |
-		LPC32XX_CLKPWR_TESTCLK_TESTCLK2_EN,
-		LPC32XX_CLKPWR_TEST_CLK_SEL);
-
 	of_platform_default_populate(NULL, lpc32xx_auxdata_lookup, NULL);
 }
 
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] ARM: lpc32xx: stop overwriting TEST_CLK_SEL
  2019-04-11 14:12 [PATCH] ARM: lpc32xx: stop overwriting TEST_CLK_SEL Alexandre Belloni
@ 2019-04-15  7:59 ` gregory.clement
  2019-04-19 19:57   ` Vladimir Zapolskiy
  0 siblings, 1 reply; 3+ messages in thread
From: gregory.clement @ 2019-04-15  7:59 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: Sylvain Lemieux, linux-kernel, linux-arm-kernel, Vladimir Zapolskiy

On 2019-04-11 16:12, Alexandre Belloni wrote:
> While the UDA1380 is described in some lpc3250 device trees, there is
> currently no real user of that codec. Anyway, if the codec needs a 
> clock,
> it should take it explicitly.
> 
> lpc3250_machine_init is called for all the lpc32xx machines and some 
> are
> using test1_clk (for example to strobe an HW watchdog). Overwriting
> TEST_CLK_SEL prevents booting those platforms.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>


Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>


> ---
>  arch/arm/mach-lpc32xx/phy3250.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/arch/arm/mach-lpc32xx/phy3250.c 
> b/arch/arm/mach-lpc32xx/phy3250.c
> index fdbb1409c32b..1db8508493a5 100644
> --- a/arch/arm/mach-lpc32xx/phy3250.c
> +++ b/arch/arm/mach-lpc32xx/phy3250.c
> @@ -128,11 +128,6 @@ static void __init lpc3250_machine_init(void)
>  {
>  	lpc32xx_serial_init();
> 
> -	/* Test clock needed for UDA1380 initial init */
> -	__raw_writel(LPC32XX_CLKPWR_TESTCLK2_SEL_MOSC |
> -		LPC32XX_CLKPWR_TESTCLK_TESTCLK2_EN,
> -		LPC32XX_CLKPWR_TEST_CLK_SEL);
> -
>  	of_platform_default_populate(NULL, lpc32xx_auxdata_lookup, NULL);
>  }

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] ARM: lpc32xx: stop overwriting TEST_CLK_SEL
  2019-04-15  7:59 ` gregory.clement
@ 2019-04-19 19:57   ` Vladimir Zapolskiy
  0 siblings, 0 replies; 3+ messages in thread
From: Vladimir Zapolskiy @ 2019-04-19 19:57 UTC (permalink / raw)
  To: gregory.clement, Alexandre Belloni
  Cc: linux-kernel, linux-arm-kernel, Sylvain Lemieux

Hi Alexandre, Gregory,

On 04/15/2019 10:59 AM, gregory.clement@bootlin.com wrote:
> On 2019-04-11 16:12, Alexandre Belloni wrote:
>> While the UDA1380 is described in some lpc3250 device trees, there is
>> currently no real user of that codec. Anyway, if the codec needs a 
>> clock,
>> it should take it explicitly.
>>
>> lpc3250_machine_init is called for all the lpc32xx machines and some 
>> are
>> using test1_clk (for example to strobe an HW watchdog). Overwriting
>> TEST_CLK_SEL prevents booting those platforms.
>>
>> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> 
> Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>

I've applied the change to my tree, hopefully it will be included into v5.2.

Thank you!

--
Best wishes,
Vladimir

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-04-19 19:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11 14:12 [PATCH] ARM: lpc32xx: stop overwriting TEST_CLK_SEL Alexandre Belloni
2019-04-15  7:59 ` gregory.clement
2019-04-19 19:57   ` Vladimir Zapolskiy

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