Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp361573rbe; Thu, 29 Feb 2024 01:31:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUayUz/0ZGoQm9GBB540FHx/vIj4lEw9slwNn7o9/BuOD4tpjA1izcQk/cwPSoCPq3p+6Pb8JZ9L9vFyuC3sy1g7+OolK3EO8vbaEzGnQ== X-Google-Smtp-Source: AGHT+IH3SHE1eeK9mmk9twzKHR8R/emjv09h8s2snVajCSnCGTjPDQuF9TxqOBninEX3Aww83bX1 X-Received: by 2002:a05:6a00:93a1:b0:6e4:f25e:76f6 with SMTP id ka33-20020a056a0093a100b006e4f25e76f6mr2167172pfb.3.1709199062682; Thu, 29 Feb 2024 01:31:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709199062; cv=pass; d=google.com; s=arc-20160816; b=qOM4VvTwqaRxopZmdBfCtF2BUBV5DR0p/nAGZR0ZZzk7Jk+7DUI3YG1Zr7kKWB+qwm JBeZtY45vx79gggJZuGhpnbtIkkvXvZdhJyQyg6Kb36PQtGLvuUgqeFhH5DgMM34aTt3 9qo5LxLNVpdPFTSUnf0uSVCcAbJHipBHJKoq6hWhSlvTJyO7gILtl6vT155IS5K05B1J yH63SZtSAuBne0TybNj/aVT93/8AijcNVvzGFWYqUpuFhJ+tcE1oeYGwTrn7+JTY7uJ0 RgNiyn6Oxu9sT7qQkjlX9EOubEhq4u0L5AmcYqDQh41+kVB7ctdBn+elwffxu5xgs0Hu n69g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=acHOjUiE9FcyTIji+FDfgzffemwW9Cnt/rCI5e+Lozw=; fh=Di/MfTMHZZItuxJ6wwh3NWP27cUXcWLJNDM3ZQN8Mlo=; b=oNJl5l/ER30HvX7nL73vIGssQXPSLPxG3/AYDf0DJsbNYkuBIdtJM8MG8thpUJzfp0 jlhuXRqlIdyifEKiOEo+8uXQlYLcQrAE5qBYmh75Fxj/na64UZNi0J3nedwKtsvcpWCi 8jzfN4kusOvSW4/N1pR7515DN/79wdrVlu7uW8RlgfiTVkrpzUUiGBdRaPHA4YO5Itsr BqayPVn71rKvdPww6r49ChVHyaiY5YOG3rK4sMSeezyHVwaEfEIeEhpI8a6aCAt4gU80 mfYSVZMN0FHVHsjAFuEtjaSjWhX1ZmJrN3W9e+Gx8HybUoNLHtDaziLsiuxAykPZYFkw GkOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=skO3Z3ES; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-86404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id it2-20020a056a00458200b006e56b9d8eb4si939408pfb.84.2024.02.29.01.31.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:31:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=skO3Z3ES; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-86404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7332A28C99B for ; Thu, 29 Feb 2024 09:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 447F75A105; Thu, 29 Feb 2024 09:24:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="skO3Z3ES" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (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 E22BB5A0EE for ; Thu, 29 Feb 2024 09:24:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198655; cv=none; b=j/5cSiH23ogbdooPSGS0GQlymuHOZl6zRhOOaU5rMkVDU1nabJ07wNnCdTZT59Rn6+0kssEFbt6TOCvIp2OrwgDkRXKFN0R5Qr5pjeLyI103PPrmLEXLdoC/bnPxjlbOrpyM8Fr9PuiR3ww6ykWq024Fo/sUZnMsLaUjjgtxZfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709198655; c=relaxed/simple; bh=acHOjUiE9FcyTIji+FDfgzffemwW9Cnt/rCI5e+Lozw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jBQE4+fB7G1SGYdF18cv6is2kyJ1hH3dL9KyxmXVqB++jEanlG9mGwnCW9xEHHpWzp4Nov08P2hC5nzbJ5q7pPQSxcchcz6sV/AlUhDuFTRbrKqRZEHtfMxFpHHL4jI2VIRbzTbel3n/vsaACg4EXagjfxCgtD/3Hs9ceHrYnVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=skO3Z3ES; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dcc71031680so652866276.2 for ; Thu, 29 Feb 2024 01:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709198653; x=1709803453; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=acHOjUiE9FcyTIji+FDfgzffemwW9Cnt/rCI5e+Lozw=; b=skO3Z3ESPncq3Vthb3+r5exm/XuSrp6A+qR2s5irtnvnDWUm5nE6KuFMEUclWl2Q/j 2CLDojI6Bk32/F6itPCKktSc7D0rAend5rD7kom9GnaWJ2JtwRNfYCAjrFY8ZCh1oBR4 xqO60nNKbFwmuxviTCgzJ4qGdX4A8dow0iB/o6khzT2tmG/+Nhm006+1TrPZSzLZzyo9 iezC1RLtV096WW7L5yp7Lg8z12E1b0o2t4MwGZdeiXHqDsUmaW7mA5hWxLluNhZLCI5h I1YNSwE3AB708JSOJyROvVyOeqnaN+c7xg7CdpWYVJk9j+Tayp1Wq7bs9X6JOdJ6y5XQ 7W8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709198653; x=1709803453; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=acHOjUiE9FcyTIji+FDfgzffemwW9Cnt/rCI5e+Lozw=; b=JSREvoBI7Sl/PaLWzrywCbCj3bYx1aSPuEQg9w4tTyFdOJC6lf1xyY12hYCBg8B36B nVp2WW272zCgeiekhVg1RMYa2cuz89VXG9IRgvVJdWWjfCunzXsXjHooN24BEEaoN5nS AZkGLyrSfqhfleZD7FqKEuAamKwNv6vxg1SgZJ3diTnNfH43qK8oSG9+5FcJYhF1go0z 1LdqVBTjm/4eenDxpRwQTRhdl658LANdsNk88+yc0n8PIG5Dq5Qcjb3dALMFGj4h/eT+ vCpCeKCe8Z/E9+SGF7t+UaZAcRf/uv2CvwaTxjCiyhpNRF+uLrNHyL4cCpqzhXkQU6Im lZbA== X-Forwarded-Encrypted: i=1; AJvYcCULhBUJYsk7eljWVYJNE0SKv/Od5m4B89I7/VB103mc86SnnOLmHh5chBbG8ww0JTc4LoRk0jpDwFm6QAQq8rFsFHc3CuN+BX9XdV7Z X-Gm-Message-State: AOJu0YwNQiUGlYKozfctVjg8aCShE8GaGaDMBd8XX2S02QBvZq7Sqxp2 MmBFVOH9mwKYXkHEP+Zsk6UKub5gff+PtCRNzyCXZR6w4p6Ymid0mA7/jLXFvtL71Pju1IsaLv1 YFiQsTUF0IJPVnhr52DW1S+FmBhndYdjBePL7pA== X-Received: by 2002:a25:8451:0:b0:dc6:b9d6:1542 with SMTP id r17-20020a258451000000b00dc6b9d61542mr1619157ybm.48.1709198652964; Thu, 29 Feb 2024 01:24:12 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240228-mbly-gpio-v2-0-3ba757474006@bootlin.com> <20240228-mbly-gpio-v2-6-3ba757474006@bootlin.com> In-Reply-To: <20240228-mbly-gpio-v2-6-3ba757474006@bootlin.com> From: Linus Walleij Date: Thu, 29 Feb 2024 10:24:02 +0100 Message-ID: Subject: Re: [PATCH v2 06/30] gpio: nomadik: extract GPIO platform driver from drivers/pinctrl/nomadik/ To: =?UTF-8?B?VGjDqW8gTGVicnVu?= Cc: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2024 at 12:28=E2=80=AFPM Th=C3=A9o Lebrun wrote: > Previously, drivers/pinctrl/nomadik/pinctrl-nomadik.c registered two > platform drivers: pinctrl & GPIO. Move the GPIO aspect to the > drivers/gpio/ folder, as would be expected. > > Both drivers are intertwined for a reason; pinctrl requires access to > GPIO registers for pinmuxing, pull-disable, disabling interrupts while > setting the muxing and wakeup control. Information sharing is done > through a shared array containing GPIO chips and a few helper > functions. That shared array is not touched from gpio-nomadik when > CONFIG_PINCTRL_NOMADIK is not defined. > > Make no change to the code that moved into gpio-nomadik; there should be > no behavior change following. A few functions are shared and header > comments are added. Checkpatch warnings are addressed. NUM_BANKS is > renamed to NMK_MAX_BANKS. > > It is supported to compile gpio-nomadik without pinctrl-nomadik. The > opposite is not true. > > Signed-off-by: Th=C3=A9o Lebrun Patch applied. It's good to get this move done, then we can iron out minor issues to the GPIO part in the GPIO tree as we move along. I will send the patches to Bartosz with an optional pull request for this immutable branch. Yours, Linus Walleij