From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gYlKh-0005H2-Gt for barebox@lists.infradead.org; Mon, 17 Dec 2018 05:20:48 +0000 Received: by mail-pf1-x442.google.com with SMTP id b85so5767722pfc.3 for ; Sun, 16 Dec 2018 21:20:37 -0800 (PST) From: Andrey Smirnov Date: Sun, 16 Dec 2018 21:19:02 -0800 Message-Id: <20181217051925.17582-43-andrew.smirnov@gmail.com> In-Reply-To: <20181217051925.17582-1-andrew.smirnov@gmail.com> References: <20181217051925.17582-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 v2 42/65] 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