Skip to content

clk: en7523: full clk_hw + set_rate for en7581

Christian Marangi linux-clk 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 0 repliesNew
  2. v52 patches 3 repliesSuperseded
  3. v42 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches0 repliesSuperseded
v22 patches2 repliesSuperseded
v12 patches0 repliesSuperseded

Changes in v6 from the cover letter

- Rework to use div_table entirely
- Switch determine_rate to calculate best rate

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2clk: en7523: convert to full clk_hw implementation for en7581drivers/clk/clk-en7523.c+55 -200 replies
2/2clk: en7523: add support for .set_rate for en7581drivers/clk/clk-en7523.c+288 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/2] clk: en7523: full clk_hw + set_rate for en7581

This simple patch convert the en7523 clk for EN7581 to full clk and adds the .set_rate OPs.

Needed mostly to configure MDC clk rate.

This will be also implemented by AN7583 since they share the same exact implementation.

Changes v6:
- Rework to use div_table entirely
- Switch determine_rate to calculate best rate

Changes v5:
- Handle requesting 0 rate

Changes v4:
- Fix regression where base_bits is 0
- Handle divider_get_val returning -EINVAL

Changes v3:
- Rework to clock divisor API
- Return error instead of -EINVAL
- Use dev_err where possible
- Use devm_kzalloc_obj
- Revert to not fail on clk registration failure

Changes v2:
- Fix recalc_rate return value on error

Christian Marangi (2):
clk: en7523: convert to full clk_hw implementation for en7581
clk: en7523: add support for .set_rate for en7581

 drivers/clk/clk-en7523.c | 395 +++++++++++++++++++++++++++++++++------
 1 file changed, 342 insertions(+), 53 deletions(-)
Signature · 1 line
2.55.0