Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1061253pxb; Thu, 28 Jan 2021 07:12:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCeK2/cZS3zJp28Yg0hMQ+C86bvOJ0i8tBp9WMe4qbXgiReRB0zoiXOS3nU7ezcq2SA78Q X-Received: by 2002:a17:906:a84d:: with SMTP id dx13mr11585559ejb.275.1611846756410; Thu, 28 Jan 2021 07:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611846756; cv=none; d=google.com; s=arc-20160816; b=GF6jRHTA+ABR9zoi4RwrWxtBcoTrRqLvOBeZOhqQ/sSuwz2O9LVeD9omYtXgK2KqEY 7DrIwiZv5tJFlfmbSw4xXpm0oMa9rcXjqIEDbRkoSlOVXeJafyrMi6T0ukBi2vrTqKj8 U+Zw8I3n9+KiAnRr6TI+yZnNiaMABHlCCuMJIBrtu2omlhfase705SldM8csb6xB0K9L 0GV2c36qEwaBrk4vfnzr8+u4sMwx2TL9zwtiiB+Jh/zJxVmnD9NHkVtC1yE77MUX3st6 /8zjH/MRiT5YrU1VeTgr6dCubuEi/YOgSyQCeO17j2qgzjAGSt+WtOtQ+Zkf8D5ebaoM Do+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=aNwqdghQUB8qwuBarbPc7i8JEfxkf7wc5ZzBwCioF3A=; b=sjh8/Hke5WRm8IP1Ex0jQfWV5c6xdSmlt207r+/mEJiHLojQElguoZRno3a2xipLV8 AHJ9zsncfc6vGBf//Zt2Bru8/UBqjouzs6X+ybuLcPJBfG8cLenS9lT0Il3xtccGRu/j T3yR2Y7jQx19tx/x8EemFXDcxgbqXOSjZ38pcw3er2fkoYqwI9+b/Gu1x6n14V8y6DB6 f3csJ4WxgwuTWBvaE22JJfPYF/mQxjdmt3GLyWE4OTY4CTLS24Gw4vPfARz0cHheEFPC 9Wc3OoRr333QGIfQu9ffYwwsJk/YXctmseiFPHynvsZGswmPgl6TEfgLiereIP9RcvQx Fwuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cfpNPoiX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si3060413eds.543.2021.01.28.07.12.10; Thu, 28 Jan 2021 07:12:36 -0800 (PST) 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=@google.com header.s=20161025 header.b=cfpNPoiX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232546AbhA1PK0 (ORCPT + 99 others); Thu, 28 Jan 2021 10:10:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232527AbhA1PJg (ORCPT ); Thu, 28 Jan 2021 10:09:36 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 509DBC06178B for ; Thu, 28 Jan 2021 07:07:51 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id p21so8000891lfu.11 for ; Thu, 28 Jan 2021 07:07:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=aNwqdghQUB8qwuBarbPc7i8JEfxkf7wc5ZzBwCioF3A=; b=cfpNPoiXBCbJflsi+7nYsILgbsQRDxwGzGM5qUMwO2V7hbj4m2562sJhp8CH7NQEFY tfYaMEFxttRkwYn7JwHaFceDB6Xnquu13ZXB9GBBfX1UU1lavgmQCvq3E31N5fJpv+He spnPQWJhfBRF4QIeZgY2HwRsK0TmkipDv7NdKQTb1bd+p2zaebFdu9ZtRdJVIdcrDPuI 1Il0u2oNGVhdXSEIdM4n0LEkSSAu87/OFRYW08y6D95lx+2EGKs5pVnGgHXaFal0mHCR UtzedxEvdIhjojarCJumeYNt0PPFxn0LgIE2s1pRiyn28+tN4NYHDLK5dtlPblhjQnVV GfUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=aNwqdghQUB8qwuBarbPc7i8JEfxkf7wc5ZzBwCioF3A=; b=CkxNSxpoDOoVOPYkhAuDOVWn5TY/iCs+gLvWVB4mLPD08D6pZhr4Y9q88mNo0q7xxv 5G/rEqWvXz7lgH11rjIkOU23PcpVoC/9/U/A7F70JirCqAOlnDBpT9QRkKHZAi/GSJvv LfeKUYEsGlDmmPNFos8ewG4ATxtfBGb1oFMXPd+JMZp1h+nICA/SkL3C7lXMuCEamN6O 7uIoV7ccYL2mzBdVU0wX04Bre3bMdrAFSbHMCjZXtLEcLdoEmECdh/CstW9BSJyF6YTB GdpeNXK2JqLquSt8zcg7FQigxdsutUHmRYlrNv/RUCloLnt1t+Iofk+jltqG6Z/Tn8k5 ldCw== X-Gm-Message-State: AOAM531O3//qF6E1qdemIfPvVbsU0KIJF6hH/OidUdYIGvGelNdcs2UC AAmhvkdqR3Wsdi3nB0lD2QTMijwPpZg3CzWI88y/uQ== X-Received: by 2002:a19:2245:: with SMTP id i66mr7725116lfi.400.1611846469473; Thu, 28 Jan 2021 07:07:49 -0800 (PST) MIME-Version: 1.0 References: <20210128122311.1.I42c1001f8b0eaac973a99e1e5c2170788ee36c9c@changeid> In-Reply-To: From: Victor Ding Date: Fri, 29 Jan 2021 02:07:13 +1100 Message-ID: Subject: Re: [PATCH] PCI/ASPM: Disable ASPM when save/restore PCI state To: =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= Cc: Bjorn Helgaas , Ulf Hansson , Adrian Hunter , linux-mmc@vger.kernel.org, LKML , linux-pci@vger.kernel.org, Ben Chuang , Bjorn Helgaas , Kai-Heng Feng , "Saheed O. Bolarinwa" , Vidya Sagar , Xiongfeng Wang , Yicong Yang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2021 at 12:44 AM Krzysztof Wilczy=C5=84ski w= rote: > > Hi Victor, > > Thank you for working on this! > > [...] > > i =3D pci_save_pcie_state(dev); > > if (i !=3D 0) > > - return i; > > + goto Exit; > > > > i =3D pci_save_pcix_state(dev); > > if (i !=3D 0) > > - return i; > > + goto Exit; > [...] > > +Exit: > > + pcie_restore_aspm_control(dev); > > + return i; > > } > [...] > > A silly thing, but the goto labels are customary lower-case. > > Nonetheless, this is probably something that can be corrected when > applying, so that you don't need to unnecessarily send a new version > (unless you will eventually following other reviews, then don't forget > about it). > > Krzysztof Thank you for reviewing. I am about to send out a V2 for a bug fix, it will include this style change too. Victor