Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1396170 > unrolled thread
| Started by | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| First post | 2016-05-07 00:40 +0200 |
| Last post | 2016-05-12 23:50 +0200 |
| Articles | 12 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Stephen Boyd <sboyd@codeaurora.org> - 2016-05-07 00:40 +0200
Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-05-08 22:10 +0200
Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Stephen Boyd <sboyd@codeaurora.org> - 2016-05-10 00:40 +0200
Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Stephen Boyd <sboyd@codeaurora.org> - 2016-05-10 00:40 +0200
Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-05-10 08:40 +0200
Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Stephen Boyd <sboyd@codeaurora.org> - 2016-05-12 00:20 +0200
Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Priit Laes <plaes@plaes.org> - 2016-05-10 21:20 +0200
Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Stephen Boyd <sboyd@codeaurora.org> - 2016-05-12 00:20 +0200
Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Priit Laes <plaes@plaes.org> - 2016-05-12 05:40 +0200
Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-05-12 09:00 +0200
Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-05-12 10:40 +0200
Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver Stephen Boyd <sboyd@codeaurora.org> - 2016-05-12 23:50 +0200
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2016-05-07 00:40 +0200 |
| Subject | Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver |
| Message-ID | <rvWzE-5nU-11@gated-at.bofh.it> |
On 04/25, Maxime Ripard wrote: > The A10 SoCs and its relatives has a special clock controller to drive the > display engines (both frontend and backend), that have a lot in common with > the clock to drive the first TCON channel. > > Add a driver to support both. > > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> > Acked-by: Rob Herring <robh@kernel.org> > --- Acked-by: Stephen Boyd <sboyd@codeaurora.org> Unless I can merge this into clk-next? Wasn't clear to me. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
[toc] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-05-08 22:10 +0200 |
| Message-ID | <rwDbz-5aj-7@gated-at.bofh.it> |
| In reply to | #1396170 |
[Multipart message — attachments visible in raw view] — view raw
Hi Stephen, On Fri, May 06, 2016 at 03:30:02PM -0700, Stephen Boyd wrote: > On 04/25, Maxime Ripard wrote: > > The A10 SoCs and its relatives has a special clock controller to drive the > > display engines (both frontend and backend), that have a lot in common with > > the clock to drive the first TCON channel. > > > > Add a driver to support both. > > > > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> > > Acked-by: Rob Herring <robh@kernel.org> > > --- > > Acked-by: Stephen Boyd <sboyd@codeaurora.org> > > Unless I can merge this into clk-next? Wasn't clear to me. Yes, please do, I already sent you the bunch of patches I gathered for 4.7, and I don't have any others but this one. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
[toc] | [prev] | [next] | [standalone]
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2016-05-10 00:40 +0200 |
| Message-ID | <rx20i-6qo-9@gated-at.bofh.it> |
| In reply to | #1396482 |
On 05/08, Maxime Ripard wrote: > Hi Stephen, > > On Fri, May 06, 2016 at 03:30:02PM -0700, Stephen Boyd wrote: > > On 04/25, Maxime Ripard wrote: > > > The A10 SoCs and its relatives has a special clock controller to drive the > > > display engines (both frontend and backend), that have a lot in common with > > > the clock to drive the first TCON channel. > > > > > > Add a driver to support both. > > > > > > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> > > > Acked-by: Rob Herring <robh@kernel.org> > > > --- > > > > Acked-by: Stephen Boyd <sboyd@codeaurora.org> > > > > Unless I can merge this into clk-next? Wasn't clear to me. > > Yes, please do, I already sent you the bunch of patches I gathered for > 4.7, and I don't have any others but this one. > Ok I applied this one to clk-next. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
[toc] | [prev] | [next] | [standalone]
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2016-05-10 00:40 +0200 |
| Message-ID | <rx20i-6qo-19@gated-at.bofh.it> |
| In reply to | #1397481 |
On 05/09, Stephen Boyd wrote:
>
> Ok I applied this one to clk-next.
>
And I squashed this in to silence the following checker warning.
drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable
length array is used.
---8<---
diff --git a/drivers/clk/sunxi/clk-sun4i-display.c b/drivers/clk/sunxi/clk-sun4i-display.c
index f02e250e64ed..f8ff6c4a5633 100644
--- a/drivers/clk/sunxi/clk-sun4i-display.c
+++ b/drivers/clk/sunxi/clk-sun4i-display.c
@@ -107,7 +107,7 @@ static int sun4i_a10_display_reset_xlate(struct reset_controller_dev *rcdev,
static void __init sun4i_a10_display_init(struct device_node *node,
const struct sun4i_a10_display_clk_data *data)
{
- const char *parents[data->parents];
+ const char *parents[4];
const char *clk_name = node->name;
struct reset_data *reset_data;
struct clk_divider *div = NULL;
@@ -126,8 +126,8 @@ static void __init sun4i_a10_display_init(struct device_node *node,
return;
}
- ret = of_clk_parent_fill(node, parents, data->parents);
- if (ret != data->parents) {
+ ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents));
+ if (ret != ARRAY_SIZE(parents)) {
pr_err("%s: Could not retrieve the parents\n", clk_name);
goto unmap;
}
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
[toc] | [prev] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-05-10 08:40 +0200 |
| Message-ID | <rx9uN-5iv-1@gated-at.bofh.it> |
| In reply to | #1397484 |
[Multipart message — attachments visible in raw view] — view raw
Hi Stephen, On Mon, May 09, 2016 at 03:39:24PM -0700, Stephen Boyd wrote: > On 05/09, Stephen Boyd wrote: > > > > Ok I applied this one to clk-next. > > > > And I squashed this in to silence the following checker warning. > > drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable > length array is used. Thanks, just out of curiosity, which checker are you talking about? sparse? Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
[toc] | [prev] | [next] | [standalone]
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2016-05-12 00:20 +0200 |
| Message-ID | <rxKE2-E3-15@gated-at.bofh.it> |
| In reply to | #1397729 |
On 05/10, Maxime Ripard wrote: > Hi Stephen, > > On Mon, May 09, 2016 at 03:39:24PM -0700, Stephen Boyd wrote: > > On 05/09, Stephen Boyd wrote: > > > > > > Ok I applied this one to clk-next. > > > > > > > And I squashed this in to silence the following checker warning. > > > > drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable > > length array is used. > > Thanks, just out of curiosity, which checker are you talking about? > sparse? > I use sparse and smatch. I can't recall which one is complaining here and technically smatch uses sparse underneath. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
[toc] | [prev] | [next] | [standalone]
| From | Priit Laes <plaes@plaes.org> |
|---|---|
| Date | 2016-05-10 21:20 +0200 |
| Subject | Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver |
| Message-ID | <rxlmh-zy-9@gated-at.bofh.it> |
| In reply to | #1397484 |
On Mon, 2016-05-09 at 15:39 -0700, Stephen Boyd wrote:
> On 05/09, Stephen Boyd wrote:
> >
> >
> > Ok I applied this one to clk-next.
> >
> And I squashed this in to silence the following checker warning.
>
> drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable
> length array is used.
>
> ---8<---
> diff --git a/drivers/clk/sunxi/clk-sun4i-display.c
> b/drivers/clk/sunxi/clk-sun4i-display.c
> index f02e250e64ed..f8ff6c4a5633 100644
> --- a/drivers/clk/sunxi/clk-sun4i-display.c
> +++ b/drivers/clk/sunxi/clk-sun4i-display.c
> @@ -107,7 +107,7 @@ static int sun4i_a10_display_reset_xlate(struct
> reset_controller_dev *rcdev,
> static void __init sun4i_a10_display_init(struct device_node *node,
> const struct
> sun4i_a10_display_clk_data *data)
> {
> - const char *parents[data->parents];
> + const char *parents[4];
> const char *clk_name = node->name;
> struct reset_data *reset_data;
> struct clk_divider *div = NULL;
> @@ -126,8 +126,8 @@ static void __init sun4i_a10_display_init(struct
> device_node *node,
> return;
> }
>
> - ret = of_clk_parent_fill(node, parents, data->parents);
> - if (ret != data->parents) {
> + ret = of_clk_parent_fill(node, parents,
> ARRAY_SIZE(parents));
> + if (ret != ARRAY_SIZE(parents)) {
> pr_err("%s: Could not retrieve the parents\n",
> clk_name);
> goto unmap;
> }
This change breaks at least de_[bf]e clocks which have 3 clock parents.
[toc] | [prev] | [next] | [standalone]
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2016-05-12 00:20 +0200 |
| Subject | Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver |
| Message-ID | <rxKE2-E3-5@gated-at.bofh.it> |
| In reply to | #1398433 |
On 05/10, Priit Laes wrote:
> On Mon, 2016-05-09 at 15:39 -0700, Stephen Boyd wrote:
> > On 05/09, Stephen Boyd wrote:
> > >
> > >
> > > Ok I applied this one to clk-next.
> > >
> > And I squashed this in to silence the following checker warning.
> >
> > drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable
> > length array is used.
> >
> > ---8<---
> > diff --git a/drivers/clk/sunxi/clk-sun4i-display.c
> > b/drivers/clk/sunxi/clk-sun4i-display.c
> > index f02e250e64ed..f8ff6c4a5633 100644
> > --- a/drivers/clk/sunxi/clk-sun4i-display.c
> > +++ b/drivers/clk/sunxi/clk-sun4i-display.c
> > @@ -107,7 +107,7 @@ static int sun4i_a10_display_reset_xlate(struct
> > reset_controller_dev *rcdev,
> > static void __init sun4i_a10_display_init(struct device_node *node,
> > const struct
> > sun4i_a10_display_clk_data *data)
> > {
> > - const char *parents[data->parents];
> > + const char *parents[4];
>
> This change breaks at least de_[bf]e clocks which have 3 clock parents.
>
I just used the largest data->parents number, which was 4. How
does that break anything?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
[toc] | [prev] | [next] | [standalone]
| From | Priit Laes <plaes@plaes.org> |
|---|---|
| Date | 2016-05-12 05:40 +0200 |
| Subject | Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver |
| Message-ID | <rxPDI-5tt-3@gated-at.bofh.it> |
| In reply to | #1399543 |
On Wed, 2016-05-11 at 15:15 -0700, Stephen Boyd wrote:
> On 05/10, Priit Laes wrote:
> >
> > On Mon, 2016-05-09 at 15:39 -0700, Stephen Boyd wrote:
> > >
> > > On 05/09, Stephen Boyd wrote:
> > > >
> > > >
> > > >
> > > > Ok I applied this one to clk-next.
> > > >
> > > And I squashed this in to silence the following checker warning.
> > >
> > > drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable
> > > length array is used.
> > >
> > > ---8<---
> > > diff --git a/drivers/clk/sunxi/clk-sun4i-display.c
> > > b/drivers/clk/sunxi/clk-sun4i-display.c
> > > index f02e250e64ed..f8ff6c4a5633 100644
> > > --- a/drivers/clk/sunxi/clk-sun4i-display.c
> > > +++ b/drivers/clk/sunxi/clk-sun4i-display.c
> > > @@ -107,7 +107,7 @@ static int
> > > sun4i_a10_display_reset_xlate(struct
> > > reset_controller_dev *rcdev,
> > > static void __init sun4i_a10_display_init(struct device_node
> > > *node,
> > > const struct
> > > sun4i_a10_display_clk_data *data)
> > > {
> > > - const char *parents[data->parents];
> > > + const char *parents[4];
> > This change breaks at least de_[bf]e clocks which have 3 clock
> > parents.
> I just used the largest data->parents number, which was 4. How
> does that break anything?
If you look at the sun4i_a10_display_init, it contains this block:
ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents));
if (ret != ARRAY_SIZE(parents)) {
pr_err("%s: Could not retrieve the parents\n", clk_name);
goto unmap;
}
of_clk_parent_fill returns 3 for de_be/de_fe nodes, and
ARRAY_SIZE(parents) is 4.
Päikest,
Priit :)
[toc] | [prev] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-05-12 09:00 +0200 |
| Subject | Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver |
| Message-ID | <rxSLg-mB-7@gated-at.bofh.it> |
| In reply to | #1399657 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, May 12, 2016 at 06:39:20AM +0300, Priit Laes wrote:
> On Wed, 2016-05-11 at 15:15 -0700, Stephen Boyd wrote:
> > On 05/10, Priit Laes wrote:
> > >
> > > On Mon, 2016-05-09 at 15:39 -0700, Stephen Boyd wrote:
> > > >
> > > > On 05/09, Stephen Boyd wrote:
> > > > >
> > > > >
> > > > >
> > > > > Ok I applied this one to clk-next.
> > > > >
> > > > And I squashed this in to silence the following checker warning.
> > > >
> > > > drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable
> > > > length array is used.
> > > >
> > > > ---8<---
> > > > diff --git a/drivers/clk/sunxi/clk-sun4i-display.c
> > > > b/drivers/clk/sunxi/clk-sun4i-display.c
> > > > index f02e250e64ed..f8ff6c4a5633 100644
> > > > --- a/drivers/clk/sunxi/clk-sun4i-display.c
> > > > +++ b/drivers/clk/sunxi/clk-sun4i-display.c
> > > > @@ -107,7 +107,7 @@ static int
> > > > sun4i_a10_display_reset_xlate(struct
> > > > reset_controller_dev *rcdev,
> > > > static void __init sun4i_a10_display_init(struct device_node
> > > > *node,
> > > > const struct
> > > > sun4i_a10_display_clk_data *data)
> > > > {
> > > > - const char *parents[data->parents];
> > > > + const char *parents[4];
> > > This change breaks at least de_[bf]e clocks which have 3 clock
> > > parents.
>
> > I just used the largest data->parents number, which was 4. How
> > does that break anything?
>
> If you look at the sun4i_a10_display_init, it contains this block:
>
> ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents));
> if (ret != ARRAY_SIZE(parents)) {
> pr_err("%s: Could not retrieve the parents\n", clk_name);
> goto unmap;
> }
>
> of_clk_parent_fill returns 3 for de_be/de_fe nodes, and
> ARRAY_SIZE(parents) is 4.
Replacing both ARRAY_SIZE(parents) by data->parents would work though.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[toc] | [prev] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-05-12 10:40 +0200 |
| Subject | Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver |
| Message-ID | <rxUk3-1QS-21@gated-at.bofh.it> |
| In reply to | #1399695 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, May 12, 2016 at 08:59:43AM +0200, Maxime Ripard wrote:
> On Thu, May 12, 2016 at 06:39:20AM +0300, Priit Laes wrote:
> > On Wed, 2016-05-11 at 15:15 -0700, Stephen Boyd wrote:
> > > On 05/10, Priit Laes wrote:
> > > >
> > > > On Mon, 2016-05-09 at 15:39 -0700, Stephen Boyd wrote:
> > > > >
> > > > > On 05/09, Stephen Boyd wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > > Ok I applied this one to clk-next.
> > > > > >
> > > > > And I squashed this in to silence the following checker warning.
> > > > >
> > > > > drivers/clk/sunxi/clk-sun4i-display.c:110:33: warning: Variable
> > > > > length array is used.
> > > > >
> > > > > ---8<---
> > > > > diff --git a/drivers/clk/sunxi/clk-sun4i-display.c
> > > > > b/drivers/clk/sunxi/clk-sun4i-display.c
> > > > > index f02e250e64ed..f8ff6c4a5633 100644
> > > > > --- a/drivers/clk/sunxi/clk-sun4i-display.c
> > > > > +++ b/drivers/clk/sunxi/clk-sun4i-display.c
> > > > > @@ -107,7 +107,7 @@ static int
> > > > > sun4i_a10_display_reset_xlate(struct
> > > > > reset_controller_dev *rcdev,
> > > > > static void __init sun4i_a10_display_init(struct device_node
> > > > > *node,
> > > > > const struct
> > > > > sun4i_a10_display_clk_data *data)
> > > > > {
> > > > > - const char *parents[data->parents];
> > > > > + const char *parents[4];
> > > > This change breaks at least de_[bf]e clocks which have 3 clock
> > > > parents.
> >
> > > I just used the largest data->parents number, which was 4. How
> > > does that break anything?
> >
> > If you look at the sun4i_a10_display_init, it contains this block:
> >
> > ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents));
> > if (ret != ARRAY_SIZE(parents)) {
> > pr_err("%s: Could not retrieve the parents\n", clk_name);
> > goto unmap;
> > }
> >
> > of_clk_parent_fill returns 3 for de_be/de_fe nodes, and
> > ARRAY_SIZE(parents) is 4.
>
> Replacing both ARRAY_SIZE(parents) by data->parents would work though.
I just tested on top of current next, and indeed the following patch
is needed.
Stephen, could you squash it in the former patch?
diff --git a/drivers/clk/sunxi/clk-sun4i-display.c b/drivers/clk/sunxi/clk-sun4i-display.c
index 70803aa7028c..9780fac6d029 100644
--- a/drivers/clk/sunxi/clk-sun4i-display.c
+++ b/drivers/clk/sunxi/clk-sun4i-display.c
@@ -128,8 +128,8 @@ static void __init sun4i_a10_display_init(struct device_node *node,
return;
}
- ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents));
- if (ret != ARRAY_SIZE(parents)) {
+ ret = of_clk_parent_fill(node, parents, data->parents);
+ if (ret != data->parents) {
pr_err("%s: Could not retrieve the parents\n", clk_name);
goto unmap;
}
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[toc] | [prev] | [next] | [standalone]
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2016-05-12 23:50 +0200 |
| Subject | Re: [linux-sunxi] Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver |
| Message-ID | <ry6Ex-6cc-7@gated-at.bofh.it> |
| In reply to | #1399756 |
On 05/12, Maxime Ripard wrote:
>
> diff --git a/drivers/clk/sunxi/clk-sun4i-display.c b/drivers/clk/sunxi/clk-sun4i-display.c
> index 70803aa7028c..9780fac6d029 100644
> --- a/drivers/clk/sunxi/clk-sun4i-display.c
> +++ b/drivers/clk/sunxi/clk-sun4i-display.c
> @@ -128,8 +128,8 @@ static void __init sun4i_a10_display_init(struct device_node *node,
> return;
> }
>
> - ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents));
> - if (ret != ARRAY_SIZE(parents)) {
> + ret = of_clk_parent_fill(node, parents, data->parents);
> + if (ret != data->parents) {
> pr_err("%s: Could not retrieve the parents\n", clk_name);
> goto unmap;
> }
Ah ok. Thanks for catching that thinko and sending a patch.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web