Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796121876; b=pmZXjUa5H+ekhozJhhwz2xCgIKBdqUrr4FClaqJLy8BR2JKYhQAS/AzSw1By4Z++PRvB aQ8W4D3ARGL/un+uPOBYcB+DBIiifaPpanxSrCk8JShKkwqELUDdwyxRvMY6DC0TB0Zb0 PHGHbf7OdBs2GKY1L4Ys1yRMvWDHzo+1ZQjoFs1UBDK1prMsQ6fYANo5t0GJMA/mAE13S eE2OLMeXv6APvD546pfRXJoyeM/uqkyTaAzivLcRBAl0IoIz5euNeJQzGptkRq8DoCFcp u3stsRsgSsnXrD3PKRDwK6gtVMBHvjf3pKyu8Tqzm6YRMIf2QwZJLptPQZ5iS76btCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796121876; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=yuQeIi8SHCuPhyOke7KiULBPRWTczLC6qF5jIfp40Kw=; b=pTWWDZJgRepHJvZ1ntp509ZRB7OGnM1YhZ0/fwYb1zpjTpqmCuiLM2dWLdPKLQtupnrY Jvuo6OGO3eq6J29vTYNzM4jKAi6N7ZM3mPEep07Jj6/TerVyf8lXCSSs211GLaFJ+5e7d MLmaT82aBLRfKWLydkXe9ZKymN9UL3BlyN9FpwduzxnpLZPXK6E97qo1r7lI35lTcVW3s Z6s0nFyHQRpDJV+qnI4l1IO/EsOtEbOqRqydYlfPOgqFXZo8UORktMKzvQU15hJA492fz olJBeFYk4JprfmETxKobt3DarlbGr06F3ktVqMPWjhM+THAOrH5NZzFutZQTE+V8n/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=batcs0PP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74ADB606A327; Tue, 1 Dec 2026 10:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=batcs0PP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 487D11F00923; Tue, 1 Dec 2026 10:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796121876; bh=yuQeIi8SHCuPhyOke7KiULBPRWTczLC6qF5jIfp40Kw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=batcs0PPOQ97NuJ9F0oELC0AAMYvy89BIZ4s9cGext+tazLMfUZZNHTTAGJz+6FCL pnOWShfpWnmasjEHURtD4gU1Grbt83r/ofssZHV9m3Qm1A3fcLK9/luSxXfSjJPGnH /OoI1IIyR3r7iqOtVZJueDYe4Omrw7NX5Pcn8rmC1nWN/IhPvbhlyeoR4QqATd2Acp OVLcPp0m2EgfMMazhbxq/d6M1pxeuANbGWFABDtjmfCuC6ZzzxLQnpGWCPDttAenvB Dx7UlFtlyfmIWJSCc/fSv7/2UVrK13k8mU+vspvGC+5znG8zIMYBhFM0DJtWD5/oIb ia34aVW5bXgKg== Date: Tue, 1 Dec 2026 10:44:32 +0000 From: Lee Jones To: sashiko-reviews@lists.linux.dev Cc: Peng Fan , mfd@lists.linux.dev Subject: Re: [PATCH 2/2] mfd: Convert to subsys_i2c_driver() Message-ID: <20261201104432.GF90630@joneslee-mac.roam.internal> References: <20261201-add-i2c-subsys-mfd-v1-0-e7b1db408abf@nxp.com> <20261201-add-i2c-subsys-mfd-v1-2-e7b1db408abf@nxp.com> X-Mailing-List: mfd@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, 01 Dec 2026, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue to consider: > - [Low] mfd: exit-less drivers converted to subsys_i2c_driver() Please review, explain or fix the Sashiko review(s). If this is a set, this request includes the other patches too. > -- > > commit 14a41c42fcfdc5229494b4b2ee13de3e1844671c > Author: Peng Fan > > mfd: Convert to subsys_i2c_driver() > > This commit replaces open-coded subsys_initcall()/module_exit() I2C driver > registrations in MFD drivers with subsys_i2c_driver() or > subsys_i2c_driver_probe(). > > [ ... ] > > > diff --git a/drivers/mfd/as3711.c b/drivers/mfd/as3711.c > > index b123195d911cf..ef5ceaa2fb071 100644 > > --- a/drivers/mfd/as3711.c > > +++ b/drivers/mfd/as3711.c > > @@ -203,10 +203,5 @@ static struct i2c_driver as3711_i2c_driver = { > > .probe = as3711_i2c_probe, > > .id_table = as3711_i2c_id, > > }; > > - > > -static int __init as3711_i2c_init(void) > > -{ > > - return i2c_add_driver(&as3711_i2c_driver); > > -} > > /* Initialise early */ > > -subsys_initcall(as3711_i2c_init); > > +subsys_i2c_driver(as3711_i2c_driver); > > [ ... ] > > > diff --git a/drivers/mfd/wm831x-i2c.c b/drivers/mfd/wm831x-i2c.c > > index 7fbeae088b244..3049406684ada 100644 > > --- a/drivers/mfd/wm831x-i2c.c > > +++ b/drivers/mfd/wm831x-i2c.c > > @@ -97,15 +97,4 @@ static struct i2c_driver wm831x_i2c_driver = { > > .probe = wm831x_i2c_probe, > > .id_table = wm831x_i2c_id, > > }; > > - > > -static int __init wm831x_i2c_init(void) > > -{ > > - int ret; > > - > > - ret = i2c_add_driver(&wm831x_i2c_driver); > > - if (ret != 0) > > - pr_err("Failed to register wm831x I2C driver: %d\n", ret); > > - > > - return ret; > > -} > > -subsys_initcall(wm831x_i2c_init); > > +subsys_i2c_driver(wm831x_i2c_driver); > > [Severity: Low] > Should as3711_i2c_driver and wm831x_i2c_driver use subsys_i2c_driver_probe() > instead of subsys_i2c_driver()? > > Neither driver had a module_exit() callback prior to this patch (both are > built-in only via bool Kconfig options), so converting them to > subsys_i2c_driver() adds an unused module_exit() callback and differs from > the other exit-less drivers in this patch. > > -- > Sashiko AI review · https://sashiko.dev/#/patchset/20261201-add-i2c-subsys-mfd-v1-0-e7b1db408abf@nxp.com?part=2 -- Lee Jones