Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1000706rdb; Wed, 24 Jan 2024 01:28:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJWprHiKIwskw2EM5iN5i3ZkYqBKEkJKks9IMD/dSQHakQ9NSXj8lTRrAzejzU2wBe+tEb X-Received: by 2002:a05:6830:13c3:b0:6dd:eebc:da3f with SMTP id e3-20020a05683013c300b006ddeebcda3fmr1426176otq.23.1706088517644; Wed, 24 Jan 2024 01:28:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706088517; cv=pass; d=google.com; s=arc-20160816; b=T0xjJEkfZaFr8hcsKwAS9tX55FmqWtNGGrTdKyf6OkRR6/QWOf2oPgNVY/CqsE5Bjq pR7hhnG41bQSIxrc7ZZjGVgja7gZV0Q1Ru6Ys4TrypifFtbZKTXg9imnoJWP3YuIdJVm q9t73mfioHpmwW5FvBXbCF6biuUnc9SjxvXD8XwZookY9xI0ERAfO8lSV0WdA5S1Tac2 FyEUVkgEQ4XZ4kdbuS0/mFXKpc6hjf4M0zdAxTdYP5Vj4ICNdbbRq22rA79t0bIaoT8v FcHQ6qI916KlE7/nzhnqdquZGR+zXX36pTh3gwJpQ7i7n62PPvRYBzxzIxwGVdmesDlV PGIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=UGrNvQ3ppCvgLb83+rmz0CavxcI+G/Pb9FHDfD35QjA=; fh=02goHv1gf6IZnl+8PZbgYXgaPEv5CNyC0dSuav09zS8=; b=kGqJYPOvIuErJjPJsjnYl5EV3GqlH8X+nFZR8Id1WnPQ63P2aWLbVI34EmF9Div8a2 UA4dC9ihy85rQRYC/muF/sTsgD6gUROrl79Mwc0DsAKSWo7PPn9Yp1HTMWFXNDlLicMV 9MidLTOj2Qwu67tWh/b8WBGfuChbAE25Q/Sax7x4zeLHa3ccnyJGw3CXkzPIB2U+4bSV DFdz3zIAUJuJkaAFBokUamAEtEkFEGZbTz65X9GkVgzz8pUwhSy6fsoOkh/QfO52Zkce mg3R4xVRq7qzq9AmNmABehnwcsTtOXTM6a1nEyvNNI2sXH4Er8Vrfx23eZpnH6GAzEN9 mWpw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36680-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z34-20020a631922000000b005ce9986a043si11295412pgl.370.2024.01.24.01.28.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 01:28:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36680-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E4933B260AA for ; Wed, 24 Jan 2024 09:09:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2B8E17C7B; Wed, 24 Jan 2024 09:08:40 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA5BF17BBA for ; Wed, 24 Jan 2024 09:08:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706087320; cv=none; b=hBf6a1QY1g91/xj5gyB1G2QFvKsMxyk1pi+IHahErItPUefNAlz4uA7aKORlpt8thUP2gAFwvsQMgwakWmD1poTqmRxO3C1fcN0pGNu9waJ+gvj9XgG/Mb8WXZWseNg7qnBTJ21DJvHKN9ZyU55/VNn+BPdXJLES6QbVhXt2fgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706087320; c=relaxed/simple; bh=6/KlTA0J6uFnfl5c8rIDF12UeY21Z4ml6g/NHKbxJj0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IvueDxFvhSIGtenluz5frLf05nY4g20gpHoGW2zkqUbnE3yyICF91oqMcjtUDjVxxpB8ydO/C1ZKqgqhT8DTL6K9KyobZvp/eWaa0GBCG1/mJsQ8kgOMrseo+6k5LXF5Qo5VsIqLIQbmIS6N1Wi0cWuXDadAEt5wwoVpxrzKbd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rSZFF-0001ed-9Q; Wed, 24 Jan 2024 10:08:29 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSZFE-0021Y0-I6; Wed, 24 Jan 2024 10:08:28 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rSZFE-0070pg-1U; Wed, 24 Jan 2024 10:08:28 +0100 Date: Wed, 24 Jan 2024 10:08:28 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Jerome Brunet Cc: Thierry Reding , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-pwm@vger.kernel.org, JunYi Zhao Subject: Re: [PATCH v4 3/6] pwm: meson: generalize 4 inputs clock on meson8 pwm type Message-ID: <4kcbh4dezgpic2dpgdi2swtx2puqiq74w2tungmxipf4nznpn7@u4g4f3cimps4> References: <20231222111658.832167-1-jbrunet@baylibre.com> <20231222111658.832167-4-jbrunet@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6rb4fnput74ewssa" Content-Disposition: inline In-Reply-To: <20231222111658.832167-4-jbrunet@baylibre.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --6rb4fnput74ewssa Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Jerome, On Fri, Dec 22, 2023 at 12:16:51PM +0100, Jerome Brunet wrote: > Meson8 pwm type always has 4 input clocks. Some inputs may be grounded, > like in the AO domain of some SoCs. >=20 > Drop the parent number parameter and make this is constant. > This is also done to make addition of generic meson8 compatible easier. >=20 > Signed-off-by: Jerome Brunet > --- > drivers/pwm/pwm-meson.c | 19 ++++++------------- > 1 file changed, 6 insertions(+), 13 deletions(-) >=20 > diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c > index 2971bbf3b5e7..ef50c337f444 100644 > --- a/drivers/pwm/pwm-meson.c > +++ b/drivers/pwm/pwm-meson.c > @@ -60,7 +60,7 @@ > #define MISC_A_EN BIT(0) > =20 > #define MESON_NUM_PWMS 2 > -#define MESON_MAX_MUX_PARENTS 4 > +#define MESON_NUM_MUX_PARENTS 4 > =20 > static struct meson_pwm_channel_data { > u8 reg_offset; > @@ -98,7 +98,6 @@ struct meson_pwm_channel { > =20 > struct meson_pwm_data { > const char * const *parent_names; I suggest to make this const char *parent_names[MESON_NUM_MUX_PARENTS]; to make it more explicit that really four entries are needed here. This also makes is unnecessary to add the additional NULL entries to pwm_gxbb_ao_parent_names and the other arrays. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --6rb4fnput74ewssa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmWw04sACgkQj4D7WH0S /k4MBwf/RJ2RnPMTRGHy4+MlxDEmIhRVYEzgGL1RRFV939kzYtusENpZpGIQ2mXu E60HnA+QkB/q4MoAFSLk81DulYhW3fIn7AURwQ19rdCtgn3d+7zGnA+G+JiPmCXx I0jHMlpak+0iexEcTDeahUHixs0DrxD1/kG9eTtipV17OZuBlTGyw8QDqcHAKFow 0czC72kNUxlOp/W77jS0V367u/onArkMSIOh1N4JZ+yNX0ZuOugc18RD0wU5eCo3 FASi7J+U/zZaBAFXeS2BXMrq1bLMjBmrc6dDGoNusqCD/YGfTqxQKmptwFcHWvQy huYzkvDx8jvj6TmgK+i+/+PjgTV9ow== =0D4C -----END PGP SIGNATURE----- --6rb4fnput74ewssa--