Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Arnd Bergmann" <arnd@kernel.org>
Cc: devicetree@vger.kernel.org, dmitry.torokhov@gmail.com,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	linux-hwmon@vger.kernel.org, lee@kernel.org, robh@kernel.org,
	dri-devel@lists.freedesktop.org, mfd@lists.linux.dev,
	linux-watchdog@vger.kernel.org, conor+dt@kernel.org,
	linux-rtc@vger.kernel.org, media-ci@linuxtv.org,
	linux-leds@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCH 12/14] mfd: remove unused mcp-sa11x0/ucb1x00 driver
Date: Wed, 09 Sep 2026 13:48:23 +0000	[thread overview]
Message-ID: <20260909134823.AA3201F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260909132153.1596191-13-arnd@kernel.org>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The commit deletes headers `<linux/platform_data/mfd-mcp-sa11x0.h>` and `<linux/mfd/ucb1x00.h>`, but the SA1100 platform still exists and relies on them, causing build errors.
- [Medium] Referencing a removed Kconfig symbol `MCP_UCB1200` leaves the `collie_battery` driver as orphaned dead code.
--

commit 3e512215b27ee60439f00d2cbf7fccc06602c45a
Author: Arnd Bergmann <arnd@arndb.de>
Subject: mfd: remove unused mcp-sa11x0/ucb1x00 driver

This commit removes the MCP and UCB1x00 MFD drivers, along with their associated platform data headers and Kconfig entries. The removal is based on the premise that the sa1100 platform has been removed and these drivers are no longer used anywhere.

> mfd: remove unused mcp-sa11x0/ucb1x00 driver
>
> The sa1100 platform has been removed, so these drivers are no longer
> used anywhere.

[Severity: High]
Is the sa1100 platform fully removed in this series? Looking at the tree,
arch/arm/mach-sa1100/assabet.c and arch/arm/mach-sa1100/collie.c still
exist and unconditionally include the headers deleted by this patch.

For example, arch/arm/mach-sa1100/assabet.c includes the headers and
instantiates the platform data:

#include <linux/platform_data/mfd-mcp-sa11x0.h>
...
static struct mcp_plat_data assabet_mcp_data = {
...

Since this commit deletes include/linux/mfd/ucb1x00.h and
include/linux/platform_data/mfd-mcp-sa11x0.h, does this cause a build
failure when compiling the assabet or collie boards?

[ ... ]

> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 8a3bbb6286933..0395af7270f9e 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -2258,30 +2258,6 @@ config MFD_QCOM_PM8008
>  	  under it in the device tree. Additional drivers must be enabled in
>  	  order to use the functionality of the device.
>  
> -menu "Multimedia Capabilities Port drivers"
> -	depends on ARCH_SA1100
> -
> -config MCP
> -	tristate
> -
> -# Interface drivers
> -config MCP_SA11X0
> -	tristate "Support SA11x0 MCP interface"
> -	depends on ARCH_SA1100
> -	select MCP
> -
> -# Chip drivers
> -config MCP_UCB1200
> -	tristate "Support for UCB1200 / UCB1300"
> -	depends on MCP_SA11X0
> -	select MCP
> -
> -config MCP_UCB1200_TS
> -	tristate "Touchscreen interface support"
> -	depends on MCP_UCB1200 && INPUT
> -
> -endmenu
> -
>  config MFD_VEXPRESS_SYSREG
>  	tristate "Versatile Express System Registers"
>  	depends on VEXPRESS_CONFIG && GPIOLIB

[Severity: Medium]
Does removing the MCP_UCB1200 config symbol leave the collie_battery
driver as orphaned dead code?

Looking at drivers/power/supply/Kconfig, BATTERY_COLLIE depends on
SA1100_COLLIE && MCP_UCB1200. Furthermore,
drivers/power/supply/collie_battery.c still includes the now-deleted
include/linux/mfd/ucb1x00.h header.

If this Kconfig symbol is removed without cleaning up the power supply
subsystem, it causes an unmet dependency warning and leaves the battery
driver unselectable.

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260909132153.1596191-1-arnd@kernel.org?part=12

  reply	other threads:[~2026-09-09 13:48 UTC|newest]

Thread overview: 52+ 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:37   ` sashiko-bot
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 13:39   ` sashiko-bot
2026-09-09 20:28     ` Arnd Bergmann
2026-09-09 13:21 ` [PATCH 03/14] mfd: remove unused si476x driver Arnd Bergmann
2026-09-09 13:38   ` sashiko-bot
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 13:33   ` sashiko-bot
2026-09-09 14:38   ` Charles Keepax
2026-09-09 13:21 ` [PATCH 05/14] mfd: remove unused adp5520 driver Arnd Bergmann
2026-09-09 13:37   ` sashiko-bot
2026-09-09 20:21     ` Arnd Bergmann
2026-09-09 13:21 ` [PATCH 06/14] mfd: remove unused da903x driver Arnd Bergmann
2026-09-09 13:39   ` sashiko-bot
2026-09-09 20:17     ` Arnd Bergmann
2026-09-09 15:46   ` Sebastian Reichel
2026-09-09 13:21 ` [PATCH 07/14] mfd: remove unused lp8788 driver Arnd Bergmann
2026-09-09 13:39   ` sashiko-bot
2026-09-09 20:14     ` Arnd Bergmann
2026-09-09 15:46   ` Sebastian Reichel
2026-09-09 13:21 ` [PATCH 08/14] mfd: remove unused aat2870 driver Arnd Bergmann
2026-09-09 13:30   ` sashiko-bot
2026-09-09 13:21 ` [PATCH 09/14] mfd: remove unused lm3533 driver Arnd Bergmann
2026-09-09 13:35   ` sashiko-bot
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:39   ` sashiko-bot
2026-09-09 20:49     ` Arnd Bergmann
2026-09-09 13:48   ` Alexandre Belloni
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 13:41   ` sashiko-bot
2026-09-09 14:12   ` Guenter Roeck
2026-09-09 14:39   ` Charles Keepax
2026-09-09 15:47   ` Sebastian Reichel
2026-09-09 13:21 ` [PATCH 12/14] mfd: remove unused mcp-sa11x0/ucb1x00 driver Arnd Bergmann
2026-09-09 13:48   ` sashiko-bot [this message]
2026-09-09 20:53     ` Arnd Bergmann
2026-09-09 13:21 ` [PATCH 13/14] mfd: remove unused menelaus driver Arnd Bergmann
2026-09-09 13:49   ` sashiko-bot
2026-09-09 20:46     ` Arnd Bergmann
2026-09-09 13:51   ` Alexandre Belloni
2026-09-09 13:21 ` [PATCH 14/14] mfd: remove unused iPaq micro driver Arnd Bergmann
2026-09-09 13:43   ` sashiko-bot
2026-09-09 20:58     ` Arnd Bergmann
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=20260909134823.AA3201F00A3D@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=arnd@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=lee@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=mfd@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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