* [PATCH] clk: probe common clock drivers earlier
@ 2016-05-05 7:57 Masahiro Yamada
2016-07-15 21:53 ` Linus Torvalds
2016-07-16 2:11 ` Michael Turquette
0 siblings, 2 replies; 6+ messages in thread
From: Masahiro Yamada @ 2016-05-05 7:57 UTC (permalink / raw)
To: linux-clk
Cc: Masahiro Yamada, Jay Sternberg, Jens Axboe, linux-kernel,
Dan Williams, Matias Bjørling, Krzysztof Kozlowski,
Greg Kroah-Hartman, Alexander Shishkin, Valentin Rothberg
Several SoCs implement platform drivers for clocks rather than
CLK_OF_DECLARE(). Clocks should come earlier because they are
prerequisites for many of other drivers. It will help to mitigate
EPROBE_DEFER issues.
Also, drop the comment since it does not look valuable.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
drivers/Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/Makefile b/drivers/Makefile
index 8f5d076..a2a4922 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -44,6 +44,7 @@ obj-$(CONFIG_REGULATOR) += regulator/
# reset controllers early, since gpu drivers might rely on them to initialize
obj-$(CONFIG_RESET_CONTROLLER) += reset/
+obj-y += clk/
# tty/ comes before char/ so that the VT console is the boot-time
# default.
@@ -141,8 +142,6 @@ obj-$(CONFIG_VHOST_RING) += vhost/
obj-$(CONFIG_VLYNQ) += vlynq/
obj-$(CONFIG_STAGING) += staging/
obj-y += platform/
-#common clk code
-obj-y += clk/
obj-$(CONFIG_MAILBOX) += mailbox/
obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: probe common clock drivers earlier
2016-05-05 7:57 [PATCH] clk: probe common clock drivers earlier Masahiro Yamada
@ 2016-07-15 21:53 ` Linus Torvalds
2016-07-16 2:11 ` Michael Turquette
1 sibling, 0 replies; 6+ messages in thread
From: Linus Torvalds @ 2016-07-15 21:53 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-clk, Jay Sternberg, Jens Axboe, Linux Kernel Mailing List,
Dan Williams, Matias Bjørling, Krzysztof Kozlowski,
Greg Kroah-Hartman, Alexander Shishkin, Valentin Rothberg
This is still in my "what happened to this" patch list..
I'm dropping it as I'll be without internet for a week and I'm trying
to make sure my pile is empty, but I'd like somebody to take a look at
it (Greg?) since it feels right to me.
Linus
On Thu, May 5, 2016 at 4:57 PM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> Several SoCs implement platform drivers for clocks rather than
> CLK_OF_DECLARE(). Clocks should come earlier because they are
> prerequisites for many of other drivers. It will help to mitigate
> EPROBE_DEFER issues.
>
> Also, drop the comment since it does not look valuable.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> drivers/Makefile | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/Makefile b/drivers/Makefile
> index 8f5d076..a2a4922 100644
> --- a/drivers/Makefile
> +++ b/drivers/Makefile
> @@ -44,6 +44,7 @@ obj-$(CONFIG_REGULATOR) += regulator/
>
> # reset controllers early, since gpu drivers might rely on them to initialize
> obj-$(CONFIG_RESET_CONTROLLER) += reset/
> +obj-y += clk/
>
> # tty/ comes before char/ so that the VT console is the boot-time
> # default.
> @@ -141,8 +142,6 @@ obj-$(CONFIG_VHOST_RING) += vhost/
> obj-$(CONFIG_VLYNQ) += vlynq/
> obj-$(CONFIG_STAGING) += staging/
> obj-y += platform/
> -#common clk code
> -obj-y += clk/
>
> obj-$(CONFIG_MAILBOX) += mailbox/
> obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: probe common clock drivers earlier
2016-05-05 7:57 [PATCH] clk: probe common clock drivers earlier Masahiro Yamada
2016-07-15 21:53 ` Linus Torvalds
@ 2016-07-16 2:11 ` Michael Turquette
2016-07-16 4:57 ` Masahiro Yamada
1 sibling, 1 reply; 6+ messages in thread
From: Michael Turquette @ 2016-07-16 2:11 UTC (permalink / raw)
To: Masahiro Yamada, linux-clk
Cc: Masahiro Yamada, Jay Sternberg, Jens Axboe, linux-kernel,
Dan Williams, Matias Bjørling, Krzysztof Kozlowski,
Greg Kroah-Hartman, Alexander Shishkin, Valentin Rothberg
Quoting Masahiro Yamada (2016-05-05 00:57:17)
> Several SoCs implement platform drivers for clocks rather than
> CLK_OF_DECLARE(). Clocks should come earlier because they are
> prerequisites for many of other drivers. It will help to mitigate
> EPROBE_DEFER issues.
> =
> Also, drop the comment since it does not look valuable.
> =
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Michael Turquette <mturquette@baylibre.com>
Regards,
Mike
> ---
> =
> drivers/Makefile | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> =
> diff --git a/drivers/Makefile b/drivers/Makefile
> index 8f5d076..a2a4922 100644
> --- a/drivers/Makefile
> +++ b/drivers/Makefile
> @@ -44,6 +44,7 @@ obj-$(CONFIG_REGULATOR) +=3D regulator/
> =
> # reset controllers early, since gpu drivers might rely on them to initi=
alize
> obj-$(CONFIG_RESET_CONTROLLER) +=3D reset/
> +obj-y +=3D clk/
> =
> # tty/ comes before char/ so that the VT console is the boot-time
> # default.
> @@ -141,8 +142,6 @@ obj-$(CONFIG_VHOST_RING) +=3D vhost/
> obj-$(CONFIG_VLYNQ) +=3D vlynq/
> obj-$(CONFIG_STAGING) +=3D staging/
> obj-y +=3D platform/
> -#common clk code
> -obj-y +=3D clk/
> =
> obj-$(CONFIG_MAILBOX) +=3D mailbox/
> obj-$(CONFIG_HWSPINLOCK) +=3D hwspinlock/
> -- =
> 1.9.1
> =
> --
> To unsubscribe from this list: send the line "unsubscribe linux-clk" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: probe common clock drivers earlier
2016-07-16 2:11 ` Michael Turquette
@ 2016-07-16 4:57 ` Masahiro Yamada
2016-07-20 10:58 ` Geert Uytterhoeven
0 siblings, 1 reply; 6+ messages in thread
From: Masahiro Yamada @ 2016-07-16 4:57 UTC (permalink / raw)
To: Michael Turquette
Cc: linux-clk, Jay Sternberg, Jens Axboe, Linux Kernel Mailing List,
Dan Williams, Matias Bjørling, Krzysztof Kozlowski,
Greg Kroah-Hartman, Alexander Shishkin, Valentin Rothberg,
Linus Torvalds
2016-07-16 11:11 GMT+09:00 Michael Turquette <mturquette@baylibre.com>:
> Quoting Masahiro Yamada (2016-05-05 00:57:17)
>> Several SoCs implement platform drivers for clocks rather than
>> CLK_OF_DECLARE(). Clocks should come earlier because they are
>> prerequisites for many of other drivers. It will help to mitigate
>> EPROBE_DEFER issues.
>>
>> Also, drop the comment since it does not look valuable.
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>
> Acked-by: Michael Turquette <mturquette@baylibre.com>
>
> Regards,
> Mike
>
Thanks for taking a look at this patch.
While I was wondering where is the best place for
"obj-y += clk/", I thought it can be probed even earlier.
So, v2 is here:
https://patchwork.kernel.org/patch/9129749/
Please consider it as a applicable candidate.
Thanks!
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: probe common clock drivers earlier
2016-07-16 4:57 ` Masahiro Yamada
@ 2016-07-20 10:58 ` Geert Uytterhoeven
2016-07-21 0:59 ` Masahiro Yamada
0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2016-07-20 10:58 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Michael Turquette, linux-clk, Jay Sternberg, Jens Axboe,
Linux Kernel Mailing List, Dan Williams, Matias Bjørling,
Krzysztof Kozlowski, Greg Kroah-Hartman, Alexander Shishkin,
Valentin Rothberg, Linus Torvalds
On Sat, Jul 16, 2016 at 6:57 AM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> 2016-07-16 11:11 GMT+09:00 Michael Turquette <mturquette@baylibre.com>:
>> Quoting Masahiro Yamada (2016-05-05 00:57:17)
>>> Several SoCs implement platform drivers for clocks rather than
>>> CLK_OF_DECLARE(). Clocks should come earlier because they are
>>> prerequisites for many of other drivers. It will help to mitigate
As are regulators, DMA engines, power domains, ..., but the actual ordering
needed depends on the SoC.
>>> EPROBE_DEFER issues.
>>>
>>> Also, drop the comment since it does not look valuable.
>>>
>>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>>
>> Acked-by: Michael Turquette <mturquette@baylibre.com>
>
> Thanks for taking a look at this patch.
>
> While I was wondering where is the best place for
> "obj-y += clk/", I thought it can be probed even earlier.
>
> So, v2 is here:
> https://patchwork.kernel.org/patch/9129749/
>
> Please consider it as a applicable candidate.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: probe common clock drivers earlier
2016-07-20 10:58 ` Geert Uytterhoeven
@ 2016-07-21 0:59 ` Masahiro Yamada
0 siblings, 0 replies; 6+ messages in thread
From: Masahiro Yamada @ 2016-07-21 0:59 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Michael Turquette, linux-clk, Jay Sternberg, Jens Axboe,
Linux Kernel Mailing List, Dan Williams, Matias Bjørling,
Krzysztof Kozlowski, Greg Kroah-Hartman, Alexander Shishkin,
Valentin Rothberg, Linus Torvalds
2016-07-20 19:58 GMT+09:00 Geert Uytterhoeven <geert@linux-m68k.org>:
> On Sat, Jul 16, 2016 at 6:57 AM, Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
>> 2016-07-16 11:11 GMT+09:00 Michael Turquette <mturquette@baylibre.com>:
>>> Quoting Masahiro Yamada (2016-05-05 00:57:17)
>>>> Several SoCs implement platform drivers for clocks rather than
>>>> CLK_OF_DECLARE(). Clocks should come earlier because they are
>>>> prerequisites for many of other drivers. It will help to mitigate
>
> As are regulators, DMA engines, power domains, ..., but the actual ordering
> needed depends on the SoC.
Right.
The *mitigate* is a keyword in my git-log.
I am not saying this commit can completely suppress EPROBE_DEFER,
but moving "obj-y += clk/" up is
a right thing for *most* of SoCs.
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-07-21 0:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-05 7:57 [PATCH] clk: probe common clock drivers earlier Masahiro Yamada
2016-07-15 21:53 ` Linus Torvalds
2016-07-16 2:11 ` Michael Turquette
2016-07-16 4:57 ` Masahiro Yamada
2016-07-20 10:58 ` Geert Uytterhoeven
2016-07-21 0:59 ` Masahiro Yamada
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).