Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp899253imw; Wed, 13 Jul 2022 09:57:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tDnvN2qViMl4af7nE8kjsrqnleaFwFvMATv5SvjkXLdH08Waz8UfHJ4ms4DpCPGQj+URF3 X-Received: by 2002:a17:902:778a:b0:16c:a1c9:7b14 with SMTP id o10-20020a170902778a00b0016ca1c97b14mr586599pll.116.1657731479412; Wed, 13 Jul 2022 09:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657731479; cv=none; d=google.com; s=arc-20160816; b=PdwCQSagzdzAKYIImCBr0FepHt7uHzj/HwhjxQkn5LJc+iB1YYVNtGLESix7ZMDcC8 KsGV5Lvkq34L51nf02Q2fX/FODYEhFsJYPqwZ0iKL08n/O5ZNO+vWkRtKBoW+Two3Idl IB477IrZHtPaOu2iT7aaxbSDR6W8VJzvDdFkK9XPcNRaCafavDPywDSJScw2gpTdhTg5 8Vln5scxjv9z3u31EJ4F8ZVj6yEiqPJupNtqWnU8BhqZhW2rzEkkVnC5yQZ905eepo5M pVEaHEA1qYfvRJngAdRzSE/9pl77itVo0ATxhnpJwuu5O/wud/U3tDbVPgmdS0LYOgLX iIJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=9odrJcpbP9EHlwpC/9Jgh3b3g5LgOn9nta9DSG1B1lQ=; b=YE5egr/bTxtlCVyUH80JCsbC0/j01l1De9MwaMpVEuYggYKT7yHeKDc87MOGmIejgR 6aMxfpl8HuWkRqbjYZy3YfWL/ElUxq2gC4f/yKa3IbbYpFq4Ma6LLnwHeUy5G+GFEVF0 5mD38qYZUPll7hJY6zvApt6zNbiQAlyT6B/0msvlxPxRUdY1cwx/5C0Ywe4AU7+FtPH7 DsFsy/srZuAR6YSR14iYmXf9mrAaPR1RneNSbgP7vtIBSxIWAR88Pv5E6CeP2FqXQ2Q5 E9owxy5X3jiqjp4T56Wl490apIauSHu7kq85egbFZGFqLZ9BxCnx7sX3cc20IySiK/TK JMMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JtQcrHn+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a17090a86c700b001f068e76032si2716733pjv.171.2022.07.13.09.57.44; Wed, 13 Jul 2022 09:57:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JtQcrHn+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237277AbiGMQqE (ORCPT + 99 others); Wed, 13 Jul 2022 12:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237172AbiGMQp6 (ORCPT ); Wed, 13 Jul 2022 12:45:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 547CA2F3AC; Wed, 13 Jul 2022 09:45:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4E1661C39; Wed, 13 Jul 2022 16:45:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9CDBC341C6; Wed, 13 Jul 2022 16:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657730756; bh=YyGcbZI3NL+Y5QVRHRBFY4N+xrsu0kQktnkufuB1ylA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=JtQcrHn+iu4Eljtfil3G+w7ZnCIPnV/De30FpvG+OHvYj36UIb5UT1YpVDdafVwMo Uj5us1IxN+NAxZQkdLOWXkYXyJCNdoroNMnLxH9GCEAqEmodRqoub0jmLGJF39/c/m wq/R4WRukhVKfYaXhp5aa6gXbwyVN17Jw453LpwclumMbDgcdc8pOflJMzCvabaY0N QVUOTicRojC0z4KssmMQHp7MkPqjNE0GGLTZ05ZvNvlv8fmZm4D3m/hPuLxsSNX0zb RQIxkEIYqOAVEVmfxxjfob6rrr+pg+oHO17nC2ebQJM0cJlqCj2c+mOgyMR+hJcmoi ub+5AYgaFGhug== Date: Wed, 13 Jul 2022 11:45:54 -0500 From: Bjorn Helgaas To: Richard Zhu Cc: l.stach@pengutronix.de, bhelgaas@google.com, robh+dt@kernel.org, broonie@kernel.org, lorenzo.pieralisi@arm.com, festevam@gmail.com, francesco.dolcini@toradex.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Subject: Re: [PATCH v14 0/17] PCI: imx6: refine codes and add the error propagation Message-ID: <20220713164554.GA833183@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220711222959.GA701423@bhelgaas> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, Jul 11, 2022 at 05:29:59PM -0500, Bjorn Helgaas wrote: > On Fri, Jul 01, 2022 at 11:25:18AM +0800, Richard Zhu wrote: > > ... > > Bjorn Helgaas (5): > > PCI: imx6: Move imx6_pcie_grp_offset(), imx6_pcie_configure_type() > > earlier > > PCI: imx6: Move PHY management functions together > > PCI: imx6: Move imx6_pcie_enable_ref_clk() earlier > > PCI: imx6: Factor out ref clock disable to match enable > > PCI: imx6: Disable clocks in reverse order of enable > > > > Richard Zhu (12): > > PCI: imx6: Move imx6_pcie_clk_disable() earlier > > PCI: imx6: Collect clock enables in imx6_pcie_clk_enable() > > PCI: imx6: Propagate .host_init() errors to caller > > PCI: imx6: Disable i.MX6QDL clock when disabling ref clocks > > PCI: imx6: Call host init function directly in resume > > PCI: imx6: Turn off regulator when system is in suspend mode > > PCI: imx6: Move regulator enable out of > > imx6_pcie_deassert_core_reset() > > PCI: imx6: Mark the link down as non-fatal error > > PCI: imx6: Reduce resume time by only starting link if it was up > > before suspend > > PCI: imx6: Do not hide phy driver callbacks and refine the error > > handling > > PCI: imx6: Reformat suspend callback to keep symmetric with resume > > PCI: imx6: Move the imx6_pcie_ltssm_disable() earlier > > > > drivers/pci/controller/dwc/pci-imx6.c | 661 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------- > > 1 file changed, 358 insertions(+), 303 deletions(-) > > Applied to pci/ctrl/imx6 for v5.20, thanks a lot for all your work > here! I updated the branch with Lucas' acks and with the minor imx6_pcie_start_link() return value check he suggested. I did not do anything about the missing IMX8MQ case in imx6_pcie_ltssm_disable() or the PHY init or regulator or shutdown issues. If you want changes there, please make them starting with the pci/ctrl/imx6 branch and I can just replace it: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?h=pci/ctrl/imx6&id=7d652ce95e70 Bjorn