From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXLAu-00069n-QR for barebox@lists.infradead.org; Thu, 13 Dec 2018 07:13:09 +0000 Received: by mail-pf1-x443.google.com with SMTP id 64so633390pfr.9 for ; Wed, 12 Dec 2018 23:12:38 -0800 (PST) From: Andrey Smirnov Date: Wed, 12 Dec 2018 23:11:23 -0800 Message-Id: <20181213071144.31691-38-andrew.smirnov@gmail.com> In-Reply-To: <20181213071144.31691-1-andrew.smirnov@gmail.com> References: <20181213071144.31691-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 37/58] PCI: imx6: Port error messages for imx6_pcie_deassert_core_reset() To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- drivers/pci/pci-imx6.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pci-imx6.c b/drivers/pci/pci-imx6.c index baa07447e..8e7bae258 100644 --- a/drivers/pci/pci-imx6.c +++ b/drivers/pci/pci-imx6.c @@ -289,20 +289,27 @@ static int imx6_pcie_assert_core_reset(struct imx6_pcie *imx6_pcie) static int imx6_pcie_deassert_core_reset(struct imx6_pcie *imx6_pcie) { + struct device_d *dev = imx6_pcie->pp.dev; int ret; u32 gpr1; ret = clk_enable(imx6_pcie->pcie_phy); - if (ret) + if (ret) { + dev_err(dev, "unable to enable pcie_phy clock\n"); goto err_pcie_phy; + } ret = clk_enable(imx6_pcie->pcie_bus); - if (ret) + if (ret) { + dev_err(dev, "unable to enable pcie_bus clock\n"); goto err_pcie_bus; + } ret = clk_enable(imx6_pcie->pcie); - if (ret) + if (ret) { + dev_err(dev, "unable to enable pcie clock\n"); goto err_pcie; + } /* power up core phy and enable ref clock */ gpr1 = readl(imx6_pcie->iomuxc_gpr + IOMUXC_GPR1); -- 2.19.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox