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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30603C433EF for ; Thu, 23 Jun 2022 09:07:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2A984843D8; Thu, 23 Jun 2022 11:06:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qbYWXoSV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA21784385; Thu, 23 Jun 2022 11:06:23 +0200 (CEST) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4E90884383 for ; Thu, 23 Jun 2022 11:06:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pf1-x431.google.com with SMTP id d17so9544707pfq.9 for ; Thu, 23 Jun 2022 02:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DiDudrUvT+j453jr5d1wEhbYbIdjPUExf82tA9rAR40=; b=qbYWXoSVk+kFanry/N3HRaGgZ9qKZ13LWJuhsJ1u/mrCVk4XuG1t7eMXShtA9hqMVW dzi3nNd5VN3WLpv3xMUECEIqDIPEaYOGtHT9uQV5f/gCh/HvNCQaJ/EXyXdL5o5sbP0Z iCrxugJUN5+hWu2KORLo8RLPWArTq/ByZoM0RK+F5SGn+NAa78llqLji2KBnQBRc7/fX SBYoNvSO79GrQC0GOLjeL7dWqDxoVU+fpt0pF8YBG6Js+rEuyTjnhzDFQXqZfYO45ENw 5jLe2eUQX76eGWV1/Ua6NbX+Y5OWFJ8visA7OqnBQkBnYkp7ZIYSRSXmib4IkBl/ma7W 0qSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=DiDudrUvT+j453jr5d1wEhbYbIdjPUExf82tA9rAR40=; b=A+qQIm7nc2Hu3jRW+OkTRbTEclXCgW3rSa+GiPtBElvX1pwTk53wpGjwA0m3j6PdZH M03S36SEgPkVYIxKoZ0S0J6/oi+OBGpV3QRgz73Qb2zetJkU7YEij6irIuTlExk9xifs 9VTmvXhSttHafJY8G2yVkfFU44zKmncXawdJSHTuouZHIBPGfMoXRyAu0dtbFRE+yd9w zsC2bw7eUEkCG/ZVLavFLYMG+6SoC/7lMjuiZWcx7gUfLFFKJtaGQ3Co0165sg0YjJ4J /2lnPCoEg2fXE5avevfvAL5E7YdEUhFj3ZfLCEH065Bz5o+N23VuqT7OEYMVYOQHcU6q 7gdg== X-Gm-Message-State: AJIora9MKJt2x333WRT65F2WGAIkXsPWcV1vizzxkiZxDWckVP5RZiIU bWHH0sec1DcR2kaAZE3qYtM= X-Google-Smtp-Source: AGRyM1v2zQV9vjG7EQUlAw8Ph2oLRAEHiGLJ7JBg7pGUyg30i73r3s4g11Th33CiaMzLNolEqV/08g== X-Received: by 2002:a63:7d44:0:b0:40c:8cb1:eeaa with SMTP id m4-20020a637d44000000b0040c8cb1eeaamr6655762pgn.597.1655975176961; Thu, 23 Jun 2022 02:06:16 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id 193-20020a6214ca000000b005087c23ad8dsm3496142pfu.0.2022.06.23.02.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 02:06:16 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Lukasz Majewski , Sean Anderson , Chia-Wei Wang , Peng Fan , Jaehoon Chung Cc: u-boot@lists.denx.de, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH RESEND 6/9] mmc/aspeed: Add debuging for clock probe failures Date: Thu, 23 Jun 2022 18:35:33 +0930 Message-Id: <20220623090536.3868414-7-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623090536.3868414-1-joel@jms.id.au> References: <20220623090536.3868414-1-joel@jms.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Joel Stanley --- drivers/mmc/aspeed_sdhci.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/aspeed_sdhci.c b/drivers/mmc/aspeed_sdhci.c index 453731571987..c71daae97584 100644 --- a/drivers/mmc/aspeed_sdhci.c +++ b/drivers/mmc/aspeed_sdhci.c @@ -26,12 +26,16 @@ static int aspeed_sdhci_probe(struct udevice *dev) int ret; ret = clk_get_by_index(dev, 0, &clk); - if (ret) + if (ret) { + debug("%s: clock get failed %d\n", __func__, ret); return ret; + } ret = clk_enable(&clk); - if (ret) + if (ret) { + debug("%s: clock enable failed %d\n", __func__, ret); goto free; + } host->name = dev->name; host->ioaddr = dev_read_addr_ptr(dev); @@ -39,6 +43,7 @@ static int aspeed_sdhci_probe(struct udevice *dev) max_clk = clk_get_rate(&clk); if (IS_ERR_VALUE(max_clk)) { ret = max_clk; + debug("%s: clock rate get failed %d\n", __func__, ret); goto err; } -- 2.35.1