Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1456043lqh; Mon, 6 May 2024 08:13:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7CE0vnY/e52Zq//50BAZ44teybHuCzBZqsRqE0GG+HOT5jG3LwmJ/YpBkn+hse9fRwFkuxnk0v92EGVm566fVZaY8xa0qj7XLzrhc6g== X-Google-Smtp-Source: AGHT+IHfRINq38BSAKt83l7fKLCLjkwbgtXJVG5KagK0okb0wnySEAMdV+Mtetaur9Q3n4Sxn1MD X-Received: by 2002:a17:902:ef46:b0:1e4:9616:d967 with SMTP id e6-20020a170902ef4600b001e49616d967mr12896420plx.15.1715008402685; Mon, 06 May 2024 08:13:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715008402; cv=pass; d=google.com; s=arc-20160816; b=fIU9xx5bzlAjBu8FLKseM0olAfSGSpqA8l8LSSmWRpwQAkHbZA5lswc0Qmm/x8arVD 0XlzI5JtDiAKjjCU7Y/NEapcHISd8C+0VDd1/sFm2cR2htxcnBzMiY8yr25rY9xjLpHC eGeDrF+bRx3g7PCeF890Z0B+VTghxAAmzrNukdP5edYjHWGQgursJQ7IhAQNpW9/C0Y6 D0AAPD4KpHxAn8LWfSZ8KDfd7Mx/n4RE9AROxm5+nEHXZ6xt9v/2jR2jlB2Kyao+tF/G aBOcs00VK4vMg8SSA3Bhq9J9GuTdl6vFrCfNvz30xsMv6eodwR/ohRj592Laguxkw19b 3UHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=2rSLxmD6o899R6G9DyZtKlA2AhyXdtREEh2KnBeHo7o=; fh=bF5cItvGwoGE/5UsqjlvtwtbwqhJcJqUoxCbSnV7+uQ=; b=GFU7RqDiUivvY91Cfud8XprbkJ6V2rvW1YqZ25tI41KEovLWPpMJPrnHmX9XIkJj0b k6gnsKZ/aWgAhMlDPMYiV0VGuNIsngPm/W1+fYDUMI18OtLUbew8QBjShVAcCcHb4jVN 1okFudI7FjWZOJXv0FzrXhWNdvYxShsitTchdoOyKCuDUGVPHXL9aui1ixJ2G7QSXYf0 4GaV2d7gLMM2r02KsX3MIdw5PnqXWKokL8dAlrsAUoorT0RIBIEuZmP86eNgDtW3BdD1 DM7Uj50Wm11pP0hvvi89xCYhl839E9QQkoEUOQn2UUDK0Z1VCvZ//AJ2o5Idd6BUrpnx sB5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZCvgzkq2; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-169808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h12-20020a170902680c00b001edb3889422si3801655plk.321.2024.05.06.08.13.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 08:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169808-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; dkim=pass header.i=@intel.com header.s=Intel header.b=ZCvgzkq2; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-169808-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 EE4DAB25986 for ; Mon, 6 May 2024 12:26:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B524143C79; Mon, 6 May 2024 12:26:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZCvgzkq2" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 238D0143C44; Mon, 6 May 2024 12:26:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998368; cv=none; b=Q002/L4pmiYx997PeZVbZjPnUm/aFVmisAjm4LDa/NBpSLWrLhIJHWiHWhZSGaB5EdjqiFDGyYv+kASaFwq4d7uft63vosPuw80+BVN4W0ak0iMVzb4H1fZb3nKRvSqeDAVHOPtYCMYbA2PrG5n9NnAbSnmgg3svNWbGy72MT5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998368; c=relaxed/simple; bh=yim39yRqN4bdpfi/yZPkyOfIHeiJsr3OoFhecZ7dSX8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RxROAHW2OjO7yC5130xPZBiVPJ6PmvkTPpp28aDbW2AYZRTMLuzFolOZ80dJil5pij4eAQGG3mDH6Gxc4uZ8Djgi6xS8WF27BSz1Pkg/1LL6TLFxSIbdWMFLsjCFhr6pZVNxROAgN0YErn20JEM1SLIKRTITCBtumUiVANxodbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZCvgzkq2; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714998366; x=1746534366; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=yim39yRqN4bdpfi/yZPkyOfIHeiJsr3OoFhecZ7dSX8=; b=ZCvgzkq2FrVYthP2jVKlAfB01bIBcwCDZcUWMke/J9PPTn6+3MnqV9hO zeBEoBCM0LvLVsocgxvSzx3CDR4P2JtEbBazL/Hu0RqutrTH1wrMKQyat anxDzndHigUmTiiaYQCx59a0PWm6Hx36Vt1qVeZJwsUZ5CeBEIP4hkYxS Q9aV/IKi2P7es8Rtx7aqWAyW4vS53IQYbkrR4dB9RHDefxmY39wVtNNGR pBR2ikBAjU2vDERWBgVHryGU0LBr4SOreplQKoQ8ICLlfu9iN5oVILQvg kZaitMf1A+RPr5OC9/mOM/l7YePioDeTqMU7yGU/2VWcObQTUQL7gvRhp w==; X-CSE-ConnectionGUID: 8A2f7UADSgi9LQWnGahorA== X-CSE-MsgGUID: uUZbPi9UQYe73UyGMy/jXA== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="21352626" X-IronPort-AV: E=Sophos;i="6.07,258,1708416000"; d="scan'208";a="21352626" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 05:26:05 -0700 X-CSE-ConnectionGUID: i/6U48ZHSka9s8R3PJyNXw== X-CSE-MsgGUID: UQissWGdTaOeNacEhtYQ9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,258,1708416000"; d="scan'208";a="28116539" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa009.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 05:25:58 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s3xPl-00000004gZr-3aNZ; Mon, 06 May 2024 15:25:53 +0300 Date: Mon, 6 May 2024 15:25:53 +0300 From: Andy Shevchenko To: Linus Walleij Cc: Manivannan Sadhasivam , 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: 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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. > > Just delete this thing: > imx6_pcie->gpio_active_high = of_property_read_bool(node, > "reset-gpio-active-high"); Good catch! Thank you, I'll update it in the next version. Can you review the rest meanwhile? -- With Best Regards, Andy Shevchenko