From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99DD2606A330 for ; Tue, 1 Dec 2026 02:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=F+OZA+Rm; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eQTjxL09 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=1RaKE8e2Ob08sKCioqzKPlyCkJ9To1j7CgoQWxL0H6g=; b=F+OZA+RmMBOthUrRrlfcrW7Io9 VdSVEViHPKK0zLJTtkxBZbfGuMrKIAbEIexaJNgwyv8a6tEktYtotDvSKJib+mUN9iI4n0m5fr0m+ JeSLeHAtdVExDqnzUUDtWQd3OCic5LpqGi7C/NhOsf2+VWDbHnDT6hhjvUJDOl2hBTbzPsSd6Z8l6 U9V6x6jGPiIxQy4/9sfuw3U2PwFrAPuy0yY0VH2I5RU5UKjrO7maZ4UglEgBag1h24Nk2Adepyhlm m9uqklr3CnvNoyuDM1U6o0WKQs4Pm1k0aRIlvua0ZluOjdKOnRan+WNkxYc07aEbHafJlzZ3Wdal5 xxQGVwew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYE2r-00000006NPj-0yPJ; Tue, 01 Dec 2026 02:56:41 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYE2p-00000006NPI-3Lfp; Tue, 01 Dec 2026 02:56:39 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 4CA0744380; Tue, 1 Dec 2026 02:56:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E83421F00898; Tue, 1 Dec 2026 02:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796093799; bh=1RaKE8e2Ob08sKCioqzKPlyCkJ9To1j7CgoQWxL0H6g=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=eQTjxL09dWFtaDbMCMBtflFm6MyfWChC4F835nnpZq5L17pfwrnGuhpWtZuqtsyVj YuVe5V/BM6v5xfD5RcMedFvOGnRD9uz9AHsuB1A08ei7p+OE+bf4uxfzLjLGYXHi+m kUWrrwFmvy0nTvOiMqTSscBAwbDaVOymc9pWeEm2xOHlkzHKH9JNOFUQXmdhnxlukZ G7ZTaU7DlEw30zc3y9JuTgNJ+oMC9dBHnvowJsJBxHVjLDb1YGQOaiX3wZl+kaOlj8 HijIwjuC0UvaH9SRmKA9PyJyLGOql52A7SadMlTnv2Tensxp1RhzFB09OrsdNwUGbP iy6GvJ0OzWyGw== Date: Mon, 30 Nov 2026 20:56:37 -0600 From: Rob Herring To: Akari Tsuyukusa Cc: AngeloGioacchino Del Regno , Stephen Boyd , Brian Masney , Jerome Brunet , Matthias Brugger , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Miles Chen , "open list:MEDIATEK CLOCK DRIVERS" , "moderated list:MEDIATEK CLOCK DRIVERS" , "open list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH linux-next 00/33] clk: mediatek: Fix regressions and pre-existing bugs Message-ID: <20261201025637.GA4018279-robh@kernel.org> References: <20261129014745.3375923-1-akkun11.open@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261129014745.3375923-1-akkun11.open@gmail.com> X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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@gmail.com/T/ > [2] [PATCH 0/6] clk: mediatek: Fix descriptor clock ID allocation > https://lore.kernel.org/all/20260921102522.1640072-1-akkun11.open@gmail.com/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