Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796045336; b=1IqLy1LMrtbzVHHWsCzW3G5tme2YMj5f0sds+wvjIakTBchS7ZAtVkSSJw52Ck+vIvF9 g+N10zMb8mNprhT9Y2mvmcbwCtL/V/SCtnylahdjV88sLI81WgYKNd72AluvVeIgrLlsV H9u4TfZqYHhMueVXbfSHTd6sVWb34mxu/JMH4OAAKwKfySZ14QJncQgfVFYcFKlIstX1c Q7DHv+Kni2ghUb8O8xM5rnYtMoBgro3IcALswv7BknQTjb0RyHdMo9MzExnMpaRGrbjav +jvhcYOwaZUZESY+xxoQbeGvvicIzJn8qJnpQqGMkZQtvwGWkj9oA4VMvM2vb6f0O4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045336; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=eCRImD1gjfvlI1mZgaspa4Zxr7EP7EAA4maMHkmPC9I=; b=Xs2Arn7KHq0ABhC6N+vfiOxOzd5QDkO57RNmXBibdCydujVCZvwcduBqSpV66ZBN2M0n 5/Bsbk0ZpWGX5qorFD90Ezxg3LPrjvOnnpJpIKvrw9Lwepm9XrG5/hKEAPUGoF0g7zZqE QLrdPcWjcfnb3VHYEPvbTWexJ6DvE82FlVgarG2ZSKwmR8Z+VEgzTYMF+gISj1Ai0Hcg7 mnivzRD7mDl7gr99BLQ4OjaD81ygEefbVy/vbZ8znF/E/1eXQC5exPxvVbBJko7Zydgdf 2kFBvdWHpeKbSB8mBx1UQGQkBK+IpTpOcYHiaMDMs1F3KmeSMsNWyMG96+vS1PTneTA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dEZEbh4A; arc=none smtp.remote-ip=209.85.221.51 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E45A0606A32F for ; Mon, 30 Nov 2026 13:28:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E45A0606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dEZEbh4A Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-498f5fa5103so6230280f8f.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=vger.kernel.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=dEZEbh4AI+KOcSwW7e0ghp4912UudkJIO3aJFtVZgvoML/IUklqWO1ycJXNmpIR9A5 HlicvjPaWfUce9JpG15HoVX0d3gSKIepVWccGswSrTMo3yqqiO33tJF/EUTMg8la3/bX L6Fk4m8eKwq4vaTN+Sbq0yS2n1DPYvrnDK8X8FSEoaAmD4r2hSC3qF0+kUTsk5in4N1P v1j0v69Mcz7JEKQf1xTLfPUxrlCnfXOOsURoQIKY1g2dkZ9qpujrdy/XDbJu9W/nuB/L Xt+Lp9Ekb5amWot/o5S0xgY5OQlMXhcvrJ1GTEzamj4lU9WDLk7/SOaoY0OBa9zNdYSR 7cMw== 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=eCRImD1gjfvlI1mZgaspa4Zxr7EP7EAA4maMHkmPC9I=; b=DNj8fvazeq64G6U/I+2hwsAqk415NR5OZf0bOnmYYbpW/xSn19rM0N8CmmrYC6hQzv l4skfe5raQxz8VWVn8sXTp+QAfVuMwUmpdyr+qxVGigXQXJXMrqp/cdWVhJMOk5Tro8P MFR33qBOFrBZRdYlNjgWTSjoZWD3A9tWCEHbS1AqRfy+9EoLD45o7TVhDcZKSWIvGknR 7BZvWeO3EK8D2EDPAU5bKtRWKP2t8pTjzQAr/2MBJUlgnJE0ZJzVNHNGRSwjgby5W7Yn RhFN1+DwII8gcSjpjldh1LeR89lInT4N8QjM+mx3j9o79Vk0gMcARlidqZTinwwM2xFq 9EBg== X-Forwarded-Encrypted: i=1; AL+hErFet7Pd/z34XEZMzAsEvYwprIJSN8LYYOfHSVsP0uGGj9hIbeV95Ut4JqcDxOfRwQLDWXzkoS1ZUKjg@vger.kernel.org X-Gm-Message-State: APuU4Z8JVdwsQmcl951g9OKOWVj22H5NGTggkkMXBfRcoD54vqGI//if hGGoe+xuEOfX4CWdYWe0/iDCq14cUcJpqLxuc5UBYMk+vrlWR+wjSnSB X-Gm-Gg: AZFdTZcqNHQ8gaahNi2IOzdC6eFBu65SUf7lXpl+sgvAKSGljLpsmgw6gZuHQE2oJSA M4JieBXi7Ena6X6cT7T7f0NJJqciyWDAnf5Yj0EcUB1tNVrFz3vRGfIc+kyj3RADommP4sj80xj 3cf+YFakjDcBlnNVNyl8LhMU3qOWpN+pkSxyAgv+DAP20wJoozgNhzmhVKsLmzx/mut+OVZccIb 6dToRQFlgEbnbCdqkUuJ/yMXg1Zhuov5ngCZu/Zg8uI2rShotcR6b8VSrvwvdLj6p7C3Ui6jAn5 xW6DfXf2+Bs5xViyF8eY6yvbTrOoy4w8wSRN9oqN0snzHeOx9Q0KYn/JD3EdQNOaUSAF2EWLBcc Cdg195ct1qjLluax5OeLv/2RXyF0DfYN3c66bTzorlZQZO7dT8dTsPOMEOxZm3ufxPBcPvzVW97 Nu4e9s/UFGRGejek3ZIq2w0zJv5+RytYFN4RLt6yaWgCtizoer3NGKVSVNsa0Ophu/lBl9Kc/jz CDGg9Kvxjz6XqM64mmj6yQy8Wt6Xs5UU6Se5pxyoyQP+x/31dSGG/G0yZ0sBA064ootEXWHVe2w v82wNsW0I0+nHT52yPhNwqtym7u1UfuDU2MA7PHLGlfpV0Mu2yE5OenW4EzpOWXoDZ/Z6tf9YTY g6CvmwgGsFliCTuj6T5jvOVsIhDJfntp31aFf 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-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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