Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp367501lqh; Tue, 7 May 2024 01:15:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0M+L8WYYSnaXZi9Frl94pxJS3N7mcen6wEYEHNIeDKg3J5h+CT9ZsE8SQznH7iwNdTGbsVwoWLNT6RsF0HqFBn2rxoMNABtZgOtPCoQ== X-Google-Smtp-Source: AGHT+IExeSHroXZ44RcEXBqAIz9Fn5yUWBkRvQWEbXzi7FN3mAokm3A/XdzssL5dblPgSexJr+zE X-Received: by 2002:ac8:5d11:0:b0:43a:b66d:1a67 with SMTP id f17-20020ac85d11000000b0043ab66d1a67mr3393995qtx.29.1715069716399; Tue, 07 May 2024 01:15:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715069716; cv=pass; d=google.com; s=arc-20160816; b=AN/FEYCcc+H26bYKkvi5bIv8AWLuIas/5XNMURuq71yrIX/UAkq4I5VWiIldz7selB rtpj2Dd5KSDNKFL3L7N8M5ZmLu3sMDP2nHTNsGUdq2e+D6YWyC946HDOVMDuR+FrF9DJ kweRbivCpbGuzmlMXE9O4fTgsYFgfqLv41dGi8CNV2MbwVUZd8OXpVZuQn4y01Aqk0tK qm2fEmoyxbNmzI/VdoOxgKNp/guHJPmBk3EHMILGc6EVuGVEVxkYBRsTtziaqEtIQw7E frAWqTlil5QkTBuaPK1XkVRbdCwHsiNUwPL/XpJoOEZVGMtxFWk9AVGzp+QPQPdOAXqA RyWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GqO/eiCLhjMrDJZ/oHlF6w3tQ/HJRwHOeX5fd3lD2/4=; fh=7G65G6Lo+mimkfJmYup7tjgSNWkru2z7ILYstgGD1Wc=; b=dp3v2exazsYVV+Fn75I7HBgqbacVVUJv8BADCEovhMj39Jq5BjXJmoBvTyyf5fLM9P ZBXg0H9PCp1o5xCiURefm/SlUL6fq6WqCuGXX+sU8zLRr35ribtZyOw+Bp4nohTV8UnP hH7/bMS9epiRJ/ccmXnMFKqYaADYTNsR0hQWCs6b3dqZgk57uzf0CSrfx4XoS/4K3eDv ZT/tuLBoKtP5nq7hbS9hozplTHr6fnxuHDqtlqSx8ZZ762vwjoKU+adTUYR5IDqZX0LT DUdo6GU8krdsnJVk/1ONUdT5gaB/DrUH3ln0oP/9FQTRmRTzCfG5VgkdBLzZJwcwuaSw ebVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WiaqiOs4; 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-170857-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170857-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 w14-20020ac87e8e000000b00434d6337df1si10116082qtj.580.2024.05.07.01.15.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 01:15:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170857-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=WiaqiOs4; 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-170857-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170857-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 255ED1C230B8 for ; Tue, 7 May 2024 08:15:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 953AD13C9DE; Tue, 7 May 2024 08:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WiaqiOs4" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 6627A13C9C1 for ; Tue, 7 May 2024 08:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715069698; cv=none; b=JTqIXgPq1EFcwnyYx8C2sw1Pd4puemUEZLDGCSDlh8AxXXtDyKYj9PlE56mEyg3M5g1DY6qHAGTtqx2GUO0zGFgPfNcoXbP+Uj+2Z1LQAMr8dl1rtg4PEKwnc4prvVw4WBmM4k9eidDgRj86PacD6RI8aBz1A6SdpIdoc5GAJBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715069698; c=relaxed/simple; bh=aFQgo/ziy0W2y9xqCxx31ymI6sX+uIn9KFqYXFLiQWE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bMKZPCjFtF7MyagJ9CnuFRtGVtTFpczDwSPnPtpl1DQiCWj7D+y5l5BeMXiWzFD1pxVCSNlHlAD2UjxyhVzcYPzxuiQ3RLvYiYXOtQI4m8hKar2ravFt84lwQDqDURy3/M/xuMCsgMOSMKKtYA332B+3pWkVs7vwTVfg9WlYMDw= 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=WiaqiOs4; arc=none smtp.client-ip=209.85.210.181 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-pf1-f181.google.com with SMTP id d2e1a72fcca58-6f4603237e0so1607464b3a.0 for ; Tue, 07 May 2024 01:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715069697; x=1715674497; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=GqO/eiCLhjMrDJZ/oHlF6w3tQ/HJRwHOeX5fd3lD2/4=; b=WiaqiOs4w0dmyeF0WX0eWphYt4SUnUU4pIl3C2onmoAY8S/2+tHY18nBKQraXLzcIE E50OFNdm6XtlUTOrXANbh770kdECAPyJowHDoS4NDH+qyVd8YTwLr/pZoLYe7oTZSe2w lGPQ+lxGX+ZrCmk1Rr8mRdBP3lFTYSk3uvXJ9JUQT6VbmXkRLJC70PU3TuwLgZ0drLsJ z+uPjIPOtshmkx2yFNu95N8EoiYmdob3eBSQnMED7OXVEAsi8TJ70T41y6GyRcdqNlZ7 SJmLkGO4BcTi//xa6c/QEhS35bdgK3Fl0h15EM1kKTXXQPXT/8xIfFt9+KSxsyw+MjwT jSgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715069697; x=1715674497; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GqO/eiCLhjMrDJZ/oHlF6w3tQ/HJRwHOeX5fd3lD2/4=; b=EZPHWU+ZzzNqbTrUdUYOLrW3CReO71SZr9j0h8BguNhRNgxcTTOKxQpUblPMHR2RVC aHTS1v1+RMwetcrzvz3C/qaObQglSRfE3LPujm+UygWJJqDEN05dwDi+F+NWIdnod897 XEarLAwhEqfYDNJsHTE76AqBz0tI9EfFRpd+4KJXHb3m0XcV7GhuMerqqZ3UIUaC949o Y38E4SP+Ntf9gQ+PK7Ry1ImiSN3FO77OcgdGslQUzg80A5eY9SubOmls0TpKOq6uB58/ GOHh79AQLlfCVRcDLE7G3IP1sCtvKBfPaO+YK7xlV+CV29mDIeOUW+6ii/Y+Yms5aNIq 78LA== X-Forwarded-Encrypted: i=1; AJvYcCWrWkSIkca4ltXnPW5cr3AuCW1wH+H+6grlD9L85Eg2wZUKEP8mQ4B17StS/Sg1p/gtI4QqP0tt0Dm7QCeeUbXmzg1riauDDXJee17y X-Gm-Message-State: AOJu0YwjNEUUI1HMIO9wuMCDj1vNTSgupp7GQBOKLljxxhybukfQU/tO 6IL+0Gw8c7KE5xcyu1y0nWyoHKULQKaFkuvjl9KnnVl8mcrIdJ0cvR0e/5gESg== X-Received: by 2002:a05:6a20:3251:b0:1ac:3d3c:c1e7 with SMTP id adf61e73a8af0-1afbdca8a39mr2746431637.12.1715069696505; Tue, 07 May 2024 01:14:56 -0700 (PDT) Received: from thinkpad ([117.213.100.197]) by smtp.gmail.com with ESMTPSA id u34-20020a631422000000b00600d20da76esm9156572pgl.60.2024.05.07.01.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 01:14:56 -0700 (PDT) Date: Tue, 7 May 2024 13:44:41 +0530 From: Manivannan Sadhasivam To: Linus Walleij Cc: Andy Shevchenko , Frank Li , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , 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 , Krzysztof =?utf-8?Q?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 , Pali =?iso-8859-1?Q?Roh=E1r?= Subject: Re: [PATCH v3 4/5] PCI: imx6: Convert to agnostic GPIO API Message-ID: <20240507081441.GA6025@thinkpad> References: <20240429102510.2665280-1-andriy.shevchenko@linux.intel.com> <20240429102510.2665280-5-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, May 06, 2024 at 02:10:24PM +0200, Linus Walleij wrote: > On Mon, Apr 29, 2024 at 12:25 PM 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 = asserted and 0 = > deasserted when > using GPIO descriptors. > Wow... So this bug is present even before this series, right? > Just delete this thing: > imx6_pcie->gpio_active_high = of_property_read_bool(node, > "reset-gpio-active-high"); But this is just a bandaid IMO. The flag for the PERST# GPIO should be properly set in the board dts as per the board design. - Mani -- மணிவண்ணன் சதாசிவம்