mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: TriplEight <pisarevden@gmail.com>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Lee Jones <lee@kernel.org>, Mark Brown <broonie@kernel.org>,
	Shengjiu Wang <shengjiu.wang@gmail.com>,
	Shengjiu Wang <shengjiu.wang@nxp.com>,
	Hans Verkuil <hverkuil+cisco@kernel.org>,
	Linus Walleij <linusw@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	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	[thread overview]
Message-ID: <20261130132847.2982114-1-pisarevden@gmail.com> (raw)
In-Reply-To: <20260909132153.1596191-4-arnd@kernel.org>

From: Denis Pisarev<pisarevden@gmail.com>

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

  parent reply	other threads:[~2026-11-30 13:28 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-09 13:21 [PATCH 00/14] mfd: unused driver purge Arnd Bergmann
2026-09-09 13:21 ` [PATCH 01/14] mfd: remove unused 88pm80x driver Arnd Bergmann
2026-09-09 13:44   ` Alexandre Belloni
2026-09-11  7:24   ` Krzysztof Kozlowski
2026-09-09 13:21 ` [PATCH 02/14] mfd: remove unused rdc321x southbridge support Arnd Bergmann
2026-09-09 14:09   ` Guenter Roeck
2026-09-16 16:49   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 03/14] mfd: remove unused si476x driver Arnd Bergmann
2026-09-16 16:49   ` Linus Walleij
2026-11-10 12:25   ` Hans Verkuil
2026-11-30 13:28   ` TriplEight [this message]
2026-09-09 13:21 ` [PATCH 04/14] mfd: remove unused wm8400 driver Arnd Bergmann
2026-09-09 13:27   ` Mark Brown
2026-09-09 14:38   ` Charles Keepax
2026-09-16 16:53   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 05/14] mfd: remove unused adp5520 driver Arnd Bergmann
2026-09-16 16:50   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 06/14] mfd: remove unused da903x driver Arnd Bergmann
2026-09-09 15:46   ` Sebastian Reichel
2026-09-16 16:55   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 07/14] mfd: remove unused lp8788 driver Arnd Bergmann
2026-09-09 13:47   ` Alexandre Belloni
2026-09-09 15:46   ` Sebastian Reichel
2026-09-16 16:55   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 08/14] mfd: remove unused aat2870 driver Arnd Bergmann
2026-09-16 16:50   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 09/14] mfd: remove unused lm3533 driver Arnd Bergmann
2026-09-09 13:44   ` Johan Hovold
2026-09-09 14:47     ` Arnd Bergmann
2026-09-09 13:21 ` [PATCH 10/14] mfd: remove unused rc5t583 driver Arnd Bergmann
2026-09-09 13:21 ` [PATCH 11/14] mfd: remove unused wm8350 driver Arnd Bergmann
2026-09-09 13:26   ` Mark Brown
2026-09-09 14:12   ` Guenter Roeck
2026-09-09 14:39   ` Charles Keepax
2026-09-09 15:47   ` Sebastian Reichel
2026-09-16 16:56   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 12/14] mfd: remove unused mcp-sa11x0/ucb1x00 driver Arnd Bergmann
2026-09-16 16:51   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 13/14] mfd: remove unused menelaus driver Arnd Bergmann
2026-09-16 16:52   ` Linus Walleij
2026-09-09 13:21 ` [PATCH 14/14] mfd: remove unused iPaq micro driver Arnd Bergmann
2026-09-16 16:53   ` Linus Walleij
2026-09-09 14:03 ` [PATCH 00/14] mfd: unused driver purge Bartosz Golaszewski
2026-09-09 17:26 ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130132847.2982114-1-pisarevden@gmail.com \
    --to=pisarevden@gmail.com \
    --cc=arnd@kernel.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil+cisco@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=shengjiu.wang@gmail.com \
    --cc=shengjiu.wang@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®