From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C62C631AF3B for ; Wed, 1 Jul 2026 03:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782877854; cv=none; b=Hm1x/iaiqAQaa8BnHc+fjh2bEHzDff8rHCV8HdQT1gQHZ9Nm/sQ86tRCeRE8RA4Z1D3d/Zbx1TOzR08okmASd+vGe2Lq2Ipz9Jb6cbx9p+GX4z3ukJ2liqNKM+8VTu4TtuhJczb78ZNazZKC+NLaS4qeWdhS1s3XmmrD9HyGPUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782877854; c=relaxed/simple; bh=5MN4sHVtjkKqfeXckMusLBFQEevmpAVsq3rvnMFJOb8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VuIbC/H5Zh7Xpo+7ylm7SztcYV9nJFiLDA7HI93wV4/DAEmhaVLP77KlSf7YH8J3LC4OO7f1dmqqqnPl/iKQfcIQwfBkZdvY6biRb+XbrYHfRnpcATigWMczSZVbXfhZqgE9/0MoZRON3u8bzov7VNQRKyGcdIqm9idzxWWbJGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CX/p/Mnt; arc=none smtp.client-ip=209.85.215.175 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.b="CX/p/Mnt" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-c85d4b4245aso80609a12.1 for ; Tue, 30 Jun 2026 20:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782877852; x=1783482652; 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; bh=j8GQ3SX/Vk6tVbgLISw71xpr07hWOePsypTVXjOkuR0=; b=CX/p/MntIjllYzDg7hBQmIjJSKx74OaDpjHiiGY0fv0W2PJyZoMdOHOIW6h/bda2QY xfzbUeV2ve5w70MWpeD9QkC4r+xJCrIjE01TMs+jzAgHmz4gAE/4aCXBG75/8SexLb+6 wIf9jZ3xa29OO/o56pY45iZb36wQr+ZZ1w6kQK/d+nfX3NAQsdK6BJm3wGwVaZyQZEty KytFssBB+aRhtNpQzMvR3Sf6Vsmam8DYQAbhV/9uPHw7bXl0R8W3mt9zrPsoxizU2okv PPyaDHJ1MwgLu/sZWhvXkTJ/HwELCHtkrQ2y3MzeI/6ZXZ/vKZ25mqmbPg7hkoEEjRI7 8LsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782877852; x=1783482652; 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; bh=j8GQ3SX/Vk6tVbgLISw71xpr07hWOePsypTVXjOkuR0=; b=T8/NDwXDP8x77j5ZmrJ73f7FOjVKVLJsJ1KK8PycopZPMi3puUp0lxYQ3ng1ndnEfm 9jWh1QyFdRGxA8iUKoloGoo0uVpVRbmfFQ9ur5QTUuBhVZko1xHXPYXNTFQ84E0j+w9y LagY75xozBpzxDUR+6VL/dfPywSKZ5A1TVnL+r19ZJ2IrDpW1BweVr6aVu7BE2cQVIOv 7Yu/TnZf9DtnZolEZrLxMPX5QO+9Ez/TRxOV5yuIDzcssb4wk42REwRdZjOWFwuHfAx/ UbgyHnJpqACkmNwno8EOKkhJMXKWDKNmV4Qp4/Ois3UkwD0qtZ6n/oa3odhj6ndwFTkJ HUjA== X-Gm-Message-State: AOJu0Yy47U8+ssyP1k1x/jTWVIUap891SM/tQq6I+Vcscz6en1+HPuzx U8owXxS1sND2KJ8S3Onjk+fS2ipvBiy5ji7XdE4wu5gbKkTr7iKo+M1XIbmozg== X-Gm-Gg: AfdE7ckSzv7HLbgfszBvW9nMtlKmmrHK575eRBtYXZ2/huDbXTVT95g1EgREQJSMYtP vNjPrj7jRFxnPZVmO1MQzAalNX5vN+pQPa2xAxtRc4MyQZ8mxd7tlSGD0pec9PqSFmkTLprkLM0 THQPt2JiyCDHuEi2KzDrQ/mo96CJXdIs6EjjAsTAoD05VcTiJC28NCcM4GMDuyjxUXzv1RTT+12 hO3CBxBLYf0mg7FJPCGSE33uBgVHJOIAOgKwe3ZaCah5lHZxeE2OHdcR0Yymi4MTkdQzWc4BUkp DKOGvNPqzpEIqkWweIHuFV1h1T6RhncRkXqjC9wgwYlEx4DRpCMaDhHASmy7swwiHoFiXzLTT+i a2+r3+4Wz+rQSaY5jNDqVspQIC/bNAugQE7AyXbFHfPRCA0zywtBH7ZZX8mIFxiMaOUvxuCNv6Z SRblDHo+/ACMyFwGAMnEfxmj0ozHPtObVzZYf7JFzJvPgcqcz3SjM/Mio= X-Received: by 2002:a05:6a21:490:b0:3bf:a26e:3dbc with SMTP id adf61e73a8af0-3bfdc5775edmr3117862637.19.1782877851940; Tue, 30 Jun 2026 20:50:51 -0700 (PDT) Received: from hcdev-d520mt2.. (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c9bbd27a924sm2429089a12.14.2026.06.30.20.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2026 20:50:51 -0700 (PDT) From: a0282524688@gmail.com To: lee@kernel.org, Ming Yu Cc: linux-kernel@vger.kernel.org, Ming Yu Subject: [PATCH v6 4/7] mfd: nct6694: Rename driver to nct6694-usb and update Kconfig Date: Wed, 1 Jul 2026 11:50:22 +0800 Message-Id: <20260701035025.3082927-5-a0282524688@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260701035025.3082927-1-a0282524688@gmail.com> References: <20260701035025.3082927-1-a0282524688@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Ming Yu Rename nct6694.c to nct6694-usb.c to accurately reflect that it implements the USB transport backend. Additionally, introduce a new MFD_NCT6694_USB Kconfig option and convert the existing MFD_NCT6694 into a hidden core symbol. The core symbol is now automatically selected by the transport drivers. This Kconfig and naming restructure aligns with standard MFD transport abstraction practices, paving the way for future interfaces (e.g., HIF) to be seamlessly integrated. Signed-off-by: Ming Yu --- Changes in v6: Changes in v5: - Split from the monolithic v4 patch to follow the single logical change principle. MAINTAINERS | 2 +- drivers/mfd/Kconfig | 31 ++++++++++++++++-------- drivers/mfd/Makefile | 2 +- drivers/mfd/{nct6694.c => nct6694-usb.c} | 0 4 files changed, 23 insertions(+), 12 deletions(-) rename drivers/mfd/{nct6694.c => nct6694-usb.c} (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 15011f5752a9..3f483c2d783d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19318,7 +19318,7 @@ S: Supported F: drivers/gpio/gpio-nct6694.c F: drivers/hwmon/nct6694-hwmon.c F: drivers/i2c/busses/i2c-nct6694.c -F: drivers/mfd/nct6694.c +F: drivers/mfd/nct6694-usb.c F: drivers/net/can/usb/nct6694_canfd.c F: drivers/rtc/rtc-nct6694.c F: drivers/watchdog/nct6694_wdt.c diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 763ce6a34782..5506a0adf3ec 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1164,19 +1164,30 @@ config MFD_MENF21BMC will be called menf21bmc. config MFD_NCT6694 - tristate "Nuvoton NCT6694 support" + tristate select MFD_CORE + help + Core MFD support for the Nuvoton NCT6694 peripheral expander. + This provides the common APIs and shared structures used by all + interfaces (USB, HIF) to access the NCT6694 hardware features + such as GPIO, I2C, CAN-FD, Watchdog, ADC, PWM, and RTC. + + It is selected automatically by the transport interface drivers. + +config MFD_NCT6694_USB + tristate "Nuvoton NCT6694 USB interface support" + select MFD_NCT6694 depends on USB help - This enables support for the Nuvoton USB device NCT6694, which shares - peripherals. - The Nuvoton NCT6694 is a peripheral expander with 16 GPIO chips, - 6 I2C controllers, 2 CANfd controllers, 2 Watchdog timers, ADC, - PWM, and RTC. - This driver provides core APIs to access the NCT6694 hardware - monitoring and control features. - Additional drivers must be enabled to utilize the specific - functionalities of the device. + This enables support for the Nuvoton NCT6694 peripheral expander + connected via the USB interface. + + The transport driver uses USB bulk and interrupt transfers to + communicate with the NCT6694 firmware. Enable this option if you + are using the NCT6694 via a USB connection. + + To compile this driver as a module, choose M here: the module + will be called nct6694-usb. config MFD_OCELOT tristate "Microsemi Ocelot External Control Support" diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index dd4bb7e77c33..48caac64f3d8 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@ -124,7 +124,7 @@ obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o obj-$(CONFIG_MFD_PF1550) += pf1550.o -obj-$(CONFIG_MFD_NCT6694) += nct6694.o +obj-$(CONFIG_MFD_NCT6694_USB) += nct6694-usb.o obj-$(CONFIG_MFD_CORE) += mfd-core.o diff --git a/drivers/mfd/nct6694.c b/drivers/mfd/nct6694-usb.c similarity index 100% rename from drivers/mfd/nct6694.c rename to drivers/mfd/nct6694-usb.c -- 2.34.1