Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1343194lqh; Mon, 6 May 2024 05:10:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmUr5gdHnKXKuuSzcPVszg0u4fi+gub6lbenbu3UQ1Ptq1msJbfsB8yS+HOaLsJ9FD9+yHn1Kry8G4HkxnZePVT2Ov6IvitXQjvaDr6w== X-Google-Smtp-Source: AGHT+IHG7AKeylJnUt3cXy0LudOyCABbWCP4XtAIudh4zGPNzVo5+D+6061rYpcdPsdSHImXr/ET X-Received: by 2002:a05:620a:208c:b0:792:9b62:6629 with SMTP id e12-20020a05620a208c00b007929b626629mr1870239qka.0.1714997446326; Mon, 06 May 2024 05:10:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714997446; cv=pass; d=google.com; s=arc-20160816; b=BZpYxeJG8V+L+PiFLQR1NdcoUbHw3GiFo/psqI20Z0Bd+J/pGPjH7KIMccNi6ZgOXm IUkNQyKvBLTaS2O35wIlVQAuIE3BKNEGxVDvKXKigILYevAAN81S0UOhtAIKwC3mhBgi rIM+xS0YQZ0hsJoRZpjSAOuubjqPNRVz/Dv3EBlikAc/iYB7hJxxhbHFPxkoo/eeuqQk OUoL6eQ1QUuucgKAwNIq/t9LB4AF+tob/1OCPm72KZsjiDFUIBBhyGN//B4mzEnDi2Cc /nQ9/dX2iXUugvLchxQRwUXup/WTpncoSoI71Oljcy3pv99YG5NBkqdmhOV0UnNNEh/F TcIQ== 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=83bq6sZnjWOAj2QjLu2jyQop5vm1yVH5pagOdWkdqQE=; fh=EI1iPyxmdhnngg842/sHySTCR0dQ9K9BO1CeAmD12LY=; b=pMEkff4OcFxBPidy42i+zp+PR4chUNhv86FFV5oAvSEjny1w6wPQueeifBYZ1C+qj6 UDrjnUWsa7fNCvyRDlZcuXaTL72tRtUkiPrYvRV9+CEBivXL0xyO/E1kW9Tn/BEJL32p wJIn62dyAyV7zxgXozisl+y3icwvgr+U2+gDlLp1br9vp51ljor/uTimE16yZoLnx4rb dSQKMvTtsuC/gyhLTcsoA/pI+OtyeJsqt6jjNBF2cIBVIPcxSL3W8SMpDJh2etBrjgI5 zkdNH95ygQ8+OpOi8w7ahnk9qB/pIn1ykOIYDSPKkkmsmymnH/dqy09FAtE7nH8Lu7JY AL3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jD16USvp; 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-169774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m17-20020a05620a291100b0078ec6558098si10259785qkp.48.2024.05.06.05.10.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jD16USvp; 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-169774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169774-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 109A81C21824 for ; Mon, 6 May 2024 12:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38124143C49; Mon, 6 May 2024 12:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jD16USvp" Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (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 CE67E14388C for ; Mon, 6 May 2024 12:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714997439; cv=none; b=E7pGxZjmoBRZTXrWAymnpJrCNJValOTSvyGeUHjUDhK0F2MCarr8jN23/N7A12etLjmiOxThcGgOtp2XREzadzEzeXCIQKg+BlxdVBh3+9I6baf6B7ahFdttZjIwHah/0eR01yAj910fUk6tjmLmyWrjgxhJFKjvTGs5nGT1FKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714997439; c=relaxed/simple; bh=NpCD5T+l+gGXtsoL7GDErBmJ6/RrNy8hQRbP7mriCTk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=l/TmEEpLpedZTupjzGKCCEi3roQalrbqJnjsVHLbOpFoxfZS43TvJum9gweMl51fPa108CsOL32mSr5d5fdVqpT1+JPaDesyg6/v7feqKiYStAZQK3Mcd7U1wC7JeEMFtkVzjJXO/yXm9PySNTbNoAq6vTw7RjR5GJBm63HKuDE= 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=jD16USvp; arc=none smtp.client-ip=209.85.219.177 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-f177.google.com with SMTP id 3f1490d57ef6-de603e3072dso2029404276.1 for ; Mon, 06 May 2024 05:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714997436; x=1715602236; 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=83bq6sZnjWOAj2QjLu2jyQop5vm1yVH5pagOdWkdqQE=; b=jD16USvphZ+hFQuuK2fEDANCQqnDoaaVEQVpWzQj5VW66fA8hloBAr3cfWcwpvzZb3 onMm0sVD6YQZ29cnRrkoO9vx2Q+dS5xv3OSmO/Hk8GS9b7PjxI/DPAT5Z3WpUEGo4Sz9 JE74lVwr8MNbSRbl3W8+0avV85YquyQmXJgybHbPxfPJo0/JmJwOC5xpkYQat7RvDG4p 38m9N3pHZF4eFkAnlUf8hKPrKNcV3E+8GC2SVYl9ySF3b6dHh1d/Ue7oGc3sVqgV+88o ADmyRzamrJ1rw3oPTJqi8m8vc/Fg8nkwx03RYEWn0v9BdU14p/v7IOYXFo95xnFTdh8R sLfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714997436; x=1715602236; 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=83bq6sZnjWOAj2QjLu2jyQop5vm1yVH5pagOdWkdqQE=; b=D0q2O8AQBRR1wmtRN3DKycln+0QGTRYh4p9sYSPgzrakRsBQxgZClyt0WxWP6haCy/ yYf08/wJu6yY2Z/Uoqus0uksINrgiWjy0rQeF15o+wirzar59XGgaDbcmAVyqB8LQ2KZ 9bHB69F1TzVam2bmi+kwlrIO5Jy0ukhgpaBNauOO+3s8PAY41cSyz20CCvRhfiRgYACk P5N3gPlleu+qZ5KrAFC67+Yqjy0lJeU0j8snLk6hC1fk26aRZivwvZCzzdhiE4Ngdu0R Cm82DXqJ1Fxe0tFeHnLe0NHyZK8gPAOB6t2rPcmr7vgDY5fgEr3hYu8xDLIkuzwLdDAE JfAA== X-Forwarded-Encrypted: i=1; AJvYcCUHR4RSdQelGNnZjoy9mOgfQxU1dbul9WQaRvz/aComTovjctHjGlgGIJxrfwrZGp+48PLWUYCLEXhy5cgJrb/UueYIxclniQu2+GG4 X-Gm-Message-State: AOJu0Yz/hnXej3Z/v/F6vAyDM2BANpwsrw363OEp/wi/cl4C6/svCKV3 Go9NqIk3dC/d8k965GY/l547ytwx9bOY98sL75//chBCKcbd8ZDQNXjXzvSaJLaS6SiwIdMBfCG 87Bvb/xHYsmCAzrJH9ec6ty35HfGrVj2fEXZ2Pg== X-Received: by 2002:a05:6902:2011:b0:dcf:2cfe:c82e with SMTP id dh17-20020a056902201100b00dcf2cfec82emr11080008ybb.55.1714997435752; Mon, 06 May 2024 05:10:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240429102510.2665280-1-andriy.shevchenko@linux.intel.com> <20240429102510.2665280-5-andriy.shevchenko@linux.intel.com> In-Reply-To: <20240429102510.2665280-5-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Mon, 6 May 2024 14:10:24 +0200 Message-ID: Subject: Re: [PATCH v3 4/5] PCI: imx6: Convert to agnostic GPIO API To: Andy Shevchenko Cc: Manivannan Sadhasivam , Frank Li , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, Vignesh Raghavendra , Siddharth Vadapalli , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Yue Wang , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Xiaowei Song , Binghui Wang , Thierry Reding , Jonathan Hunter , Thomas Petazzoni , =?UTF-8?Q?Pali_Roh=C3=A1r?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 29, 2024 at 12:25=E2=80=AFPM Andy Shevchenko wrote: > The of_gpio.h is going to be removed. In preparation of that convert > the driver to the agnostic API. > > Reviewed-by: Manivannan Sadhasivam > Reviewed-by: Frank Li > Signed-off-by: Andy Shevchenko I think there is a bug here, the code is respecting the OF property "reset-gpio-active-high" but the code in drivers/gpio/gpiolib-of.h actually has a quirk for this so you can just delete all the active high handling and rely on 1 =3D asserted and 0 =3D deasserted when using GPIO descriptors. Just delete this thing: imx6_pcie->gpio_active_high =3D of_property_read_bool(node, "reset-gpio-active-high"); Yours, Linus Walleij