From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796154749; b=2DWkwnw3Kq3USs4twhbbyu4jMrY7/YU9JU/03r1r3TGm/hf38lty2R8FT1siq3lkyhyt /SdjuDdUR9hEux8+fgYtmbOgpa4hdAxDK3n3y1yptz26XOHjuutcnXoOJt9osEWGLTaDz 4nbouPpzP/bZ3icNxYz6xWL9qM6pSobJovUH/tAMGvVi+J20G11WbM/AA0iXJgJBCzgTu OFjGANLOnsUmJhaJOT1BW88UqDyIADhQZJUAZLGvuoVjVdzvZdeYHcJJWF5212XOQInIF gBQkYcgHP7fJc8/boCZPA7Mk3xEeCTm23zZrX6U+CyNPT5WxV+iNvxDAfHCTHK4hTsA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796154749; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=tT8xiW1JAuz/txiJiqWnGX9e6W9fCDe9TwnLOExml78=; b=tdNVZGXKaLV5+bPvMacOJjjzXtP+mJFZOYyPApCJnwkkPQuBrtEzq9B76IlFAJokYpav LYKN1JwQfUHTjy+qeHxoTGTQguPVFuMKAaOvY80hGvGWLMJmAyFzDV/Rl9m/fVm+RaSWf tjNLZt3k/bLb71wOb/suTQCx7wTJTdO3x6kvnrIFt8xNJApesaWnzW4yMhS4Bbp8yiDbD 3V8dbXBuh00ctFUwoHqlkFVxsdg/6A8KQWYCl3lXiGJW8p02S6KItgZgtA21KwN/5v5TS goa8+nCNhGZq0djlztr+0Pg85CXhRbJqlPCc81OEpKlh3GFLKGfy5kKJxrzLdHugTBQ== 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=kYZu68hc; 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 2032A606A31A; Tue, 1 Dec 2026 19:52:28 +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=kYZu68hc Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D7261F000C1; Tue, 1 Dec 2026 19:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796154748; bh=tT8xiW1JAuz/txiJiqWnGX9e6W9fCDe9TwnLOExml78=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=kYZu68hcW8LIQ3lC3MqNv09RkK1afe0sU/sgfRP7vW/VWLeCRJPeU1d0vFeTET1Jk sZRz9WCbk4p7no+xO+wXjtK8sVjjePiH8c3hKMT1qdLrr5DH4fN2o9AoABOfmdYWaW 6EK5FPJ/kAv2nG7F2L7RafGZNOMno1YbWHy/D7Nhzw1XxKSykdVPm4RMMNwI+h3/iS uJg9WHKvrXOUOOXkqIEIrO9d7JHErpWTEaEcUIdneLA7XGi5WbRohVW51Fdo9aa7h3 nS3gpIDX/T3T7Olx3H5fe08QL1JHEa7tl9OtCQUKvm2DyOPZrYl63wafn4e2SgvTEh xkR+qha7dqONw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 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: <20261201194434.3132187-3-john@phrozen.org> References: <20261201194434.3132187-1-john@phrozen.org> <20261201194434.3132187-3-john@phrozen.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 19:52:28 +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 registration in airoha_gpio_sysctl_probe() - [Low] mfd: airoha_gpio_sysctl_probe() uses PLATFORM_DEVID_NONE instead of AUTO - [Low] mfd: commit subject missing driver prefix and capitalized description -- commit 12c8b79a47de96d8edaf2da69121ab6f2cdb4d38 Author: John Crispin mfd: add Airoha GPIO system controller driver This commit adds an MFD driver for the Airoha AN7589 GPIO system controller= to register its PWM controller as an MFD cell. > mfd: add Airoha GPIO system controller driver [Severity: Low] This isn't a bug, but MFD commit subjects use the format "mfd: : ", such as "mfd: airoha-gpio-sysctl: Add Airoha GP= IO 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..b1cd312dffd92 > --- /dev/null > +++ b/drivers/mfd/airoha-gpio-sysctl.c > @@ -0,0 +1,43 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Airoha GPIO system controller > + * > + * Copyright (C) 2026 John Crispin > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +static const struct mfd_cell an7589_gpio_sysctl_cells[] =3D { > + MFD_CELL_NAME("airoha-an7589-pwm"), > +}; [Severity: Low] Is a dedicated MFD driver appropriate here when it only registers a single mfd_cell? In Documentation/devicetree/bindings/mfd/airoha,an7589-gpio-sysctl.yaml, the node includes "syscon" and "simple-mfd", so the DT pinctrl child is already populated by simple-mfd and the regmap is provided by syscon. This driver manages no shared resources and only instantiates airoha-an7589-pwm, whereas the MFD subsystem is meant for drivers registering multiple child devices across subsystems. > + > +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] This isn't a bug, but MFD drivers prefer PLATFORM_DEVID_AUTO over PLATFORM_DEVID_NONE when registering cells unless explicit numbering is needed. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201194434.3132= 187-1-john@phrozen.org?part=3D2