Re: [PATCH linux-next 00/33] clk: mediatek: Fix regressions and pre-existing bugs
From: Rob Herring
Date: Mon Nov 30 2026 - 21:56:45 EST
On Sun, Nov 29, 2026 at 10:47:12AM +0900, Akari Tsuyukusa wrote:
> Thank you for merging my previous series migrating MediaTek clock
> drivers to the common probe/remove helpers [1].
Drop 'linux-next' from the patch subject prefix.
> When converting from _NR macros to ARRAY_SIZE(), my oversight caused
> clock ID mismatches (similar to [2]) and premature descriptor frees in
> several drivers. In addition, sashiko-bot reported pre-existing bugs in
> the common helpers and SoC drivers. This series fixes both.
>
> This series splits the work into bug fixes (PATCH 1-14) and cleanup of
> now-unused _NR definitions (PATCH 15-33):
>
> PATCH 1,4: Fix my mistakes in common helpers
> PATCH 2,3,5: Fix pre-existing bugs in common helpers
> PATCH 6-14: Fix clock ID and descriptor lifetime bugs in SoC drivers
> PATCH 15-33: Drop unused _NR macros from dt-bindings
>
> PATCH 9 and PATCH 10 are separated to ease backporting:
> PATCH 9 fixes pre-existing missing MT2701 audsys clock IDs,
> and PATCH 10 fixes the new regressions introduced by the migration.
>
> Based on linux-next 20261127.
>
> Part of this series was assisted by LLM.
>
> PS: The unmerged pllfh support in common helpers and per-SoC migration
> from [1] will be improved and sent in a separated series,
> including fixes for several bugs found in the drivers.
>
> [1] [PATCH v2 00/35] clk: mediatek: Migrate to common probe/remove helpers and fix memory leaks
> https://lore.kernel.org/all/20261013151734.3177690-1-akkun11.open@xxxxxxxxx/T/
> [2] [PATCH 0/6] clk: mediatek: Fix descriptor clock ID allocation
> https://lore.kernel.org/all/20260921102522.1640072-1-akkun11.open@xxxxxxxxx/T/
>
> Akari Tsuyukusa (33):
> clk: mediatek: Skip common MMIO mapping for PLL-only controllers
> clk: mediatek: Fix NULL pointer dereference in pdev remove
> clk: mediatek: Drop unused shared_io flag
> clk: mediatek: Pass node to of_platform_populate() in common probe
> clk: mediatek: Fix MFG mux notifier use-after-free
> clk: mediatek: mt2701: Keep CPU mux descriptors alive
> clk: mediatek: mt8167: Keep muxes descriptors alive
> clk: mediatek: mt8516: Keep clock descriptors alive
> clk: mediatek: Reserve missing MT2701 audsys clock IDs
> clk: mediatek: Fix MT2701 onecell IDs after common probe migration
> clk: mediatek: Fix MT6779 onecell IDs after common probe migration
> clk: mediatek: Fix MT6797 onecell IDs after common probe migration
> clk: mediatek: Fix MT8135 onecell IDs after common probe migration
> clk: mediatek: Fix MT8173 onecell IDs after common probe migration
> dt-bindings: clock: mt2701: Drop unused _NR macros
> dt-bindings: clock: mt2712: Drop unused _NR macros
> dt-bindings: clock: mt6765: Drop unused _NR macros
> dt-bindings: clock: mt6779: Drop unused _NR macros
> dt-bindings: clock: mt6795: Drop unused _NR macros
> dt-bindings: clock: mt6797: Drop unused _NR macros
> dt-bindings: clock: mt7622: Drop unused _NR macros
> dt-bindings: clock: mt7629: Drop unused _NR macros
> dt-bindings: clock: mt7988: Drop unused _NR macros
> dt-bindings: clock: mt8135: Drop unused _NR macros
> dt-bindings: clock: mt8167: Drop unused _NR macros
> dt-bindings: clock: mt8173: Drop unused _NR macros
> dt-bindings: clock: mt8183: Drop unused _NR macros
> dt-bindings: clock: mt8186: Drop unused _NR macros
> dt-bindings: clock: mt8188: Drop unused _NR macros
> dt-bindings: clock: mt8192: Drop unused _NR macros
> dt-bindings: clock: mt8195: Drop unused _NR macros
> dt-bindings: clock: mt8365: Drop unused _NR macros
> dt-bindings: clock: mt8516: Drop unused _NR macros
All these can be 1 patch. It's all the same change and for the same
maintainers (clk and mediatek), so no need to split them.
Rob