From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796045336; b=GbVjMQsKh3iFsVnE5ohtyCX2FZFdIqbOJdgmrilBpX75Xe+tFKlv3sW5qLjEG17k5SIf z83joq1EalmhUkiehW0NwXWDmM7nbFJ03+sRj/h1U0in0U4KFvZHg/aNkyKHWPafYcnvB MVirLoVrkYHapBMiLWj4xQZU6RmLG5JHhA3JefpBgQwsArdDmBT+Dab2TfigXnaPBxvpq Ew2Uqo/fYZ2nMswiNdW7o+A2d0yF5NKnSItl9szY+bO6bpwHTneWG3a/xI94/ubfFQBHl IwkGS9105xSdnPh7lhFNpb13/jyXKZSr9scgM6V5beEJrA1ntTLR365fEYHBA1ifdqw== 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=HJca4RXsfqGFFRWVnaPZN866TANMA9pPKP291nCwy71qk0nUTZLWIMGppnx5NVzvlvZW 1hgzPEUq9lDVGxwqM+VzUSlAoMC/O9iJkTR+AFIIaupZybYBPsHRo5Lzac0Zla1rxTZrn 57kCNL+pw0UthgPyrDj/j1uyC5VWCAfP364TVwSvGIni1FBHh56Hf2lEw4hYXjShyDx7y QhSudDxTQ+AVAOT9hV6e+1B1d0WVy1lq71ikdiHBrzA5mgS+xMwQ122QBCs26W3opv41e jS/TIMPcRiJAAIKfe8qKC1OSLbj8YxsZG0OHSaZ7SOmYyZnifXrmJNOdi/++AK4Nuiw== 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.47 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 9EE89606A32A for ; Mon, 30 Nov 2026 13:28:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9EE89606A32A 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-f47.google.com with SMTP id ffacd0b85a97d-48e47347279so6382000f8f.1 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=RQAEvwyDFEhBE+aicfxaMnnAf/vUUOFNcFSgov1OkMev+m9m4x2OYYLxQd7DOmI+4m Yla2e9btasg4wY0XBnU0V9s14fKL47kiqhWjkJvYnYBs8s31WADDHdGm6w0ElLsJjsWG oIHKIDGd4BsF4LOty6iMVtpc0BVB4sAor+ZkWLKr3o3rLPHfz9AoIjuWJnoO8qCk+WGx GqRpDg0t1mrcDTnNFsFx0oZeA9FB9PMUQIv8BJoTE4dAm5s+LSHFAiJyJCWtPgqyqYOw wbZ9MQ3M9hTDjIdj5edAjvp6yeTyU3HaGSiXW94EsYck+VMwg+OHffOI9BGaxEqWAafY 4C0Q== X-Forwarded-Encrypted: i=1; AL+hErEjU1WohnkwM6SMZcotRSExUYSXUe8mOmZsJ7pzRmjUKraueBSWJYLhGWFQmxXy78aTE8YMHN0ko3k=@vger.kernel.org X-Gm-Message-State: APuU4Z/ZJzoa/LWogtsS9lNnCecacHvwSc6gBx/yIikVB3Np4WbQ575o JRfJcwl28pN9LGBBVu6nXB/oaNNFa4VBxlMxCeoIMUssc1bPKf5SnipF X-Gm-Gg: AZFdTZfLLo08GVD3l7AQCeCpJ4oCAKneoSbDAeaF/4dURl6kZmlWzlV+dhu2wBtjD79 xSZgV0MRZ1FESqh2vnp3z6S3VpUsM4PFZchSc6mWCpbn9CcQXCAYMbaP7StuQYm5P5Gi84oLJV0 NLtghTfk6cUgemBv3HD45xZLBAPOe6qWdSixIuXHsuY84K0fIdX/h8QpyGPSnWwnTDy5GJqW80y ot6/hslKqE95N8u9huF2fGnQyRL9jtdQagZ/WwZn9Ktaile8l267U8iXbjHWrRsvJpQdlg6WY5V 35Z/b/RU1BIXzXkH1Gto+rTEDK5DC+o6vjSOHAklXh6xqeUuJTRhijYA+or4ad+/Nn4eLeK1+VN um0CRZlRuLlP6vtBmP1zqevS0fM78+mdSFT7jFXr5FM2A/pcatrn37b+5O3JMrLm4sa+uID4BHU vcwE6ju/uwmlXELpwwCTJRKC5QN5NdVAmBHtt7zAX/rGJ80RSArqzR0nS3TYJm9l6V4AKZhF2fI vSZ6wi2SQbAglEbMALUjFdccJjyGXCGmN87REZ07kiWfU4YPrPLahFNT6CULGlMoXxG6sQZfH2y Fh8vbVotwwQUz1Wke4VGYa7pzRAVJhfsZfvK7NeKtVEDCTVTjqxEACN40x2QxpC5Bmr5A6xB1lS K5g5z9s0W+p9dDs6u//GnPj2yM1JDx8yoUulN 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-doc@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