Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp563570rdb; Thu, 2 Nov 2023 11:13:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDBL7Mx5/LVUC8n7oEMeYrKleY0gaXpZJu87j50MaT4a3wwPrPjY90N4BswRhMCpIcuyFs X-Received: by 2002:a05:6a00:180f:b0:6bf:4cb1:e78 with SMTP id y15-20020a056a00180f00b006bf4cb10e78mr25628897pfa.6.1698948812056; Thu, 02 Nov 2023 11:13:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698948812; cv=pass; d=google.com; s=arc-20160816; b=0s0eaolp9Mw0ulnp3QT1txCwxRPQk15+TWnBG7Tm1KJ91Izonzh8Rz+5BaM8cJROvM vjrsA3y0TouKVdP50RV2kMUzrezewD3H8+nHwdcaUnFch8ZWkf0rpNJxSL/9NVT2Qj/G f84gsyx9zJ5No4eARjtwHu+CebJU5YVBMlvTULwsaAIZmsvzSNsJ6T6YOX6eTuZb5fGn hzyDw/CHEh8FMAJ+QwqcW7vNuC5k1bY61FtUQYsSBSSqiyeuumyy7d4+ZhQ9Tulsst3m ykKyACisDq7RLW6PdqNVoSWbu5yrY1Tr6a6Rd+Fu3erzjoGFjDeCv4wL4GUggWDGee+L UTXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to :content-transfer-encoding:content-disposition:references:message-id :subject:cc:to:from:date:dkim-signature; bh=W9pOne0rk8TXYYlz3UyvrYZSMZM+bLJV8xYmmdt5vII=; fh=wMLl7litVbAmU17VUbv8dhTByAcdgK4QJjBh/i1+THk=; b=yJXLB6C2EPBq7NipQoPhSXD82dpVsX61JI44DftizV6NQHzQieibuRtE2ODv20tfHW QGNBntC3CJ4Aqiglg2r+3OJl2i6tyrECapKwrWCO06o+dEDr7XYjAwAo2DIkUK43ROkv kRbXzFdmQgiWC2oGDKqFDFNZRtqyA7UQS7lf0qNJZbNJuZ2uWtRvsU7kzQbyEOYiJrlh rAe+SnwYhDg8cWFNGCKqz3Gp2XsbEjsqUudYqHm3VwqSZBMOpnykwdEoMtwMdo0xabPV umLyAQbRUJfonIrxkKGM0aOffe1FKy5w9NbeybRAdPQWkNUl1+gTHRGnLM/Nda7+u2D3 Y7tQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RyLzBa1K; 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.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ff20-20020a056a002f5400b006be4e6e2a9bsi70735pfb.398.2023.11.02.11.13.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 11:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RyLzBa1K; 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.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 84FC58072803; Thu, 2 Nov 2023 11:13:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234703AbjKBSN1 (ORCPT + 99 others); Thu, 2 Nov 2023 14:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235239AbjKBSNN (ORCPT ); Thu, 2 Nov 2023 14:13:13 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on061d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::61d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4073A448A; Thu, 2 Nov 2023 11:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ldxzNEClplXFeDQ7ba9ov3IXCCf9QvbjdUZHj0BjXt2ZP7/8FFo+z4W+cFW6CvYhDbFQOiatKeoweThTeqloYh9ATz8iBoU2zC5Q4UsAJ9qtxRZqu5vW1g6v8qUE7Asq0HjIuLpNCDhnFtFps+g59c4tNUKprBn9gcqeQ9WJCJOe2GjFr6BDQGHngP3+plhnhXdJ/dzQ5YZUK4PFDSb5hRuT4MY0o9m0W7sykvQYyd604PafhJkOCV1q1p7G5l1ISFVrUNJtufuHtaFzgmICJpFJ+wUpjAM2w+IeVtOFmrcB7BblhRuqC8H8IQ4uY8QFtiA93i6cZTJICHIgBTxADA== 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=W9pOne0rk8TXYYlz3UyvrYZSMZM+bLJV8xYmmdt5vII=; b=maPjgTISglA961avLbDqWMbKskxuMJGnoLWSMcTAZ/7KBqmscGu3zzEB+Fr25feRTykticYM/A6GprYqGQXEiVHEuVcnLXsLeW83P8Z7GeSnvZBu2SRxJePScDbFB7Mhb+78hqWqWjlAs1yzfT/pNTJZsdZOPIvxNFyvLVXqluJu75kAk1+Do6leKEYh8TBlIl89+JrnaF1xYq0no95FFbbZ74nGUbEC/1lYTIxycXoG7nwVO5hpPkhP55vaibgfy9nyoeMkK0E1XPRjqum+pqfaguL/oXgEqNFGTDrLV2IEI9+9WEMyFSXXvgCOAv87+paKRznaQoARQrhii9ROsQ== 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=W9pOne0rk8TXYYlz3UyvrYZSMZM+bLJV8xYmmdt5vII=; b=RyLzBa1KyhPrk1ihb+C1tlWSsoMlv2U8l46VdkBDolY1IYO0j3y4R99YTUpIwtws/uZi71R1EHwqBXxZwYSolTE6Ds71vwRJ1rLQWZZ09gmEsVbf4+KHPcj46IwCCu2ZOSrwggxOaL5f/QXPlYKDmcCZmgQT9FGtxlVvVsN6MiI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AM9PR04MB7666.eurprd04.prod.outlook.com (2603:10a6:20b:287::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Thu, 2 Nov 2023 18:01:16 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::97ca:a905:8e64:c098]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::97ca:a905:8e64:c098%7]) with mapi id 15.20.6954.017; Thu, 2 Nov 2023 18:01:15 +0000 Date: Thu, 2 Nov 2023 14:01:06 -0400 From: Frank Li To: Manivannan Sadhasivam Cc: bhelgaas@google.com, imx@lists.linux.dev, kw@linux.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, lpieralisi@kernel.org, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, robh@kernel.org, roy.zang@nxp.com Subject: Re: [PATCH v3 1/4] PCI: layerscape: Add function pointer for exit_from_l2() Message-ID: References: <20231017193145.3198380-1-Frank.Li@nxp.com> <20231017193145.3198380-2-Frank.Li@nxp.com> <20231102165808.GC20943@thinkpad> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231102165808.GC20943@thinkpad> X-ClientProxiedBy: SJ0PR03CA0198.namprd03.prod.outlook.com (2603:10b6:a03:2ef::23) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM9PR04MB7666:EE_ X-MS-Office365-Filtering-Correlation-Id: ae53330a-dd52-4e50-ad62-08dbdbcdb525 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hKk5+Ey4IRwWBMaOzUhM+ZXjH6cRSptGbr2B8zbwypLY0kSlqftpbI9NqltOrf62Y1PECkjD7zg/4nMA9T3SfPOGPfBtgDIq/Zfk1ve9vJ2z+p9c3x9vXnPhGXPx/nta3q/JqZrN6TQp5Zcf/hewelunQkAoF7VcvmInxwpJxUj/vRySoHf9j0Xs1plcxMJ2t0ma/kzT1KZY/vHcZb+RBTZSeRSbEAbP6LlP9It1KwRGW9Kjjt6XLGUj71YzVIUfJA5A2PBQg6LwHPK0mJV68tTlnZPTZcrGwjCzFX4TOuNDsQXs3ID7w0TP315rulUJgFBBuQB3MQ7u0jRxBcxHrw21UrOCINnqBWcHYzKJtj43Wd4lHVKZXUAmmQDmvHoAQgoBIMhyoAsJbbbh9n9+Z/rAwo1Usrei8P5k7cXZzmpReuVEZ4HPLNMC1QPUZPRrEmhCgY/sC2eyMRaikZHagoLkr7mo0f2oo+Noh3OTxL9s0fErnB4MWTSAv+rcHqMGHL0pL80fKQguYa80mVEY/1pu3FU3gzoL3ewTdetkB+zZ0cs1FFpWBxES84kZLg9D/lJ4Lr4B9dLNDOQePBdKeDy0bCwUNsoRHEN10nGuYoxQ8p/COSa5K3Pss7aLZmar X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(366004)(136003)(39860400002)(396003)(346002)(376002)(230922051799003)(451199024)(1800799009)(186009)(64100799003)(66556008)(66946007)(33716001)(316002)(83380400001)(6486002)(86362001)(2906002)(8676002)(4326008)(8936002)(66476007)(5660300002)(41300700001)(38350700005)(478600001)(38100700002)(6506007)(6666004)(6512007)(52116002)(9686003)(7416002)(6916009)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d3lGQlNMekszZTZkZUhlTTFxS2VJbGlsWWtHdzhVYkVBc1RCZFc3UmdaK2g2?= =?utf-8?B?R1pPK0NHMzNVaVM1TDhadW9CYmJvRnJzN2xSc25iYzlvTUVDZUlkYk9ZTTZF?= =?utf-8?B?YlpGUklsaVBiN0E5ZEVxTU04cUF0YUsvcGdFWUlyZStaM2FnZGNtVFpFUG1j?= =?utf-8?B?VWZHRk1SbDZ3QlQ5RXVUMHlJOFNmSkRiVjJEd3JFL1RZaXF6ZzlCcDBKVmFC?= =?utf-8?B?S3ErSUZ6bUI3bGRiU29qbXhnOXVKRS8rTks2Tkg3Mllub1JNdmlGZlpPeXA5?= =?utf-8?B?WXRTLzdZQkJzMnlCZkxNMEZwMStVSG94bW5ENGt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YBDhhpa+2lH6pmje?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae53330a-dd52-4e50-ad62-08dbdbcdb525 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2023 18:01:15.8325 (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: AuZwJ69+f1OQqUtZS7K+YF8wwEndvNcvDvgUCwgSunlaAIcnDAfz4rNw/IYFqkeLNkyAyCUeHtQKH/MtaYL3ww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7666 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_PERMERROR,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 11:13:30 -0700 (PDT) On Thu, Nov 02, 2023 at 10:28:08PM +0530, Manivannan Sadhasivam wrote: > On Tue, Oct 17, 2023 at 03:31:42PM -0400, Frank Li wrote: > > Since difference SoCs require different sequence for exiting L2, let's add > > a separate "exit_from_l2()" callback. This callback can be used to execute > > SoC specific sequence. > > > > I missed the fact that this patch honors the return value of the callback (which > was ignored previously). So this should be added to the description as well. How about add below? "Change ls_pcie_exit_from_l2() return value from void to int. Return error when exit_from_l2() failure to exit suspend flow." Frank > > > Signed-off-by: Frank Li > > With that, > > Reviewed-by: Manivannan Sadhasivam > > - Mani > > > --- > > > > Notes: > > Change from v2 to v3 > > - fixed according to mani's feedback > > 1. update commit message > > 2. move dw_pcie_host_ops to next patch > > 3. check return value from exit_from_l2() > > Change from v1 to v2 > > - change subject 'a' to 'A' > > > > Change from v1 to v2 > > - change subject 'a' to 'A' > > > > drivers/pci/controller/dwc/pci-layerscape.c | 11 +++++++++-- > > 1 file changed, 9 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c > > index 37956e09c65bd..aea89926bcc4f 100644 > > --- a/drivers/pci/controller/dwc/pci-layerscape.c > > +++ b/drivers/pci/controller/dwc/pci-layerscape.c > > @@ -39,6 +39,7 @@ > > > > struct ls_pcie_drvdata { > > const u32 pf_off; > > + int (*exit_from_l2)(struct dw_pcie_rp *pp); > > bool pm_support; > > }; > > > > @@ -125,7 +126,7 @@ static void ls_pcie_send_turnoff_msg(struct dw_pcie_rp *pp) > > dev_err(pcie->pci->dev, "PME_Turn_off timeout\n"); > > } > > > > -static void ls_pcie_exit_from_l2(struct dw_pcie_rp *pp) > > +static int ls_pcie_exit_from_l2(struct dw_pcie_rp *pp) > > { > > struct dw_pcie *pci = to_dw_pcie_from_pp(pp); > > struct ls_pcie *pcie = to_ls_pcie(pci); > > @@ -150,6 +151,8 @@ static void ls_pcie_exit_from_l2(struct dw_pcie_rp *pp) > > 10000); > > if (ret) > > dev_err(pcie->pci->dev, "L2 exit timeout\n"); > > + > > + return ret; > > } > > > > static int ls_pcie_host_init(struct dw_pcie_rp *pp) > > @@ -180,6 +183,7 @@ static const struct ls_pcie_drvdata ls1021a_drvdata = { > > static const struct ls_pcie_drvdata layerscape_drvdata = { > > .pf_off = 0xc0000, > > .pm_support = true, > > + .exit_from_l2 = ls_pcie_exit_from_l2, > > }; > > > > static const struct of_device_id ls_pcie_of_match[] = { > > @@ -247,11 +251,14 @@ static int ls_pcie_suspend_noirq(struct device *dev) > > static int ls_pcie_resume_noirq(struct device *dev) > > { > > struct ls_pcie *pcie = dev_get_drvdata(dev); > > + int ret; > > > > if (!pcie->drvdata->pm_support) > > return 0; > > > > - ls_pcie_exit_from_l2(&pcie->pci->pp); > > + ret = pcie->drvdata->exit_from_l2(&pcie->pci->pp); > > + if (ret) > > + return ret; > > > > return dw_pcie_resume_noirq(pcie->pci); > > } > > -- > > 2.34.1 > > > > -- > மணிவண்ணன் சதாசிவம்