Thread (33 messages) 33 messages, 3 authors, 2022-08-09

Re: [PATCH v8 04/16] clk: npcm8xx: add clock controller

From: Stephen Boyd <sboyd@kernel.org>
Date: 2022-08-04 20:06:01
Also in: linux-clk, linux-devicetree, linux-serial, linux-watchdog, lkml

Quoting Tomer Maimon (2022-08-04 07:01:30)
On Sat, 30 Jul 2022 at 01:56, Stephen Boyd [off-list ref] wrote:
quoted
Because it is jumbled in some range?
Yes.
quoted
quoted
I do see a way to combine the clock and the reset driver, the NPCM
reset driver is serving other NPCM BMC's.
Should we use regmap to handle the clock registers instead of ioremap?
Sure? Using regmap or not looks like a parallel discussion. How does it
help use platform APIs?
I mean to use regmap API instead of platform API for handing the clock
and reset registers.
the regmap API gives only one user access to R/W (lock).
I will be happy to get more suggestions, on how should we solve this situation.
Using platform APIs means using platform_*() functions, not of_*()
functions, which are open-firmware/DT related. Regmap can be used to
operate on registers mapped as __iomem, which is different from platform
APIs.

Is having a lock even necessary? Do the reset and clk controls live
within a shared register where we would need to prevent one driver from
accessing that register at the same time as the other?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help