* [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
@ 2018-05-07 11:34 ` Sekhar Nori
0 siblings, 0 replies; 10+ messages in thread
From: Sekhar Nori @ 2018-05-07 11:34 UTC (permalink / raw)
To: David Lechner, Stephen Boyd, Michael Turquette
Cc: Linux clk Mailing List, Linux ARM Mailing List, Sekhar Nori
USB0 48MHz PHY clock registration fails on DA830 because the
da8xx-cfgchip clock driver cannot get a reference to USB0
LPSC clock.
The USB0 LPSC needs to be enabled during PHY clock enable. Setup
the clock lookup correctly to fix this.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
drivers/clk/davinci/psc-da830.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/davinci/psc-da830.c b/drivers/clk/davinci/psc-da830.c
index f61abf5632ff..081b039fcb02 100644
--- a/drivers/clk/davinci/psc-da830.c
+++ b/drivers/clk/davinci/psc-da830.c
@@ -55,7 +55,8 @@ const struct davinci_psc_init_data da830_psc0_init_data = {
.psc_init = &da830_psc0_init,
};
-LPSC_CLKDEV2(usb0_clkdev, NULL, "musb-da8xx",
+LPSC_CLKDEV3(usb0_clkdev, "fck", "da830-usb-phy-clks",
+ NULL, "musb-da8xx",
NULL, "cppi41-dmaengine");
LPSC_CLKDEV1(usb1_clkdev, NULL, "ohci-da8xx");
/* REVISIT: gpio-davinci.c should be modified to drop con_id */
--
2.16.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
@ 2018-05-07 11:34 ` Sekhar Nori
0 siblings, 0 replies; 10+ messages in thread
From: Sekhar Nori @ 2018-05-07 11:34 UTC (permalink / raw)
To: linux-arm-kernel
USB0 48MHz PHY clock registration fails on DA830 because the
da8xx-cfgchip clock driver cannot get a reference to USB0
LPSC clock.
The USB0 LPSC needs to be enabled during PHY clock enable. Setup
the clock lookup correctly to fix this.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
drivers/clk/davinci/psc-da830.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/davinci/psc-da830.c b/drivers/clk/davinci/psc-da830.c
index f61abf5632ff..081b039fcb02 100644
--- a/drivers/clk/davinci/psc-da830.c
+++ b/drivers/clk/davinci/psc-da830.c
@@ -55,7 +55,8 @@ const struct davinci_psc_init_data da830_psc0_init_data = {
.psc_init = &da830_psc0_init,
};
-LPSC_CLKDEV2(usb0_clkdev, NULL, "musb-da8xx",
+LPSC_CLKDEV3(usb0_clkdev, "fck", "da830-usb-phy-clks",
+ NULL, "musb-da8xx",
NULL, "cppi41-dmaengine");
LPSC_CLKDEV1(usb1_clkdev, NULL, "ohci-da8xx");
/* REVISIT: gpio-davinci.c should be modified to drop con_id */
--
2.16.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
2018-05-07 11:34 ` Sekhar Nori
@ 2018-05-07 14:25 ` David Lechner
-1 siblings, 0 replies; 10+ messages in thread
From: David Lechner @ 2018-05-07 14:25 UTC (permalink / raw)
To: Sekhar Nori, Stephen Boyd, Michael Turquette
Cc: Linux clk Mailing List, Linux ARM Mailing List
On 05/07/2018 06:34 AM, Sekhar Nori wrote:
> USB0 48MHz PHY clock registration fails on DA830 because the
> da8xx-cfgchip clock driver cannot get a reference to USB0
> LPSC clock.
>
> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
> the clock lookup correctly to fix this.
>
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> ---
> drivers/clk/davinci/psc-da830.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/clk/davinci/psc-da830.c b/drivers/clk/davinci/psc-da830.c
> index f61abf5632ff..081b039fcb02 100644
> --- a/drivers/clk/davinci/psc-da830.c
> +++ b/drivers/clk/davinci/psc-da830.c
> @@ -55,7 +55,8 @@ const struct davinci_psc_init_data da830_psc0_init_data = {
> .psc_init = &da830_psc0_init,
> };
>
> -LPSC_CLKDEV2(usb0_clkdev, NULL, "musb-da8xx",
> +LPSC_CLKDEV3(usb0_clkdev, "fck", "da830-usb-phy-clks",
> + NULL, "musb-da8xx",
> NULL, "cppi41-dmaengine");
> LPSC_CLKDEV1(usb1_clkdev, NULL, "ohci-da8xx");
> /* REVISIT: gpio-davinci.c should be modified to drop con_id */
>
Reviewed-by: David Lechner <david@lechnology.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
@ 2018-05-07 14:25 ` David Lechner
0 siblings, 0 replies; 10+ messages in thread
From: David Lechner @ 2018-05-07 14:25 UTC (permalink / raw)
To: linux-arm-kernel
On 05/07/2018 06:34 AM, Sekhar Nori wrote:
> USB0 48MHz PHY clock registration fails on DA830 because the
> da8xx-cfgchip clock driver cannot get a reference to USB0
> LPSC clock.
>
> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
> the clock lookup correctly to fix this.
>
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> ---
> drivers/clk/davinci/psc-da830.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/clk/davinci/psc-da830.c b/drivers/clk/davinci/psc-da830.c
> index f61abf5632ff..081b039fcb02 100644
> --- a/drivers/clk/davinci/psc-da830.c
> +++ b/drivers/clk/davinci/psc-da830.c
> @@ -55,7 +55,8 @@ const struct davinci_psc_init_data da830_psc0_init_data = {
> .psc_init = &da830_psc0_init,
> };
>
> -LPSC_CLKDEV2(usb0_clkdev, NULL, "musb-da8xx",
> +LPSC_CLKDEV3(usb0_clkdev, "fck", "da830-usb-phy-clks",
> + NULL, "musb-da8xx",
> NULL, "cppi41-dmaengine");
> LPSC_CLKDEV1(usb1_clkdev, NULL, "ohci-da8xx");
> /* REVISIT: gpio-davinci.c should be modified to drop con_id */
>
Reviewed-by: David Lechner <david@lechnology.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
2018-05-07 11:34 ` Sekhar Nori
@ 2018-05-15 22:34 ` Stephen Boyd
-1 siblings, 0 replies; 10+ messages in thread
From: Stephen Boyd @ 2018-05-15 22:34 UTC (permalink / raw)
To: David Lechner, Michael Turquette, Sekhar Nori
Cc: Sekhar Nori, Linux clk Mailing List, Linux ARM Mailing List
Quoting Sekhar Nori (2018-05-07 04:34:57)
> USB0 48MHz PHY clock registration fails on DA830 because the
> da8xx-cfgchip clock driver cannot get a reference to USB0
> LPSC clock.
> =
> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
> the clock lookup correctly to fix this.
> =
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> ---
Applied to clk-next
Did this need a fixes tag? And should it go into 4.17 final? Or it's not
causing problems right now?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
@ 2018-05-15 22:34 ` Stephen Boyd
0 siblings, 0 replies; 10+ messages in thread
From: Stephen Boyd @ 2018-05-15 22:34 UTC (permalink / raw)
To: linux-arm-kernel
Quoting Sekhar Nori (2018-05-07 04:34:57)
> USB0 48MHz PHY clock registration fails on DA830 because the
> da8xx-cfgchip clock driver cannot get a reference to USB0
> LPSC clock.
>
> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
> the clock lookup correctly to fix this.
>
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> ---
Applied to clk-next
Did this need a fixes tag? And should it go into 4.17 final? Or it's not
causing problems right now?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
2018-05-15 22:34 ` Stephen Boyd
@ 2018-05-16 5:14 ` Sekhar Nori
-1 siblings, 0 replies; 10+ messages in thread
From: Sekhar Nori @ 2018-05-16 5:14 UTC (permalink / raw)
To: Stephen Boyd, David Lechner, Michael Turquette
Cc: Linux clk Mailing List, Linux ARM Mailing List
Hi Stephen,
On Wednesday 16 May 2018 04:04 AM, Stephen Boyd wrote:
> Quoting Sekhar Nori (2018-05-07 04:34:57)
>> USB0 48MHz PHY clock registration fails on DA830 because the
>> da8xx-cfgchip clock driver cannot get a reference to USB0
>> LPSC clock.
>>
>> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
>> the clock lookup correctly to fix this.
>>
>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>> ---
>
> Applied to clk-next
>
> Did this need a fixes tag? And should it go into 4.17 final? Or it's not
> causing problems right now?
We have not switched DaVinci to use common clock framework still. So no,
this does not cause problems right now. All drivers/clk/davinci/*
patches can be included for v4.18.
Although if you are sending a v4.17 pull request to Linus anyway, and
can include this, I would not mind it ;) We don't need stable backports
definitely, so no need to add a Fixes: tag.
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
@ 2018-05-16 5:14 ` Sekhar Nori
0 siblings, 0 replies; 10+ messages in thread
From: Sekhar Nori @ 2018-05-16 5:14 UTC (permalink / raw)
To: linux-arm-kernel
Hi Stephen,
On Wednesday 16 May 2018 04:04 AM, Stephen Boyd wrote:
> Quoting Sekhar Nori (2018-05-07 04:34:57)
>> USB0 48MHz PHY clock registration fails on DA830 because the
>> da8xx-cfgchip clock driver cannot get a reference to USB0
>> LPSC clock.
>>
>> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
>> the clock lookup correctly to fix this.
>>
>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>> ---
>
> Applied to clk-next
>
> Did this need a fixes tag? And should it go into 4.17 final? Or it's not
> causing problems right now?
We have not switched DaVinci to use common clock framework still. So no,
this does not cause problems right now. All drivers/clk/davinci/*
patches can be included for v4.18.
Although if you are sending a v4.17 pull request to Linus anyway, and
can include this, I would not mind it ;) We don't need stable backports
definitely, so no need to add a Fixes: tag.
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
2018-05-16 5:14 ` Sekhar Nori
@ 2018-05-18 6:47 ` Sekhar Nori
-1 siblings, 0 replies; 10+ messages in thread
From: Sekhar Nori @ 2018-05-18 6:47 UTC (permalink / raw)
To: Stephen Boyd, David Lechner, Michael Turquette
Cc: Linux clk Mailing List, Linux ARM Mailing List
Hi Stephen,
On Wednesday 16 May 2018 10:44 AM, Sekhar Nori wrote:
> Hi Stephen,
>
> On Wednesday 16 May 2018 04:04 AM, Stephen Boyd wrote:
>> Quoting Sekhar Nori (2018-05-07 04:34:57)
>>> USB0 48MHz PHY clock registration fails on DA830 because the
>>> da8xx-cfgchip clock driver cannot get a reference to USB0
>>> LPSC clock.
>>>
>>> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
>>> the clock lookup correctly to fix this.
>>>
>>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>>> ---
>>
>> Applied to clk-next
>>
>> Did this need a fixes tag? And should it go into 4.17 final? Or it's not
>> causing problems right now?
>
> We have not switched DaVinci to use common clock framework still. So no,
> this does not cause problems right now. All drivers/clk/davinci/*
> patches can be included for v4.18.
There are some more patches (fixes) to drivers/clk/davinci which have
been reviewed and both David and I think are ready for merge[1].
Do you have them in your queue? Else, I can send a pull request for you
to take a look and merge.
Thanks,
Sekhar
[1]
clk: davinci: psc-dm365: fix few clocks
clk: davinci: pll-dm646x: keep PLL2 SYSCLK1 always enabled
clk: davinci: psc-dm355: fix ASP0/1 clkdev lookups
clk: davinci: pll-dm355: fix SYSCLKn parent names
clk: davinci: pll-dm355: drop pll2_sysclk2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration
@ 2018-05-18 6:47 ` Sekhar Nori
0 siblings, 0 replies; 10+ messages in thread
From: Sekhar Nori @ 2018-05-18 6:47 UTC (permalink / raw)
To: linux-arm-kernel
Hi Stephen,
On Wednesday 16 May 2018 10:44 AM, Sekhar Nori wrote:
> Hi Stephen,
>
> On Wednesday 16 May 2018 04:04 AM, Stephen Boyd wrote:
>> Quoting Sekhar Nori (2018-05-07 04:34:57)
>>> USB0 48MHz PHY clock registration fails on DA830 because the
>>> da8xx-cfgchip clock driver cannot get a reference to USB0
>>> LPSC clock.
>>>
>>> The USB0 LPSC needs to be enabled during PHY clock enable. Setup
>>> the clock lookup correctly to fix this.
>>>
>>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>>> ---
>>
>> Applied to clk-next
>>
>> Did this need a fixes tag? And should it go into 4.17 final? Or it's not
>> causing problems right now?
>
> We have not switched DaVinci to use common clock framework still. So no,
> this does not cause problems right now. All drivers/clk/davinci/*
> patches can be included for v4.18.
There are some more patches (fixes) to drivers/clk/davinci which have
been reviewed and both David and I think are ready for merge[1].
Do you have them in your queue? Else, I can send a pull request for you
to take a look and merge.
Thanks,
Sekhar
[1]
clk: davinci: psc-dm365: fix few clocks
clk: davinci: pll-dm646x: keep PLL2 SYSCLK1 always enabled
clk: davinci: psc-dm355: fix ASP0/1 clkdev lookups
clk: davinci: pll-dm355: fix SYSCLKn parent names
clk: davinci: pll-dm355: drop pll2_sysclk2
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-05-18 6:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-07 11:34 [PATCH] clk: davinci: psc-da830: fix USB0 48MHz PHY clock registration Sekhar Nori
2018-05-07 11:34 ` Sekhar Nori
2018-05-07 14:25 ` David Lechner
2018-05-07 14:25 ` David Lechner
2018-05-15 22:34 ` Stephen Boyd
2018-05-15 22:34 ` Stephen Boyd
2018-05-16 5:14 ` Sekhar Nori
2018-05-16 5:14 ` Sekhar Nori
2018-05-18 6:47 ` Sekhar Nori
2018-05-18 6:47 ` Sekhar Nori
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.