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 6435E606A31A for ; Mon, 30 Nov 2026 21:48:40 +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=VwpSerlN; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jJI4nzGL 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:Content-Transfer-Encoding: Content-Type:Subject:References:In-Reply-To:Message-Id:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=iUCpB5JmOy3d6GxjVwA/c9q94zrg6y1GnZGX2I0UX3s=; b=VwpSerlNDFrNgF V04dzF9i4VOw1zfKfY9I4cUnHVWdwuRNXapWwUeBC/1rr8/opWbTZS3mzOmPcDhykmOf25z7Hv1Yb UBTXVGgYkPJCcoOXBRRTQsUhDLeFHP+PYIovYsMU6iorRfXDOlF7CxlUwfD/Q89HQCZaTGiJyUxBR sx4BfknqyFcJccMrM0sUbPI0AF2GBNKKKBhJRdaO6mgP45SWGTs28YPp/dm4twZ9aaxrkphiwYJ39 SMXPwQsb8RKhaNjQmVz+GFadbkyvu4AnRQia8InuBlhEaCkkjzVvJVvHA/sa5f2DY2tq0082hoX8p 4P+bQDs6RlSU3gCp78Tg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY9EY-00000005uX2-3S52; Mon, 30 Nov 2026 21:48:26 +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 1xY9EX-00000005uWs-1bHr for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 21:48:25 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id F3FDA4123D; Mon, 30 Nov 2026 21:48:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC0631F00897; Mon, 30 Nov 2026 21:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796075304; bh=iUCpB5JmOy3d6GxjVwA/c9q94zrg6y1GnZGX2I0UX3s=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=jJI4nzGLyx2iKYKDn0mt+x9zImpE5toBVkduuXWDGG+1VfBFDff2vX+hPWUlv4ZPN kX7Zpb01ddq07Zbj8UCaQ44Bn2nJ3Oe179TpDGCatdqbEcOuUZnpPKq45WFOPg+VHV qZwezLmXlXWBoOaZorEhhliU6ew96+utmVOjZ97yi5d2RwN6fr2F/P+VBWpxsJD1Sk 6v4gjjICg2lusBZ+phflezMMy9OYQiUtd2i0IjZP8TorzdH1Dnt56PVuRJFY5rZa5L GoQRmKAGKrMjSIAsO4uRNSCs2oFBejXP9dDKX8x5LWEL4ENK+D7Bxz783sKkeGLwbX j0K7iVO5aAY1g== Received: from ams-compute-02.internal (ams-compute-02.internal [10.64.2.62]) by mailfauth.ams.internal (Postfix) with ESMTP id 346B11980047; Mon, 30 Nov 2026 16:48:22 -0500 (EST) Received: from ams-imap-03 ([10.64.2.23]) by ams-compute-02.internal (MEProxy); Mon, 30 Nov 2026 16:48:22 -0500 X-ME-Sender: X-ME-Proxy-Cause: dmFkZTEaqBb/5j+fiucv4EghdJinb+rt3ytnT74tYxCh0qqY0Ohsfq2pL0kbBUz1fDp1A2 zHsUzyYwWg8CTqiR8Bo25RGF3ALzHpPkT+RnuOipj4oEaPAP2h1ldvPxDUE4b6swDE3BXn aZ6PNx4dqFNUsAuosF1uvkEn0Ru7ku791YpoqgkiUti9TFm1GrOXAYZ5FZrdoRWSsFIPKE Pyj7UODDUL+/VNZFtOT8iLbszwj70p9j8MI/Xx93Um3NFpZj2QzM9tVNmPMVlyu1Zbp+96 ElPpi1y0K6LXoo9j3OE9tZp96h/ShQ9mnazSn/GT++IgJqS1uc8zI97TREJrndYpMCHeCM wi2zbGMPOlNJJjfTZGwmjUMKIhtpHcaUlHD2qjNTnf6jRaWb3RFoX7t2LdWL+F9HwpEIl6 +sw5ZmYx5hD6fKA1B4ql2p039IpUKh/rZEYC/Oyxwun9yUliERJ58j8xsSlv705iwjqqVX hM6K8LHrp/BEwNbLXgQ5+bvOffqKyRLvwNNKI+gEENfsXQFSgx9t7/hj6ojmLb3irVDL4X aQq2jKxrwZ2nhjkn3E1wID2/iPSiqPv3CQciv/ijpHjnDOAHWV767hsh+fjRu49Ha07ojR DNNHtjRPmxxGKaoQHdaRMjDiFxdr0zHSHlunk1QeI+zApKb7aZpIa7krTvDA X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.ams.internal (Postfix, from userid 501) id CB25432A0099; Mon, 30 Nov 2026 16:48:19 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface X-Archived-By: MIME-Version: 1.0 X-ThreadId: ALll4xLUewT- Date: Mon, 30 Nov 2026 22:47:34 +0100 From: "Arnd Bergmann" To: TriplEight Cc: "Lee Jones" , "Mark Brown" , "Shengjiu Wang" , "Shengjiu Wang" , "Hans Verkuil" , "Linus Walleij" , "Krzysztof Kozlowski" , mfd@lists.linux.dev, linux-media@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-Id: <5b779bb2-cfcc-4fad-a06a-576012bfd7e9@app.fastmail.com> In-Reply-To: <20261130132847.2982114-1-pisarevden@gmail.com> References: <20260909132153.1596191-4-arnd@kernel.org> <20261130132847.2982114-1-pisarevden@gmail.com> Subject: Re: [PATCH 03/14] mfd: remove unused si476x driver Content-Type: text/plain Content-Transfer-Encoding: 7bit X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.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,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Mon, Nov 30, 2026, at 14:28, TriplEight wrote: > From: Denis Pisarev > > On Wed, Sep 09, 2026 at 03:21:40PM +0200, Arnd Bergmann wrote: >> The si476x driver was added in linux-3.9 without devicetree >> support, and has always failed the probe function in the >> absence of a si476x_platform_data definition. > > I tried to disprove this and could not for mainline, but I found an > out-of-tree user that I think should be on Cc before this goes in. > > Mainline: on mfd/for-mfd-next (5a9a62afea20) si476x_core_probe() > still returns -EINVAL when dev_get_platdata() is NULL. There is no > of_match_table or fwnode parsing. A DT node with compatible "si4761" > would still bind through the i2c_device_id fallback, but probe then > fails on the missing platform data. No board file, .dts or defconfig > in the tree instantiates the device. > > Out of tree: NXP's BSP kernel still ships it on the i.MX6 SABRE Auto > board, in both lf-6.12.y and lf-6.18.y of github.com/nxp-imx/linux-imx: > > - drivers/mfd/si476x-i2c.c is patched to log "Using default platform > data." and fill in defaults instead of returning -EINVAL, and to > set of_compatible = "si476x-codec" on the codec cell; > - imx6qdl-sabreauto.dtsi has si4763@63 (compatible = "si4761") with > a si476x-codec child, and a sound-fm node using > "fsl,imx-audio-si476x"; > - imx_v7_defconfig has CONFIG_MFD_SI476X_CORE=y and > CONFIG_RADIO_SI476X=y. Thanks for taking a closer look at this! I suspect that the patches to use this driver have been forward-ported for many years without actually being tested. The oldest branch I could find in the imx git tree that references this driver is imx_3.10.53_1.1.0_ga_caf and it has the exact same bug of requiring but failing to define the platform data. Obviously if someone is actually using this driver, we can fix it using whatever patches they have, but it does seem quite unlikely. > The fsl-asoc-card support that this patch removes was added for that > board (77f1ff751037, "The si476x codec is used for FM radio function > on i.MX6 auto board"). Shengjiu, does NXP still need FM radio on SABRE > Auto, and would you upstream the DT support? If not, I see no > technical reason to keep the driver in mainline, and NXP would carry > it downstream. > > Two small things for the next revision: > > - Documentation/.renames.txt still has > "media/v4l-drivers/si476x admin-guide/media/si476x". With the .rst > gone, tools/docs/gen-redirects.py warns "target does not exist" on > every docs build. a3fb9a5bf660 (smc91c92 removal) deleted its line > in the same commit. ok, fixed > - fsl,imx-audio-si476x remains in > Documentation/devicetree/bindings/sound/fsl-asoc-card.yaml (the > sashiko report). No in-tree .dts uses it, but the NXP BSP does. > Do you want to drop it in this patch or in a follow-up, depending > on the answer above? Not sure, I tend to leave those untouched normally but I suspect this also trips up scripts that check for removed users of bindings. > The patch no longer applies to for-mfd-next because of f06fa446a04c > ("mfd: si476x-i2c: Cancel RDS drainer work before freeing RDS FIFO") > and mainline changes since v7.3-rc2. The only conflicts are > modify/delete in radio-si476x.c, si476x-i2c.c, si476x-core.h and > sound/soc/codecs/si476x.c, and deleting the files resolves them. > > The driver keeps getting fixes while this is pending, which will also > cause cross-tree conflicts: > > - broonie/sound for-7.5 has 7b2c273dbadf ("ASoC: codecs: si476x: > Handle hw_params return value"). git merge-tree of the rebased > removal with sound/for-7.5 (0dc77105b79d) gives one modify/delete > conflict in sound/soc/codecs/si476x.c; fsl-asoc-card.c merges > cleanly. > - Uwe's "mfd: Use named initializers for arrays of *_device_data" v5 > and Jiale Yao's "mfd: si476x: queue polling work on freezable > workqueue" (no reply yet) both touch si476x-i2c.c. > - The docs/zh_CN media translation series (v4) adds "si476x" to its > driver todo list. Those are usually no problem. Arnd