* [PATCH] clk: bcm63xx-gate: fix last clock availability
@ 2020-06-09 11:08 Álvaro Fernández Rojas
2020-06-10 2:22 ` Florian Fainelli
2020-06-20 0:01 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Álvaro Fernández Rojas @ 2020-06-09 11:08 UTC (permalink / raw)
To: mturquette, sboyd, f.fainelli, bcm-kernel-feedback-list, lkp,
jonas.gorski, f4bug, linux-clk, linux-arm-kernel, linux-kernel
Cc: Álvaro Fernández Rojas
In order to make the last clock available, maxbit has to be set to the
highest bit value plus 1.
Fixes: 1c099779c1e2 ("clk: add BCM63XX gated clock controller driver")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
drivers/clk/bcm/clk-bcm63xx-gate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/bcm/clk-bcm63xx-gate.c b/drivers/clk/bcm/clk-bcm63xx-gate.c
index 98e884957db8..911a29bd744e 100644
--- a/drivers/clk/bcm/clk-bcm63xx-gate.c
+++ b/drivers/clk/bcm/clk-bcm63xx-gate.c
@@ -155,6 +155,7 @@ static int clk_bcm63xx_probe(struct platform_device *pdev)
for (entry = table; entry->name; entry++)
maxbit = max_t(u8, maxbit, entry->bit);
+ maxbit++;
hw = devm_kzalloc(&pdev->dev, struct_size(hw, data.hws, maxbit),
GFP_KERNEL);
--
2.26.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: bcm63xx-gate: fix last clock availability
2020-06-09 11:08 [PATCH] clk: bcm63xx-gate: fix last clock availability Álvaro Fernández Rojas
@ 2020-06-10 2:22 ` Florian Fainelli
2020-06-20 0:01 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2020-06-10 2:22 UTC (permalink / raw)
To: Álvaro Fernández Rojas, mturquette, sboyd, f.fainelli,
bcm-kernel-feedback-list, lkp, jonas.gorski, f4bug, linux-clk,
linux-arm-kernel, linux-kernel
On 6/9/2020 4:08 AM, Álvaro Fernández Rojas wrote:
> In order to make the last clock available, maxbit has to be set to the
> highest bit value plus 1.
>
> Fixes: 1c099779c1e2 ("clk: add BCM63XX gated clock controller driver")
> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: bcm63xx-gate: fix last clock availability
2020-06-09 11:08 [PATCH] clk: bcm63xx-gate: fix last clock availability Álvaro Fernández Rojas
2020-06-10 2:22 ` Florian Fainelli
@ 2020-06-20 0:01 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2020-06-20 0:01 UTC (permalink / raw)
To: bcm-kernel-feedback-list, f.fainelli, f4bug, jonas.gorski,
linux-arm-kernel, linux-clk, linux-kernel, lkp, mturquette,
Álvaro Fernández Rojas
Cc: Álvaro Fernández Rojas
Quoting Álvaro Fernández Rojas (2020-06-09 04:08:46)
> In order to make the last clock available, maxbit has to be set to the
> highest bit value plus 1.
>
> Fixes: 1c099779c1e2 ("clk: add BCM63XX gated clock controller driver")
> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
> ---
Applied to clk-next
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-20 0:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-09 11:08 [PATCH] clk: bcm63xx-gate: fix last clock availability Álvaro Fernández Rojas
2020-06-10 2:22 ` Florian Fainelli
2020-06-20 0:01 ` 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).