From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89E8CC433F5 for ; Wed, 23 Feb 2022 18:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=syGV0yL08tTd6uTk6lZYe11uMtWS7d251CBa6xAIZw8=; b=MoXY4Ym6E7Drqx 9sXSVfd0xej8MCnxD7ly08SBgUv+A92rzElcBCxkWj8M1OV/fHOm3EB6lkonvp4pHlZ7/NKOHdzD4 p20B4fm1dh42emoIoM+otfBWf4mqTXO1S5CLj6oKxyxHdaYrUhkEQ7b+oHFJSm8jDuO8ZQEHQxydU LkzwV7h6K2QIT7ScTU61LymK5m5R/4Q9123LU0e1RBEIHFPk9X4ZDwlAUxUYDX7OALCFxzuaz2uEJ G4zCIJJAegvjBobnb8SbAyJ0I3jX4Y2Km8claaDZ9u/SS12d6/oU6gwQ5W6hBVJv2b7Yej14Ik7aW Xt8OJkckIiUl9Xg3Fuqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMwQl-00FjLK-UA; Wed, 23 Feb 2022 18:32:04 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMwQi-00FjKp-GB for linux-arm-kernel@lists.infradead.org; Wed, 23 Feb 2022 18:32:01 +0000 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 EF81D615FF; Wed, 23 Feb 2022 18:31:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E49CC340E7; Wed, 23 Feb 2022 18:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645641119; bh=AkDY5SFZ//EjjzonkJWDtmO5oUw7EK4mfwf5idhETV4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=rI8es7ID4IB366nvV/gM1u66kvmBnvSnp4QAzayAkT3VHBnUbYrVDFb2UGXUnRLPo 6vNnIBGyYYKQ5qOZseAjxqX5SvSVehoEYSqu4KbzLYFStIACex/PczjatZKLMQRq3O kPWvgI8QHfUo+BK35JPNidrRygOy54DwJFELi3Dol+U7suyeTtljArP7g3Dy6ajOij +eNVkQAAiLV14st+QPFl7dJUkH1K/gAQ4xY7SId/XRPMwUl26Nb7KqtBpi3L58zcub ONtz/OHx9YkURuPD5CORCe745V2Rx60IfuNmEvz/dql9xAc32+4yHlEnLcT1AczoXP L0qGU1LOl2NiQ== Date: Wed, 23 Feb 2022 12:31:57 -0600 From: Bjorn Helgaas To: Richard Zhu Cc: l.stach@pengutronix.de, bhelgaas@google.com, lorenzo.pieralisi@arm.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] PCI: imx6: Override the CLKREQ low in the initialization Message-ID: <20220223183157.GA142509@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1645605513-7731-1-git-send-email-hongxing.zhu@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220223_103200_598227_6891A7EE X-CRM114-Status: GOOD ( 20.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In subject, maybe: PCI: imx6: Assert i.MX8MM CLKREQ# even if no device present On Wed, Feb 23, 2022 at 04:38:33PM +0800, Richard Zhu wrote: > The CLKREQ# signal is an open drain, active low signal that is driven > low by the remote Endpoint device. But it might not be driven low if no > Endpoint device is connected. > > On i.MX8MM PCIe, phy_init() would be failed and system boot hang if the > reference clock is not toggled. s/would be failed/may fail/ s/boot hang/boot may hang/ s/if the reference clock is not toggled/if no Endpoint is connected to assert CLKREQ#/ > Follow with i.MX8MQ PCIe, to make sure the reference clock on, override > the CLKREQ# low during initialization to fix this issue. Handle this as on i.MX8MQ, where we explicitly assert CLKREQ# so the PHY can be initialized. (I don't really understand the hardware here, so disregard if this doesn't say what it needs to.) > Fixes: 178e244cb6e2 ("PCI: imx: Add the imx8mm pcie support") > Signed-off-by: Richard Zhu > --- > drivers/pci/controller/dwc/pci-imx6.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c > index d7f0db01f3c3..a334341a1789 100644 > --- a/drivers/pci/controller/dwc/pci-imx6.c > +++ b/drivers/pci/controller/dwc/pci-imx6.c > @@ -447,10 +447,6 @@ static int imx6_pcie_enable_ref_clk(struct imx6_pcie *imx6_pcie) > case IMX7D: > break; > case IMX8MM: > - ret = clk_prepare_enable(imx6_pcie->pcie_aux); > - if (ret) > - dev_err(dev, "unable to enable pcie_aux clock\n"); > - break; > case IMX8MQ: > ret = clk_prepare_enable(imx6_pcie->pcie_aux); > if (ret) { > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel