* [PATCH] clk: zynqmp: handle fixed factor param query error
@ 2018-10-17 7:46 ` Rajan Vaja
0 siblings, 0 replies; 12+ messages in thread
From: Rajan Vaja @ 2018-10-17 7:46 UTC (permalink / raw)
To: mturquette, sboyd, michal.simek, olof, shubhrajyoti.datta
Cc: rajan.vaja, jolly.shah, linux-clk, linux-arm-kernel
Return proper error code in case query for fixed factor
parameter fails. This also fixes build warning for set
but not used variable 'ret'.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
---
drivers/clk/zynqmp/clkc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c
index 9d7d297..297f16a 100644
--- a/drivers/clk/zynqmp/clkc.c
+++ b/drivers/clk/zynqmp/clkc.c
@@ -279,6 +279,9 @@ struct clk_hw *zynqmp_clk_register_fixed_factor(const char *name, u32 clk_id,
qdata.arg1 = clk_id;
ret = eemi_ops->query_data(qdata, ret_payload);
+ if (ret)
+ return ERR_PTR(ret);
+
mult = ret_payload[1];
div = ret_payload[2];
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH] clk: zynqmp: handle fixed factor param query error
@ 2018-10-17 7:46 ` Rajan Vaja
0 siblings, 0 replies; 12+ messages in thread
From: Rajan Vaja @ 2018-10-17 7:46 UTC (permalink / raw)
To: linux-arm-kernel
Return proper error code in case query for fixed factor
parameter fails. This also fixes build warning for set
but not used variable 'ret'.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
---
drivers/clk/zynqmp/clkc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c
index 9d7d297..297f16a 100644
--- a/drivers/clk/zynqmp/clkc.c
+++ b/drivers/clk/zynqmp/clkc.c
@@ -279,6 +279,9 @@ struct clk_hw *zynqmp_clk_register_fixed_factor(const char *name, u32 clk_id,
qdata.arg1 = clk_id;
ret = eemi_ops->query_data(qdata, ret_payload);
+ if (ret)
+ return ERR_PTR(ret);
+
mult = ret_payload[1];
div = ret_payload[2];
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] clk: zynqmp: handle fixed factor param query error
2018-10-17 7:46 ` Rajan Vaja
@ 2018-10-17 15:22 ` Stephen Boyd
-1 siblings, 0 replies; 12+ messages in thread
From: Stephen Boyd @ 2018-10-17 15:22 UTC (permalink / raw)
To: Rajan Vaja, michal.simek, mturquette, olof, shubhrajyoti.datta
Cc: rajan.vaja, jolly.shah, linux-clk, linux-arm-kernel
Quoting Rajan Vaja (2018-10-17 00:46:32)
> Return proper error code in case query for fixed factor
> parameter fails. This also fixes build warning for set
> but not used variable 'ret'.
>
> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Fixes tag? And I think this is going through arm-soc already? If so,
Acked-by: Stephen Boyd <sboyd@kernel.org>
with the appropriate fixes tag added.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] clk: zynqmp: handle fixed factor param query error
@ 2018-10-17 15:22 ` Stephen Boyd
0 siblings, 0 replies; 12+ messages in thread
From: Stephen Boyd @ 2018-10-17 15:22 UTC (permalink / raw)
To: linux-arm-kernel
Quoting Rajan Vaja (2018-10-17 00:46:32)
> Return proper error code in case query for fixed factor
> parameter fails. This also fixes build warning for set
> but not used variable 'ret'.
>
> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Fixes tag? And I think this is going through arm-soc already? If so,
Acked-by: Stephen Boyd <sboyd@kernel.org>
with the appropriate fixes tag added.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] clk: zynqmp: handle fixed factor param query error
2018-10-17 15:22 ` Stephen Boyd
@ 2018-11-05 7:38 ` Michal Simek
-1 siblings, 0 replies; 12+ messages in thread
From: Michal Simek @ 2018-11-05 7:38 UTC (permalink / raw)
To: Stephen Boyd, Rajan Vaja, michal.simek, mturquette, olof,
shubhrajyoti.datta
Cc: jolly.shah, linux-clk, linux-arm-kernel
On 17. 10. 18 17:22, Stephen Boyd wrote:
> Quoting Rajan Vaja (2018-10-17 00:46:32)
>> Return proper error code in case query for fixed factor
>> parameter fails. This also fixes build warning for set
>> but not used variable 'ret'.
>>
>> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
>
> Fixes tag? And I think this is going through arm-soc already? If so,
>
> Acked-by: Stephen Boyd <sboyd@kernel.org>
>
> with the appropriate fixes tag added.
It was really just about to merge this via arm-soc tree because of
dependency on firmware itself.
It is the part of v4.20-rc1 now and it can go via your tree.
Anyway v2 is required with Fixed tag anyway.
Rajan: Please send it v2 with Acked above.
Thanks,
Michal
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] clk: zynqmp: handle fixed factor param query error
@ 2018-11-05 7:38 ` Michal Simek
0 siblings, 0 replies; 12+ messages in thread
From: Michal Simek @ 2018-11-05 7:38 UTC (permalink / raw)
To: linux-arm-kernel
On 17. 10. 18 17:22, Stephen Boyd wrote:
> Quoting Rajan Vaja (2018-10-17 00:46:32)
>> Return proper error code in case query for fixed factor
>> parameter fails. This also fixes build warning for set
>> but not used variable 'ret'.
>>
>> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
>
> Fixes tag? And I think this is going through arm-soc already? If so,
>
> Acked-by: Stephen Boyd <sboyd@kernel.org>
>
> with the appropriate fixes tag added.
It was really just about to merge this via arm-soc tree because of
dependency on firmware itself.
It is the part of v4.20-rc1 now and it can go via your tree.
Anyway v2 is required with Fixed tag anyway.
Rajan: Please send it v2 with Acked above.
Thanks,
Michal
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2] clk: zynqmp: handle fixed factor param query error
2018-10-17 7:46 ` Rajan Vaja
@ 2018-11-14 7:46 ` Rajan Vaja
-1 siblings, 0 replies; 12+ messages in thread
From: Rajan Vaja @ 2018-11-14 7:46 UTC (permalink / raw)
To: mturquette, sboyd, michals, olof, shubhraj
Cc: JOLLYS, linux-clk, linux-arm-kernel, Rajan Vaja
Return proper error code in case query for fixed factor
parameter fails. This also fixes build warning for set
but not used variable 'ret'.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver")
Acked-by: Stephen Boyd <sboyd@kernel.org>
---
Changes in v2:
* Add Fixes tag
---
drivers/clk/zynqmp/clkc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c
index 9d7d297..297f16a 100644
--- a/drivers/clk/zynqmp/clkc.c
+++ b/drivers/clk/zynqmp/clkc.c
@@ -279,6 +279,9 @@ struct clk_hw *zynqmp_clk_register_fixed_factor(const char *name, u32 clk_id,
qdata.arg1 = clk_id;
ret = eemi_ops->query_data(qdata, ret_payload);
+ if (ret)
+ return ERR_PTR(ret);
+
mult = ret_payload[1];
div = ret_payload[2];
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2] clk: zynqmp: handle fixed factor param query error
@ 2018-11-14 7:46 ` Rajan Vaja
0 siblings, 0 replies; 12+ messages in thread
From: Rajan Vaja @ 2018-11-14 7:46 UTC (permalink / raw)
To: linux-arm-kernel
Return proper error code in case query for fixed factor
parameter fails. This also fixes build warning for set
but not used variable 'ret'.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver")
Acked-by: Stephen Boyd <sboyd@kernel.org>
---
Changes in v2:
* Add Fixes tag
---
drivers/clk/zynqmp/clkc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c
index 9d7d297..297f16a 100644
--- a/drivers/clk/zynqmp/clkc.c
+++ b/drivers/clk/zynqmp/clkc.c
@@ -279,6 +279,9 @@ struct clk_hw *zynqmp_clk_register_fixed_factor(const char *name, u32 clk_id,
qdata.arg1 = clk_id;
ret = eemi_ops->query_data(qdata, ret_payload);
+ if (ret)
+ return ERR_PTR(ret);
+
mult = ret_payload[1];
div = ret_payload[2];
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* RE: [PATCH] clk: zynqmp: handle fixed factor param query error
2018-11-05 7:38 ` Michal Simek
@ 2018-11-14 7:47 ` Rajan Vaja
-1 siblings, 0 replies; 12+ messages in thread
From: Rajan Vaja @ 2018-11-14 7:47 UTC (permalink / raw)
To: Michal Simek, Stephen Boyd, Michal Simek, mturquette, olof,
Shubhrajyoti Datta
Cc: Jolly Shah, linux-clk, linux-arm-kernel
Hi Michal, Stephen,
> -----Original Message-----
> From: Michal Simek [mailto:michal.simek@xilinx.com]
> Sent: 05 November 2018 01:09 PM
> To: Stephen Boyd <sboyd@kernel.org>; Rajan Vaja <RAJANV@xilinx.com>; Michal
> Simek <michals@xilinx.com>; mturquette@baylibre.com; olof@lixom.net;
> Shubhrajyoti Datta <shubhraj@xilinx.com>
> Cc: Jolly Shah <JOLLYS@xilinx.com>; linux-clk@vger.kernel.org; linux-arm-
> kernel@lists.infradead.org
> Subject: Re: [PATCH] clk: zynqmp: handle fixed factor param query error
>
> On 17. 10. 18 17:22, Stephen Boyd wrote:
> > Quoting Rajan Vaja (2018-10-17 00:46:32)
> >> Return proper error code in case query for fixed factor
> >> parameter fails. This also fixes build warning for set
> >> but not used variable 'ret'.
> >>
> >> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
> >
> > Fixes tag? And I think this is going through arm-soc already? If so,
> >
> > Acked-by: Stephen Boyd <sboyd@kernel.org>
> >
> > with the appropriate fixes tag added.
>
> It was really just about to merge this via arm-soc tree because of
> dependency on firmware itself.
> It is the part of v4.20-rc1 now and it can go via your tree.
>
> Anyway v2 is required with Fixed tag anyway.
> Rajan: Please send it v2 with Acked above.
[Rajan] I have submitted v2 with Fixes tag and Ack.
>
> Thanks,
> Michal
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] clk: zynqmp: handle fixed factor param query error
@ 2018-11-14 7:47 ` Rajan Vaja
0 siblings, 0 replies; 12+ messages in thread
From: Rajan Vaja @ 2018-11-14 7:47 UTC (permalink / raw)
To: linux-arm-kernel
Hi Michal, Stephen,
> -----Original Message-----
> From: Michal Simek [mailto:michal.simek at xilinx.com]
> Sent: 05 November 2018 01:09 PM
> To: Stephen Boyd <sboyd@kernel.org>; Rajan Vaja <RAJANV@xilinx.com>; Michal
> Simek <michals@xilinx.com>; mturquette at baylibre.com; olof at lixom.net;
> Shubhrajyoti Datta <shubhraj@xilinx.com>
> Cc: Jolly Shah <JOLLYS@xilinx.com>; linux-clk at vger.kernel.org; linux-arm-
> kernel at lists.infradead.org
> Subject: Re: [PATCH] clk: zynqmp: handle fixed factor param query error
>
> On 17. 10. 18 17:22, Stephen Boyd wrote:
> > Quoting Rajan Vaja (2018-10-17 00:46:32)
> >> Return proper error code in case query for fixed factor
> >> parameter fails. This also fixes build warning for set
> >> but not used variable 'ret'.
> >>
> >> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
> >
> > Fixes tag? And I think this is going through arm-soc already? If so,
> >
> > Acked-by: Stephen Boyd <sboyd@kernel.org>
> >
> > with the appropriate fixes tag added.
>
> It was really just about to merge this via arm-soc tree because of
> dependency on firmware itself.
> It is the part of v4.20-rc1 now and it can go via your tree.
>
> Anyway v2 is required with Fixed tag anyway.
> Rajan: Please send it v2 with Acked above.
[Rajan] I have submitted v2 with Fixes tag and Ack.
>
> Thanks,
> Michal
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2] clk: zynqmp: handle fixed factor param query error
2018-11-14 7:46 ` Rajan Vaja
@ 2018-11-14 22:30 ` Stephen Boyd
-1 siblings, 0 replies; 12+ messages in thread
From: Stephen Boyd @ 2018-11-14 22:30 UTC (permalink / raw)
To: Rajan Vaja, michals, mturquette, olof, shubhraj
Cc: JOLLYS, linux-clk, linux-arm-kernel, Rajan Vaja
Quoting Rajan Vaja (2018-11-13 23:46:49)
> Return proper error code in case query for fixed factor
> parameter fails. This also fixes build warning for set
> but not used variable 'ret'.
>
> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
> Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver")
> Acked-by: Stephen Boyd <sboyd@kernel.org>
> ---
Applied to clk-fixes
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2] clk: zynqmp: handle fixed factor param query error
@ 2018-11-14 22:30 ` Stephen Boyd
0 siblings, 0 replies; 12+ messages in thread
From: Stephen Boyd @ 2018-11-14 22:30 UTC (permalink / raw)
To: linux-arm-kernel
Quoting Rajan Vaja (2018-11-13 23:46:49)
> Return proper error code in case query for fixed factor
> parameter fails. This also fixes build warning for set
> but not used variable 'ret'.
>
> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
> Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver")
> Acked-by: Stephen Boyd <sboyd@kernel.org>
> ---
Applied to clk-fixes
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2018-11-14 22:30 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 7:46 [PATCH] clk: zynqmp: handle fixed factor param query error Rajan Vaja
2018-10-17 7:46 ` Rajan Vaja
2018-10-17 15:22 ` Stephen Boyd
2018-10-17 15:22 ` Stephen Boyd
2018-11-05 7:38 ` Michal Simek
2018-11-05 7:38 ` Michal Simek
2018-11-14 7:47 ` Rajan Vaja
2018-11-14 7:47 ` Rajan Vaja
2018-11-14 7:46 ` [PATCH v2] " Rajan Vaja
2018-11-14 7:46 ` Rajan Vaja
2018-11-14 22:30 ` Stephen Boyd
2018-11-14 22:30 ` Stephen Boyd
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.