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=1796413820; b=NbHukjZbmjsrYojDUsBqFrMBAPjTYDLPle3j9016g8hdoig0LNgcUn/XpQY9MAWBu11o MdbWqZfE+YzVhG4scXM01wCemoGsG646gFjF2kSoZ2TjyEE4QU84Gz97ZWEC/U6HWiEBW EXYK9J8qjYtypB05oJpEuqkM6iG4gkXiGgAtxXgSJ4oSP2jBsXm+wVYcI0lUGnsz61jXa mCfQUQSPHNIkcJg8vO2dyEowOaHhQ1LLj/fpICDY2p5kharSEv4mj6D1tN0XQZV1DFVJH +/PE4RkstxTKKvH0lwdQaGbjihI6zIBRpBeap39i5PCc/kwkrTP1cbs/ZOU3llhC0Bw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796413820; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=0nJbN4CcdwVqkmE51A3gpDlHDGXdu0heC/5h/NkQ25Y=; b=c+YQhVB6QmEqf+GZ7h3G+2o5DirG1njVMGQxJD1hIJuuO2X3LWWF3/TGjc7RJ2fihZr0 gia/kQ9kVvPjYFwlYHyMXFRywyZKpftCj/A8sDxQUce/h9hvUHBL8x7uu3btgA0aB4waS SKMT1qaNZQrg6PYtXIphyaCSft0Pj1S1ZZqPAfrpxEaZRtlxAX07svp4gj5/ExC22c6jT JmvDr286lhDm9sjmNvX/NhB71eA0zy9UjJYwXVaqKkJVAAzPhqzRKefUSfOqMviba66fg 1FuxPD6AG3X0sHxteFCIO/uNlAzSvrkwKELH2o5JFOkUK553e+LP9VKcDa2O87fzRnw== 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=YLOpbuSx; 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 A0A3E606A330; Fri, 4 Dec 2026 19:50:20 +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=YLOpbuSx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 332461F0093B; Fri, 4 Dec 2026 19:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796413820; bh=0nJbN4CcdwVqkmE51A3gpDlHDGXdu0heC/5h/NkQ25Y=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=YLOpbuSxqkMMBBk+Jzeu+h+b/mwl+YX2xP0VvJEOyOz5xAahFhyvYT0Oex1XYVbgo tmjZOIjeBAnb12+sAFn8Xpr4XD6jwlKHZTPvftoGwmwfp4EK7QpHEad7eJwJ262hER CGgG0Q9lJ2205WZJIiiNRedIkDCln/evT6SjMFzLRMrOefY/GKT/ato7PILxG9FjpI nIPcwoXhWa3r4Uz6pNNsGzP93y4K3m4SiSzUbq0VjN2BkyeK3QK4+qvGuUJApoEMp8 PbhCpxPOosArLDMxlTUaEdDb8hsD5l2Uwuv+esFmePnaCpxFebZmgHqhxPiayJFVy/ Xmx3XS/PLZmLg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/3] mfd: add Airoha GPIO system controller driver Reply-To: sashiko-reviews@lists.linux.dev To: "John Crispin" Cc: devicetree@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org In-Reply-To: <20261204193857.3801624-3-john@phrozen.org> References: <20261204193857.3801624-1-john@phrozen.org> <20261204193857.3801624-3-john@phrozen.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 19:50:19 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Low] mfd: single-cell MFD wrapper in airoha_gpio_sysctl_probe() - [Low] mfd: airoha_gpio_sysctl_probe() uses PLATFORM_DEVID_NONE instead of AUTO - [Low] mfd: commit subject omits driver prefix and capitalized description -- commit c0c4caede3d516641ce772c10961adb3a204e79d Author: John Crispin mfd: add Airoha GPIO system controller driver This commit adds an MFD platform driver for the Airoha AN7589 GPIO system controller that registers an MFD cell for the PWM controller. > mfd: add Airoha GPIO system controller driver [Severity: Low] MFD commit subjects use the "mfd: : " format, so this should include the driver prefix and capitalize the description (e.g. "mfd: airoha-gpio-sysctl: Add Airoha GPIO system controller driver"). [ ... ] > diff --git a/drivers/mfd/airoha-gpio-sysctl.c b/drivers/mfd/airoha-gpio-s= ysctl.c > new file mode 100644 > index 0000000000000..40b3251200f37 > --- /dev/null > +++ b/drivers/mfd/airoha-gpio-sysctl.c [ ... ] > +static const struct mfd_cell an7589_gpio_sysctl_cells[] =3D { > + MFD_CELL_NAME("airoha-an7589-pwm"), > +}; [Severity: Low] Is a dedicated MFD driver needed here when it manages no shared core resources and registers only a single PWM cell? In Documentation/devicetree/bindings/mfd/airoha,an7589-gpio-sysctl.yaml, the node already specifies "syscon" and "simple-mfd" with #pwm-cells =3D <3> on the parent node, so simple-mfd populates the pinctrl child and syscon provides the shared regmap. MFD is meant for devices registering multiple children across subsystems, and this wrapper adds a separate MFD_AIROHA_GPIO_SYSCTL Kconfig option that silently prevents the PWM driver from probing if disabled. Could the PWM driver bind directly to airoha,an7589-gpio-sysctl instead? > +static int airoha_gpio_sysctl_probe(struct platform_device *pdev) > +{ > + return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, > + an7589_gpio_sysctl_cells, > + ARRAY_SIZE(an7589_gpio_sysctl_cells), > + NULL, 0, NULL); > +} [Severity: Low] Should this pass PLATFORM_DEVID_AUTO instead of PLATFORM_DEVID_NONE? MFD prefers PLATFORM_DEVID_AUTO unless a subdevice needs explicit numbering. PLATFORM_DEVID_NONE assigns a fixed unindexed platform device name, which would fail with -EEXIST if more than one instance ever probed. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204193857.3801= 624-1-john@phrozen.org?part=3D2