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 3EAE3606A31C for ; Mon, 30 Nov 2026 13:53:04 +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=Zp392QXj; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=JVm7gcF1 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: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=eCRImD1gjfvlI1mZgaspa4Zxr7EP7EAA4maMHkmPC9I=; b=Zp392QXjCQmIVR 3515Ze8xGHSThlzjWldNA5L9IKzaIgRz3b5+/f6wFujmH9Lc3NOycD3VcUmN+npnq/ViFnFmnMJNE lFPNNuwoYefm5gKsbOLDbK8ksoyYth41oyEXomOfrlfo503Df/bwJOx+abVqi/jmj+eYVB9LGyGdw fsGrccukq4OJYioyQ8VdUoKsQ4/HFfOn+FOoBjZzW1IQHAzpu1Sg3v2QHzBMAYDAnGQGT96Bpz6lS jgGA4Jt2nn1hLbAQ7nAbQydgx1WGv14d0nlZuu8VUlLzCsfztk6+HHjz4PXWSGD09dzLJo3XDiTdU W1JFJ1El4+T3Avb6teIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1RD-00000004iC0-0s2r; Mon, 30 Nov 2026 13:28:59 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1RA-00000004iAr-1nm3 for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 13:28:57 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-498f5fa5103so6230279f8f.2 for ; Mon, 30 Nov 2026 05:28:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796045334; x=1796650134; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=eCRImD1gjfvlI1mZgaspa4Zxr7EP7EAA4maMHkmPC9I=; b=JVm7gcF1kLamhLxEnz3/Dn8+BeuZbY+JSMdt4JeRmUQEiSwdSGB4Vq3XcVZfdJrTpH 6gVNmiQHVptc6zR8xZv7z5cSb1t3plEBaKvmy6xN3rFZJhyfKMT/GU/6rbAfvvooaY1+ p5s7KBN0oYnyzw0h7GrN9eioThEPZ0yKOE3gM003dqk+aBmrZ54mtp+dwHWe78xe2o6g FDXPYP2j57bZ7CUOp06swW266o+vwnq3PipQsC1dDFxKmYhbmxRMQkNNkvw1BKxv3LXg Q4EwokyEzyTf4lZpU2g9yfWl5BQkM3nlk+DqWn9/6Fv0d9n7wgoGQ39AyfHvMfvFEaoh IHbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796045334; x=1796650134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=eCRImD1gjfvlI1mZgaspa4Zxr7EP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YNPTKUwWBdw7RKa9Q0utVmQkvAPZ2UyEXLQBzC3UB+mEpRXe5gINDZW qMd57DVWwwK81mqON2u4HsCWeoGFA1jnnQOZyGAUe3nmO04c838yME5mflUAArivw50hlHF57K/ 9JrkYWwnfVMKyEJSZGgOG4BbEeoy+H87txEjuqN8aVaxkdnaYQoVm7rsujg+gcQE+yHWXbapSPX y4zN2tEDRD3QpU1VmXnKIl5Uypr8LuJluGqk4 X-Received: by 2002:a05:6000:2c09:b0:4a6:4687:2cec with SMTP id ffacd0b85a97d-4abacfea516mr65317554f8f.5.1796045333674; Mon, 30 Nov 2026 05:28:53 -0800 (PST) Received: from zkzkzk-uk ([2a02:c207:3013:3986::1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a67f204sm80743750f8f.21.2026.11.30.05.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 05:28:53 -0800 (PST) From: TriplEight To: Arnd Bergmann 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 Subject: Re: [PATCH 03/14] mfd: remove unused si476x driver Date: Mon, 30 Nov 2026 14:28:47 +0100 Message-ID: <20261130132847.2982114-1-pisarevden@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20260909132153.1596191-4-arnd@kernel.org> References: <20260909132153.1596191-4-arnd@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_052856_498601_1BFA368D X-CRM114-Status: GOOD ( 22.79 ) X-Spam-Score: -2.1 (--) 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 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. 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. - 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? 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. Build testing (compile only, no hardware): ARM imx_v6_v7_defconfig plus MFD_SI476X_CORE=m, RADIO_SI476X=m, SND_SOC_FSL_ASOC_CARD=m, Debian arm-linux-gnueabihf-gcc 12.2, zImage + modules + dtbs: before: for-mfd-next 5a9a62afea20, builds si476x-core.ko, radio-si476x.ko, snd-soc-si476x.ko; 0 warnings after: same + this patch (rebased), 0 warnings, no Kconfig unmet-dependency or modpost warnings W=1 on fsl-asoc-card.o is clean before and after (audio_map_rx keeps a user). I did not run dt_binding_check or htmldocs; the .renames.txt warning comes from reading the script, not from a docs build log. Thanks, Denis Pisarev