Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp364941rbe; Thu, 29 Feb 2024 01:39:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXpr0MmBcII7YRGNIRe0KztzX+3omch4ezkU/2wTr7jUL5DQ502vZ1wZPuqRj/dpp8dGSCAXwaKJadGkm24b4aH3dJ2hiBeGbksEKusBw== X-Google-Smtp-Source: AGHT+IGXeNnU7L56mYxWnaA9wOKU2YZmlkQEAuimil2FnClTrUUk5T0E2cprbeMmqQViOKlW5fLp X-Received: by 2002:a17:906:27c9:b0:a44:2b:cdd1 with SMTP id k9-20020a17090627c900b00a44002bcdd1mr1108192ejc.27.1709199553523; Thu, 29 Feb 2024 01:39:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709199553; cv=pass; d=google.com; s=arc-20160816; b=vwLQNGg1ZisQiF0zcBg/wRIded4aSyc1kwrVZtwQkp/n8937I4f7338u6xbAL83u44 bAfBv2XEr8QhMCQgUl3UuTSrD8URWPjZ4JIrHmuaIhBsRwJ8zdBhrf6hUMhvJBZNu/8t y5Q+aqMAiRV5o3vvEOOIfpd8cDNs+Wzgus2HtqRbk57SM+FeR723DVBm2sNH1mCMFVIB ntY+Gi7+eqwHuXaLd4iofmI4sndxYsnoC3T1KQRfEIxEjjfZn9Knu2aWIKv0jnB3iKer /An3B44ir/f3OTWf8BBTSkccRb9fyXeU3GigzaHcKU8n5GUdhoFz+JX6Xfw9HQLsShEd xHDQ== 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=Id/0hLb1OoVGa9urk2OII9ZHzTzUCiC9fqBjkpo4oTk=; fh=rYjfNn0VKM252xs1YhPLdk9sd1KhAxe1K0uc+WQ0M/k=; b=HKPtMJ0ipunYPNI7XYWvZA1Rv91Lydlzj7rZFTLxgz1jWFS48XpYvgYkXYb/iPbepa 8cR/VbcTNEx+Tbjl+PxvbGOXOcioUSxpOpynBAr+cs/0bIoB1MtH15uEcezSkwwAbFt9 +BxHwf3ckLpUYeCezzvuFH5L7AVOhZHRUgIgarhNv3fXL1jOro7hWGBlUCRVhcC8QhAU yRsbo1db7pAp2qMCW46lQcB1Hjwr8HbZoGOjeiNxQIY9KCBkI7g3Lqw7QYyorLt/QDBX ROTncnLHnlacYBo0bp7Xc5Y0XgyUVEe/C2lEmNuetTeYuRAxGDRLnyf4hF5Sz7fm/Y46 Orpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sMAZZZV9; 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-86449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a17-20020a17090640d100b00a4436de8264si426456ejk.794.2024.02.29.01.39.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:39:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sMAZZZV9; 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-86449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86449-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4CEA81F22888 for ; Thu, 29 Feb 2024 09:39:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DED126089E; Thu, 29 Feb 2024 09:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sMAZZZV9" Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 1A4C760875 for ; Thu, 29 Feb 2024 09:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709199546; cv=none; b=qNyAnvey6ZgktOTkZ9KHxT0BLwq64LVVkRH0uIhKgTlLs5Q4WhD2JXqOSSH7atHv1c401uFrwtQnDwnWoUxhaYRb+Rxx+sndOLP7GLyWFrgOlY05kyKx1qWQq2hmp54e+qJWzWW5SUKCo2HQ0aD/r5xujcv+JhJ1BIiGeYd1prc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709199546; c=relaxed/simple; bh=Id/0hLb1OoVGa9urk2OII9ZHzTzUCiC9fqBjkpo4oTk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Apm21gcNceiDrYSrBierzu9tT23Gz4W/kyAu39+y/pmFAwPC/FFlpkhByeCymWz1IVq8RZwC3iGVvgjeDIrIxepscG1185dNhwD9pkLQV9f2sutissi4oZj4bZCFIIs9pUVzk1Xj8NM2EOjpuRjhhT2LyHHd2/gwHRgvFqiT1Y0= 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=sMAZZZV9; arc=none smtp.client-ip=209.85.128.169 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-yw1-f169.google.com with SMTP id 00721157ae682-6087396e405so15177297b3.0 for ; Thu, 29 Feb 2024 01:39:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709199543; x=1709804343; 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=Id/0hLb1OoVGa9urk2OII9ZHzTzUCiC9fqBjkpo4oTk=; b=sMAZZZV90iPYI4/G9PGJcTNCCMvv5Qd5Fcc8Oegz654V2iHCOAvmzhvHLmVmUHUM1C jjyQ0MOeoX/csV6JLIxyt85OZa9kVEizTi1jw9NblPqmOlxcbEwX30IeRfY6J9IFIawA AbV+bcXUiJD9z8nn6J/VpEfUMBanERNJjGQ+YeH1sLYoKet6NPi6pEL03YUtgNeyyfos m780tFibJOfT+Da2Z5wNZlCQCPhUToDXgig+2tqJvzvOfIqUghowkXm30w6UdRI86dkG vDpGNc2Tn1wtjnEYAkQgWkCeMlYgzJ7BVSUzlujOb3R1r1QQBaVdhvSenerGvD/usYQj a8DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709199543; x=1709804343; 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=Id/0hLb1OoVGa9urk2OII9ZHzTzUCiC9fqBjkpo4oTk=; b=GykN3slKHOTabb+Z8VHOtvZBMG3FgaOg/936kk5oe8j+I/dTC4oI3fa7UIamXBOFLR bO1WhDhVN6XukJIBn7Gv/OmjBRJQUuRM02RG3f2Qv+QuDGAcXh2Qh6oVY34mTEN+d7me 6HKlTHwthwNaRD74lZbIp4p2QKrn/EqsNQ855aHFhVk+R8nuhsyyDUmSTzZswahmTVX7 qVUC0lYEXP8N2vokfKp65eAlbFFlyysOEE9hvN3D4OgxrH1l0Y1EyG6HoFxz9RNVUNH3 F7G/5wR8EsTFPL0wQKcJfzjMKgxVmLL3bHFUFZCnvME6d3n9jtcmDMJy41/JslAWZkTF mnuQ== X-Forwarded-Encrypted: i=1; AJvYcCXsSTsd7ajL83L2bIPMzTk1146+oCS+ob+ZCAYaFdNigk3Z5FbgAJs5NLt15Zs/J7sKBgDSI4yQW505Vxgrf+68rq9n3KRjAPgdzy57 X-Gm-Message-State: AOJu0YyIHFnoVdNB+gowU/ocbqA2o6Tb0mpm/2QDX/rPAmKjgTZLeiuz pTAzalEH0exF8K6hVzjbj3LQgbf+s5DlWM6nZ4/smIw0Q3pzgAT2nlwZdP94yNf3DECU+GrvqCH I3+UmJM1qnTtkPUQDVkCrXf9wpFXQuzNUZtfmcnWWqaMvFLiK X-Received: by 2002:a25:8308:0:b0:dc2:2d55:4179 with SMTP id s8-20020a258308000000b00dc22d554179mr861584ybk.17.1709199543032; Thu, 29 Feb 2024 01:39:03 -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-25-3ba757474006@bootlin.com> In-Reply-To: <20240228-mbly-gpio-v2-25-3ba757474006@bootlin.com> From: Linus Walleij Date: Thu, 29 Feb 2024 10:38:52 +0100 Message-ID: Subject: Re: [PATCH v2 25/30] gpio: nomadik: grab optional reset control and deassert it at probe 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: > Fetch a reference to the optional shared reset control and deassert it > if it exists. > > Optional because not all platforms that use this driver have a reset > attached to the reset block. Shared because some platforms that use the > reset (at least Mobileye EyeQ5) share the reset across banks. > > Do not keep a reference to the reset control as it is not needed > afterwards; the driver does not handle suspend, does not use runtime > PM, does not register a remove callback and does not support unbinding > from sysfs (made explicit with suppress_bind_attrs). > > The operation is done in nmk_gpio_populate_chip(). This function is > called by either gpio-nomadik or pinctrl-nomadik, whoever comes first. > This is here for historic reasons and could probably be removed now; it > seems gpio-ranges enforces the ordering to be pinctrl-first. It is not > the topic of the present patch however. > > Signed-off-by: Th=C3=A9o Lebrun Patch applied! Yours, Linus Walleij