Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp24069lqd; Tue, 23 Apr 2024 13:17:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhtPlWJ4aknDvoCc/i+NJs5ywZ9qsq34p8Q3osnxFEhdixDlmvbYBDjzYIRwdn9ObPuA9FztDZOfLuxxhKTFZgoap2+q7SHM6xyKzJ5w== X-Google-Smtp-Source: AGHT+IET2haKILCStW/mOhv/cbFAyCmZexZNe9ctKCDZ5//AQ2NO7seeXDT6EqhTnro8GnN4g0LW X-Received: by 2002:a50:d60a:0:b0:56d:fc50:ec50 with SMTP id x10-20020a50d60a000000b0056dfc50ec50mr581134edi.13.1713903428079; Tue, 23 Apr 2024 13:17:08 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b11-20020a056402278b00b00571ed1c0f41si4896734ede.293.2024.04.23.13.17.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 13:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=O9JKKnWQ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-155840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A59CB1F239DB for ; Tue, 23 Apr 2024 20:17:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB5831428F2; Tue, 23 Apr 2024 20:16:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="O9JKKnWQ" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2078.outbound.protection.outlook.com [40.107.21.78]) (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 161195B1E3; Tue, 23 Apr 2024 20:16:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.78 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903414; cv=fail; b=DGHB/Udzjw7o77mWXFSoBIYQhQ2RPy2HLh6WecDjsfqcI3/ioNN9FdE1PrceW7bjEKVdnj2qj3Z4qKJdsYvC8wC0NaS9tapEUsQHjLLULRmrLOAK+Odl581ZhzVSuWeRxQ+Nl4bap8WCaD6rGuEx/fNvLNgzsOEVALEZRjF4kGk= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903414; c=relaxed/simple; bh=9PmmtD9YJbEL+dITXOLmTurSZ8XS1LaPk9bqvwgs8+0=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=M9VPXoeCZSVv09tCW0EKroX5o7LZ7hPlRPQJSlAGn0sZXrLRm+TLIc60KpOI8EZisykkgEaQYj2TvYwRMiYWg3a3ezuHZWA1TWHaIYU5OxHJsP1iEdSzD3YwM78MUU1QU+EfjX1BHUzfcMpflC2/asYa6XsD8RxQV8n4Ju2F8Vw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=O9JKKnWQ; arc=fail smtp.client-ip=40.107.21.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ro8jA9zWLUUI7LhVBIBHnV8qvuae3K9Z/WCr/rmcHt/ddfdDsONKq8TD2c8upmEeVaBRIM49GU0Odj1zAQEVCIGrR/WP3u7p9mXDU7+YGnhM9LS+QWISnV0aFhvBdpxmAbC0cPu0ThdRsUJx+gQqS00hL99VEP3ObSOSaKmqwtwU6fdnRG0NFd6QLfsHeV9hnwrYjGUicodp/xgTfK/lQjsnpx+KIJH0yIbFUS1GOfOEvOV11yJfXF/7gFYZqKNmfJpCTy76cylQiW3+N6q/Nk71oI+TZQyjPYXyaflfvrgGDavfxOXhf2sGKKLhkVbbi8+S3O0sMjGCIA1DDQCjfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=I7QyoMIElxsbh8Zl5Q274z9fuaJ92JlGX+NXewDMV1w=; b=iYAzh6rjAp8uOhpnFLSlps8n/4AInKCPhGtcfQnYvDlGegtueoJ8iajnmBwRGzW1AN3f3gSjHrfJK1WEhLFmJXMyrnDKXlNTjzEIBAHnKTbKN4NBZcCekR1N8iWyZ5i/2Kc+3f24JgvucLTYP1CQS3i5HVWWkkj3x9+OpR3K4gnTgXnUZgnJdjRE5Bg0ugzGrEEXtKjANY17JMYDObmSbeFI26ZqmmaAucAp6/LG5tP0tz0kMvCevo6bduypXnWbLKItlZDpIBjQYOWayHR0ttbo70jnm6CqS0F8yuhPNleFxHBSVju1dDQtaUQlr7Oh9HZ1fpyuzKKA/8CB6wCjgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I7QyoMIElxsbh8Zl5Q274z9fuaJ92JlGX+NXewDMV1w=; b=O9JKKnWQbtnRkF8GWqpS4zlAPkHijqzFZgQoovEyG+84j2qiJbcs+25niOkfX8FfmnHT0hASL83vQ63uXx0bi2G5xEQpmCLf/w3cRPmFo3Af4HikLTkLVujwX9+PZimGZLe0DNN/EeM+rbBj+/+3dWh/Z/gbLXQ08icn9JjVDlI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU2PR04MB8615.eurprd04.prod.outlook.com (2603:10a6:10:2da::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 23 Apr 2024 20:16:49 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7472.044; Tue, 23 Apr 2024 20:16:49 +0000 Date: Tue, 23 Apr 2024 16:16:36 -0400 From: Frank Li To: Andy Shevchenko Cc: Manivannan Sadhasivam , 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 v2 3/4] PCI: imx6: Convert to agnostic GPIO API Message-ID: References: <20240423172208.2723892-1-andriy.shevchenko@linux.intel.com> <20240423172208.2723892-4-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BY5PR04CA0024.namprd04.prod.outlook.com (2603:10b6:a03:1d0::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU2PR04MB8615:EE_ X-MS-Office365-Filtering-Correlation-Id: fda70e91-29bc-438c-668c-08dc63d24e62 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?63f5h6wHyXRAaiExdrEt+EyjQrEDAi4xXVCJ9xeXOVni4V3iWFmSLM+cVecu?= =?us-ascii?Q?isu8Ufdkw5NXsh7J5M7qzuGupnzKS9iAqNZhifLNc2nQyRTfgT/0mzlsMJEc?= =?us-ascii?Q?GD8VdAH5fo7ZRcksvoOKYisEiAI+f/LnlGJIpX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ascii?Q?acE6UVL5cyftCeR4KzNiAjOt9P56z+sDuxfAF+PkNRcIeISK5UCoT4oyoHpA?= =?us-ascii?Q?Si6/Szym0wjl8pFuG2FEh8FYXnDLK1FmX2LGsamXSZoIk18j88CdJZm+PaNx?= =?us-ascii?Q?WBpbF3d7TCpXFb+HbY2hakQXVJYdDqwR6OyfyGJ5IHU442b9OpxqYDPHXnqb?= =?us-ascii?Q?FEsH72eGdH9fqTTt+xhiOy0w7eXrMkmlhJHEomevsNY7i1IxRSU6xu1GwOD+?= =?us-ascii?Q?Oi2YadCQXal2NpwWDfsh9KIalmSDk6DQNLG0dqGrspMKd19WRqdOCTug8Zwn?= =?us-ascii?Q?70QZ9sAYSt4lT3bS/QZuy2e6dWn13jnrZx7fhAEtn0myUg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(1800799015)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Q/alq3jYTDmY662v9+Ke6OpyP4VqoAEAV2I9uUyv0nCCDpBOuGbX38MLZBdZ?= =?us-ascii?Q?aw6jg4OSDMr0y//Ulu9zWJ9+W+gbOl4E2r7r5fGYR+zQcBh9koGGoKItiNDd?= =?us-ascii?Q?VQxEfcl1lVOzzQqml5l/bP70ZQ/6EXTILatrU6N2Jh5KFkSG/V4051N+Gafa?= =?us-ascii?Q?VmGoQWZxQheopGglNf8VhE7evbxoo00B5yG1yMybNxlPtNMQ9gVuzePl7xUy?= =?us-ascii?Q?bqZyt1spuaA+gMO+JbwgqQ5inYogOv6xIMKv43TZ05AAyy7YWe39mNGdXHgk?= =?us-ascii?Q?AYtSABAgB2jTTbpCzpl5n3tN2gIsoYZUYAiWh6LE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UbHy2ABAO8NQEXJXykSP7iLQ4NtkGZMaMYHeCbWwCsDKDo?= =?us-ascii?Q?VgCNjukgghMMeCOcimaBcA38ZESXIRJamvxHJIB1yLfzQ5TXqbEja/It64Ka?= =?us-ascii?Q?Jt0G+tLwsQg2ZvxULWCveyl7XCXEGRCYPZgTslH+pZ8N1mQF15EnJOHFWdlr?= =?us-ascii?Q?Qy9ne9+wEfaC/6KOcR1W4bb0SkkggwPpzErI680Lo6gtTc05K6HF4Zs9eNHA?= =?us-ascii?Q?QVLPDiGS6YxpnXjgalH79KIn4IAgH8i1YU8QHzkjI9Ms1ytLfW56ooC1WVOU?= =?us-ascii?Q?HXWeLY6a6J0Bn0E8tgc7MJTrK6t65hPfrmUGbX0pLOCBMckv0WMftkoFuZFH?= =?us-ascii?Q?f6uGZfzmKb9n/h1/8GfeM9cGZEkbVOHX4pluVhXt?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fda70e91-29bc-438c-668c-08dc63d24e62 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 20:16:48.9926 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: U+l9MjkGn/knoIHUprvkIyAW0InSfQc4WoDdbEIrhB4VRfHZhbE4C2j54VxCU1BxRSnNqFv1cykZUndLCAdrMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8615 On Tue, Apr 23, 2024 at 11:03:59PM +0300, Andy Shevchenko wrote: > On Tue, Apr 23, 2024 at 03:56:56PM -0400, Frank Li wrote: > > On Tue, Apr 23, 2024 at 08:19:06PM +0300, Andy Shevchenko wrote: > > ... > > > > + imx6_pcie->reset_gpiod = > > > + devm_gpiod_get_optional(dev, "reset", > > > + imx6_pcie->gpio_active_high ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW); > > > + if (IS_ERR(imx6_pcie->reset_gpiod)) > > > + return dev_err_probe(dev, PTR_ERR(imx6_pcie->reset_gpiod), > > > + "unable to get reset gpio\n"); > > > > Small problem here. err message "unable to get reset gpio\n" will print > > when -EPROBE_DEFER happen. EPROBE_DEFER is quite common when use i2c > > expand gpio chip. > > I'm not sure how you come to this conclusion. Can you elaborate, please? > P.S> I do not see a problem as described. If i2c gpio-expander driver have not load when imx6_pcie probe, I supposed devm_gpiod_get_optional() will return -EPROBE_DEFER, if (IS_ERR(imx6_pcie->reset_gpiod)) should be true. then dev_err_probe() will run and print "unable to get reset gpio\n" with error code -EPROBE_DEFER. driver framework will retry imx6_pcie probe again when a new device appear. it may retry sevial times utill i2c gpio-expander driver probe success or timeout. Frank > > -- > With Best Regards, > Andy Shevchenko > >