Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp199081pxb; Tue, 19 Oct 2021 00:35:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOgftNFdmX9VS1k1YR7z9o8IoZAHi2U9QFvNt498P9Pram8B2EFMhb2mvcbxkTqacV2jnc X-Received: by 2002:a17:906:52d6:: with SMTP id w22mr36663109ejn.248.1634628947218; Tue, 19 Oct 2021 00:35:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634628947; cv=pass; d=google.com; s=arc-20160816; b=Df7WjcRanfzBHCiH0gyRng6c893dX8Ud+O7E5BR/WV21VxjtfQEhlpcpMWZmD8yc+U kqJ8TcPCfWujdiu6uzQ8CSIBF1NZ/V5hDEdo83ok/fSmOm23xEJwXQFXCwye4nyR6lP9 JbudqUUFJSJnDU1bb3sP4ghnODC+TQG+pARumh8NguYH4Yxmci/MiE29Jwqml9bC5qzA Od75KuESFERXQZwFKffqGLQP9N9jh31ed21bF+6FUN3nyVfDWlts3SBjKj6TZ4ec0OHL 3thhSa9pqvmWO3ddou+Nt9tLDYUCT1YZsZHeQjPcMIVhnwutp7r6NWeUPo9Z3tX5niE+ aDQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=nv/hbpGay08UMLdzDYXjdajnWLtO039JnLFKSqxagKQ=; b=rFNuT5coUuC1bnt4Y8NhEw8hnUnVUZMWt71FPxdLhq3NlbOp88tQ0W85ECrzH1cGzm uDJdtQN4qdhf8i5ZQsm3YVbbSVOdg6K1w/l2bmncz30mXBSuB4fvsaZUva+/YnK8YczL yuvS/fo2SOVK+fzP10UqBck+RamFeTq5aAUrvBn/qHkQ7nhGm6syD74sIe3kVxoasvHN yhpegsPz0zjZ6TARxeQQ4pthB8N8QiBM0EwvNvPfHAE4cYAk690IsQ2yZbPWtBH7fWq6 ZSys8dSPtpMeL3cMbxeJzf9F1sfie0+QirIbF9Lo6XFM+Um8MZLoaFOXMSnaYpXl7HqB co1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=CfLjVcAt; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si23040465edf.402.2021.10.19.00.35.21; Tue, 19 Oct 2021 00:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=CfLjVcAt; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231701AbhJSHfm (ORCPT + 99 others); Tue, 19 Oct 2021 03:35:42 -0400 Received: from mail-db8eur05on2050.outbound.protection.outlook.com ([40.107.20.50]:4161 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229551AbhJSHfl (ORCPT ); Tue, 19 Oct 2021 03:35:41 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cD7qgeTn83oUiXR+5a34jW6JdXqH5pqnBFZ8sI10Nt6/m2ct5qmLhOfe7f7teAbeAtFArro6KXyPV5fQv1UjWvODhMD4xMaPByR+cdwsdkzaJVWy5T/c6Wk0e/98YqrblBbNb5jcY+vBzQC94V4ggUv5V0wAWt3KzUOhE5jhLT8Ko4w2ehzGkNfYiIgBset0pR1MdMHTNP2FekajzEnRDoz7o5C710skx46bWqTW096KhDHOD0VXuX++wC4QfW9jDGvh5BgDvK5nrwcmN6hyxAp9MvSBqmrh2aZGxYLDqtBD4cIkfaTdml/dNBcOK/9V8E12QXYxAEToNOEyC+Vo1Q== 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=nv/hbpGay08UMLdzDYXjdajnWLtO039JnLFKSqxagKQ=; b=DseZfZ9y/z+6HvZY6NxiGDkapjX2IeZdkKP/uRBueuKteflrLDjPzWAEj4aXFC+buN38f3RsYKyx5s8E/O/24jBZxSFhLgUF278z8HJnj3bHJI1Ma1BLHz/IUsoQOzyunFzOa0PE71/VNeHCkbeSzbxdkERpD9twKm0imQ8qBtMj75g2BN2fPeFTE4uEex11QF8kQ6QlvIJD2HCSJeeE9t6drurb+1OXEbaI7H31NAd4QR78r6PSpURj951BxLa11NDSA6kpXLwJafMWAD+OUnd3FSpFiQZvR9qgP0vSRuOXS5frfpgPZ9nKgKWawiviN2gWlIG5i6HkMJY/OpSelw== 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=nv/hbpGay08UMLdzDYXjdajnWLtO039JnLFKSqxagKQ=; b=CfLjVcAtINAH4YhIcGId2FEkpXjurSMpsjmsJtfnYJscQTJf/5Zem6O+tOUMlVK2XyzMYMNqFET8x58PxLiyoxDHxRSaNVh4NEFmBghnUjQ3/jvxoavAshmi5UkuVDXDjzOEoqgf14fSSS7yZ/IP3fj5/FJc2aurSlfcfAHjYnk= Received: from AS8PR04MB8676.eurprd04.prod.outlook.com (2603:10a6:20b:42b::10) by AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Tue, 19 Oct 2021 07:33:27 +0000 Received: from AS8PR04MB8676.eurprd04.prod.outlook.com ([fe80::b059:46c6:685b:e0fc]) by AS8PR04MB8676.eurprd04.prod.outlook.com ([fe80::b059:46c6:685b:e0fc%4]) with mapi id 15.20.4608.018; Tue, 19 Oct 2021 07:33:27 +0000 From: Richard Zhu To: Lucas Stach , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" CC: "linux-pci@vger.kernel.org" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" Subject: RE: [RESEND v2 2/5] PCI: imx6: Add the error propagation from host_init Thread-Topic: [RESEND v2 2/5] PCI: imx6: Add the error propagation from host_init Thread-Index: AQHXwY4t5QY3npANVU+HtgYQzhHu06vUXlyAgAWVmAA= Date: Tue, 19 Oct 2021 07:33:27 +0000 Message-ID: References: <1634277941-6672-1-git-send-email-hongxing.zhu@nxp.com> <1634277941-6672-3-git-send-email-hongxing.zhu@nxp.com> <6c2cd328dfd407002339d1c83ebd5b832d4f377d.camel@pengutronix.de> In-Reply-To: <6c2cd328dfd407002339d1c83ebd5b832d4f377d.camel@pengutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: pengutronix.de; dkim=none (message not signed) header.d=none;pengutronix.de; dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1a83d02a-fdda-4061-0587-08d992d2bd9b x-ms-traffictypediagnostic: AS8PR04MB8963: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: y4pGjpcGrn/boDFTwx/pUh5+NrS7VeeYNkjbArkr8VGDaELS6QwjWA6e61jBsPm+jWpZr3zspuDU9GG2Nca9JYTf488K0Gxymd9Poh2v9/HQYxvYL9hSPbkuZcT4sf6MKypW8YxGUMZB76IvCZkTiNPnFvcD+AAHPMUn3+tHDzPEvlf3TZlhL282InteGD3+VD4ggYVKC1xP5Rfb4XHLh7vIYy95XbeFxMzDVWlc8uiRWJTgD0BHmZpHrtnkWIvrv7EbH6aeXGxoiaGDBxH41JZ8QRhIGbicT4HSDXJGNNx+dgN+k7CXS8rRoz2I3lnUgvo/Vt8tP5bUSyaWRsJSOJXAE7cAwaZUxEyykg/h54D4phbBeZ2abRbsMmTGS6NeJeMuT/aIO2DxjgUXipTLJOLl3ofqrpTNK4B3t2U6fGxaGabO70qTUh40YatwnvDfcQ+caeFhm90dBxFtI1VKZ0R4VTp0khezyzrevhYLcoEb/LH3RxTdZSUve4SsGaYtXekX6v3y/4KDgKplQXKcXWWSTObn4JGxMYk0awBR6ZgPmvtaSBsh9P0C39x0aDaYJho4OnnJ+nM3NYfSkoMS5I758gAv1GGbN1yeufcvjT+BHK3Z4aQKegeA+k9GOGjyQQCjGmOSyIwsi/4RHummad1CiJ9S2d/8S7KfpN07iIGHDDgSa1qF5vCjk+jIHj2dR60ztAOCgix3Lg4cwf28Kg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8676.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(54906003)(508600001)(83380400001)(8676002)(9686003)(86362001)(122000001)(71200400001)(8936002)(5660300002)(55016002)(38070700005)(76116006)(66946007)(7696005)(66556008)(4326008)(64756008)(66476007)(52536014)(6506007)(316002)(66446008)(33656002)(38100700002)(26005)(53546011)(186003)(110136005)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?ajdFOUthcGIvbXhVQjA2R1A5blF6bjJ3VHlQVUFrQzZHSlF4N1M2MW1RdUtO?= =?utf-8?B?TnJ5MDFVUkhhaTVqTWlIOEE1V3ZjckRJTlcrczYzS0VtWmdvenFjVW1YZ2VN?= =?utf-8?B?akZqdzAwb05HZUtra2tWM3R1dDNnb1A2OVhyZ2JrdVd2UUxKV1Z5WFdTcXFK?= =?utf-8?B?ZVZLK2NOMWhLYzdiOFRxL2lERlc2MVdPaWY3blhiNmpTenZYd25pZEJrVU41?= =?utf-8?B?UEF5dmtDM0xCZ0RHTlZoQjl6UmNTZWRXVVh3UGJkYXBiT2JnTGh6eWNRUXdo?= =?utf-8?B?dnhPU0IzYWJ5U2g2NWszQUU2MGlmZk8wWDJtU2hGY2N0ZjVMVVBSampKcmE5?= =?utf-8?B?Yzd0RzBxb2JuaUM2dWZqdU14ZzdZK0RreHlEOVB1QlVoMXZ1RzNETTdhdHNK?= =?utf-8?B?RHB5Umt5bms3RUk2WDh5VEltNnhyWTMrVTNlYkVaNUc1ZmROc3J3VWRaQU94?= =?utf-8?B?d2o1Qk9icFFXVWt1ZjE2bndPZmczTmxpam5rU2tjWXJTLzVhRHRPTGZoUC8x?= =?utf-8?B?K2tRMWIvWHlUVnFJTE5JZjZsOVpvelU0VEJBV2R3UlNLUDhMTHN1SW93VHgy?= =?utf-8?B?Qjg0ajEzMmlXd2tCbWc4Szc3RVh4K3d3bThxcENFSE52TTlkREhBQ01ZOFl4?= =?utf-8?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?= =?utf-8?B?RklWMjFtSmZCekZRZkdMU2c2OFVUME1CZG4wQXhBYTVheTVXZ0dGbU9oSjc5?= =?utf-8?B?UG1RUzR0STB2VVJyMUpXKzVKYVF6UlVqcDd4dlhlODBvcU1qSzVidlprYWNE?= =?utf-8?B?TXhBQ2xLODdweVozT2tUcWxOQnhSYUpFajBCa2tlMi85ei9kdkJHMWNQekUr?= =?utf-8?Q?ERD8C9nn44t1krnd7TB0EDVkClYGp5SUOv/hsat?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8676.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a83d02a-fdda-4061-0587-08d992d2bd9b X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2021 07:33:27.0281 (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: AWsGfa8N+sA+/sEZieZwI0ecWRZc/OWP3iwLLmFmUxsbAGiO077cgaDMrlf7Vpr7qDFXq/5F1djS6tfg3qyPZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8963 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMdWNhcyBTdGFjaCA8bC5zdGFj aEBwZW5ndXRyb25peC5kZT4NCj4gU2VudDogU2F0dXJkYXksIE9jdG9iZXIgMTYsIDIwMjEgMjox NiBBTQ0KPiBUbzogUmljaGFyZCBaaHUgPGhvbmd4aW5nLnpodUBueHAuY29tPjsgYmhlbGdhYXNA Z29vZ2xlLmNvbTsNCj4gbG9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