From mboxrd@z Thu Jan 1 00:00:00 1970 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=sQlTZlq3d9zEvcRqvgrQ73bmpheRqe/uYrpIfK8ynfVkcEf44q94jMLfyD7ZJN/PcaRH dlPVZaGpR4KL0+WNHx62xFriEaKzHA1kiaM8OZ9rBNpb865tZ8qyGNAGPNShBY3ZcYzyc 1hfi6W9Eff3AslVJW6Qqm3Fb7+aiMhCFTCYYB405dZb/+4wY5cf4/4BV0tqyYbEFIqE5X 6+uTbXApmQ4M5XP7Q2zTWjwUyKuHBdS4ztwaP/7E7q2qzvo33WdYYQiYCEmi28oseL/vH 6WxbNKzGr6/36pcETnEIbRkC7fEvcFc5ezDuQMerMfpQ9zRPvB7e/x/jMhos+PTigjQ== 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=Q/9hDGsvywX5U/Wh8NvMLmxL57JLLCaR06MmXjK4h9P196f5m1Ux4wjPoEoyRdsoi0Mz MmfKbjX+jgNLt4dEKe61qn8T8bQFh1bx/3qIOzPZ+D2xgBlm+yr9XSFcXfLo5rXlKO9l2 fx7L/YiyZE03KnhMV/yX4VQDrLaV1Q6IxlDkXttlvS+KsOr1rcanaKs5YJMMtDZq3VGJy R9oGeD2TPbrtv6VdrA+Onf8gA9wQpqucq0PRlkDo7h/MDA5Jtjyg4Ldgib7eBA5/oMOo/ vOhkE7tR3W3kZZnH1w8PEjAro0gtHayIIx0CNKx13sEQH6M8XvCbk/qgmENTB/4428Q== 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 E4661606A330 for ; Mon, 30 Nov 2026 13:28:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E4661606A330 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-4c4b8e58c9aso842832f8f.0 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=fgd9+eNXbzOqbQK8A8r9NoTxTCYEqOhI139PZEP07t7zWozCfaA6EXu1mCDYhcEhFg MBhaUXQeY68fJdXxk3HO0dFehnC129vKkUUuc1hy3xmxA8CojDFOJ3r+x4JrUGC5NoQ9 5+botMIj7F4goVO/QBDn7FblGM4WPhSOceoJ/pZuZidP/blnD+AKy+GHlQQcGFJnTxwI 5oqHwONe7tFykjBbNx0ksCBqElVpJ1J3S8+ekaNgwVw0HwVknlJAr6yb8Pg01Ifevzy2 yKBNd2ITu8RYb88ugHiHAqX2yIUP51fkEYFJBJvlyWY5IZO8f+nfplMfE6xGrbeCs42U htyw== X-Forwarded-Encrypted: i=1; AL+hErEIoZChv2N9XFQj/lnFhO7V2oRG6MXGDj7vtBnAY5JmEWd7NLl7gdZ5veMcrgThQYjvvRCRLcerRMimUyM=@vger.kernel.org X-Gm-Message-State: APuU4Z92sGsM5VVJyRTgPonclpXK3CcSOnpax4l/0hXP6E0+FakJqKbq itqq//a8cYtnke+xeyju6DBo9nUnTC0diBKgCkH+rN78O/CWVuf2m2Rt X-Gm-Gg: AZFdTZfVQ9JBrTcKSRdl9m5rYN2fG1uJKbDzMULK8RnbsdoB1Wb05tTpApUdU0A2XEj sDEfGLCbquw++84a8qmGFVpgAJZO4l1SACEnMvj8KJnDxbMAV8npiGcVAHe/tBHmDVFskOncwhk iJkYc9T7xI500MgSh/dBFgPIxKHRAEHnYLjnayEfoKRynTcUmGIsv9T9kZ7BdKPUim+LQbKI6h0 or2KuyxsbjSBZOMHcD0bqmlnLz2MXWesH5auMkSXCBf9unP6h8x0iOQE5LzlXBgOhvsy5liE1e+ W4uMxjyJljr0em7GjehXlp+OfgoI3CoaT2sVNTxD/UExk5h9ELf8R0RH22SeiBrOmYHaN/lsf9R uwNaX32BrWkyyAJRzcZ+vnFZUowWGJ66oGQxRlZXlV2INqajqtBot5OL21yngp6FK0yvQdheOpg B5QJgMUmvjv3FsE5mDeLzG6qYV9Tg86LEsEs00K42zNPuM5EPBy6QmHLNibtL15PVMk3ZGwZL9A 2hsuyjBFSo7CtlyZYnZ2s/h/nSkW2MppSFNp1jljAofLNnCMa2vOR7bU5fHyHI3GAWEPumiWbXH U0kz5taxVKRHpeZO1fwIzAMd0QAyh4HxluhqZZsByPdGQ1BvU8lzwUxC1xdevRIv/nf0TpHe9Mz AQpVwz33u3YsrfCGtn4BJQWN/ppOpQoS5FJbc 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: linux-kernel@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