linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: at91: sam9x60: support only two programmable clocks
@ 2020-10-14 14:34 Claudiu Beznea
  2020-10-14 16:09 ` Nicolas Ferre
  2020-10-14 17:07 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Claudiu Beznea @ 2020-10-14 14:34 UTC (permalink / raw)
  To: mturquette, sboyd, nicolas.ferre, alexandre.belloni, ludovic.desroches
  Cc: linux-clk, linux-arm-kernel, linux-kernel, Claudiu Beznea

According to datasheet (Chapter 29.16.13, PMC Programmable Clock Register)
there are only two programmable clocks on SAM9X60.

Fixes: 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/clk/at91/sam9x60.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c
index ab6318c0589e..3c4c95603595 100644
--- a/drivers/clk/at91/sam9x60.c
+++ b/drivers/clk/at91/sam9x60.c
@@ -279,7 +279,7 @@ static void __init sam9x60_pmc_setup(struct device_node *np)
 	parent_names[3] = "masterck";
 	parent_names[4] = "pllack_divck";
 	parent_names[5] = "upllck_divck";
-	for (i = 0; i < 8; i++) {
+	for (i = 0; i < 2; i++) {
 		char name[6];
 
 		snprintf(name, sizeof(name), "prog%d", i);
-- 
2.7.4


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

* Re: [PATCH] clk: at91: sam9x60: support only two programmable clocks
  2020-10-14 14:34 [PATCH] clk: at91: sam9x60: support only two programmable clocks Claudiu Beznea
@ 2020-10-14 16:09 ` Nicolas Ferre
  2020-10-14 17:07 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2020-10-14 16:09 UTC (permalink / raw)
  To: Claudiu Beznea, mturquette, sboyd, alexandre.belloni, ludovic.desroches
  Cc: linux-clk, linux-arm-kernel, linux-kernel, stable

On 14/10/2020 at 16:34, Claudiu Beznea wrote:
> According to datasheet (Chapter 29.16.13, PMC Programmable Clock Register)
> there are only two programmable clocks on SAM9X60.
> 
> Fixes: 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>

This is a fix:
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

Cc: <stable@vger.kernel.org> # v5.2+

> ---
>   drivers/clk/at91/sam9x60.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c
> index ab6318c0589e..3c4c95603595 100644
> --- a/drivers/clk/at91/sam9x60.c
> +++ b/drivers/clk/at91/sam9x60.c
> @@ -279,7 +279,7 @@ static void __init sam9x60_pmc_setup(struct device_node *np)
>   	parent_names[3] = "masterck";
>   	parent_names[4] = "pllack_divck";
>   	parent_names[5] = "upllck_divck";
> -	for (i = 0; i < 8; i++) {
> +	for (i = 0; i < 2; i++) {
>   		char name[6];
>   
>   		snprintf(name, sizeof(name), "prog%d", i);
> 


-- 
Nicolas Ferre

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

* Re: [PATCH] clk: at91: sam9x60: support only two programmable clocks
  2020-10-14 14:34 [PATCH] clk: at91: sam9x60: support only two programmable clocks Claudiu Beznea
  2020-10-14 16:09 ` Nicolas Ferre
@ 2020-10-14 17:07 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2020-10-14 17:07 UTC (permalink / raw)
  To: Claudiu Beznea, alexandre.belloni, ludovic.desroches, mturquette,
	nicolas.ferre
  Cc: linux-clk, linux-arm-kernel, linux-kernel, Claudiu Beznea

Quoting Claudiu Beznea (2020-10-14 07:34:32)
> According to datasheet (Chapter 29.16.13, PMC Programmable Clock Register)
> there are only two programmable clocks on SAM9X60.
> 
> Fixes: 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---

Applied to clk-next

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

end of thread, other threads:[~2020-10-14 17:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 14:34 [PATCH] clk: at91: sam9x60: support only two programmable clocks Claudiu Beznea
2020-10-14 16:09 ` Nicolas Ferre
2020-10-14 17:07 ` Stephen Boyd

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