From patchwork Thu Aug 27 09:25:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 1352450 X-Patchwork-Delegate: eugen.hristev@microchip.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=KVU7ShWB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bccvy1Vj1z9sRK for ; Thu, 27 Aug 2020 19:32:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 51BAD8158B; Thu, 27 Aug 2020 11:32:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=microchip.com 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=microchip.com header.i=@microchip.com header.b="KVU7ShWB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 984788221F; Thu, 27 Aug 2020 11:32:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from esa6.microchip.iphmx.com (esa6.microchip.iphmx.com [216.71.154.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3EA7081260 for ; Thu, 27 Aug 2020 11:32:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=Eugen.Hristev@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1598520757; x=1630056757; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1pxfs3hMGyLPAAdlayv7Wjbdwol2rPS+tpuLHeCo60A=; b=KVU7ShWBdgS16ATCcTXjcFVuurHT1fbox6qz/vjivWRGCiFZFwcuDlTA 3kvk6ryR9QTJuReT+F/17PYAsu7nF5D4GeBSxM3qhrQ/+2oo/5f2FwNKw 6ekzwC01C4d9K5cqfG9KkGsrRpgxsS1r7eDRUjh2InCxJ0Ch27GcfTqud misNXrDsSaQSjatUrr3KDQUh+1o6eskhh0vKMeONEwhc7tHlB/WrEREB/ 4/jEQk1RfWwSdR7EKeyuK2OipZDq37n3/GAwUjm9B4451cvOsuJrzTIpg sOqA5LiFnQOhqf+9boHol4xnSTPxyIfOQudrtKNVEy4cN4tOHvSQbuVzn g==; IronPort-SDR: oT8wZWXwxi8CgAegYzwXE5jl9/+QD8PgTETESxRZPzuv1M9srqZZezNMTasXVERiYkt19FebMi xykmY75gvYWTReI1gUgDH4e/V681BGm3b+Zu164rXi3dG/9Bj9uEPi3los4osa0m3X/EARf93t c3ke8lzmNz3pi7otbyjttQhjHdtkEln90g6UMoEA5bIdHze5A099DDvo/sScm5+F/6IhnLQ4O+ P9LmzBLyQs0w1/zpoVHh7q0dnex0tpHoVmOl+Kr9Q+NBP7U7zvfRvgdMY5Dt4IYjjzjKn2YqGl PGs= X-IronPort-AV: E=Sophos;i="5.76,359,1592895600"; d="scan'208";a="24401721" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 27 Aug 2020 02:32:35 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 27 Aug 2020 02:27:12 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 27 Aug 2020 02:27:53 -0700 From: Eugen Hristev To: , CC: , Eugen Hristev Subject: [PATCH v2 5/6] mmc: atmel-sdhci: enable the required generic clock Date: Thu, 27 Aug 2020 12:25:56 +0300 Message-ID: <20200827092557.269129-2-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200827092557.269129-1-eugen.hristev@microchip.com> References: <20200827092557.269129-1-eugen.hristev@microchip.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean The second clock of the IP block (the generic clock), must be explicitly enabled. Signed-off-by: Eugen Hristev Reviewed-by: Peng Fan --- drivers/mmc/atmel_sdhci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index 54b660c34a..c67b065061 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -85,6 +85,10 @@ static int atmel_sdhci_probe(struct udevice *dev) if (!max_clk) return -EINVAL; + ret = clk_enable(&clk); + if (ret) + return ret; + host->max_clk = max_clk; host->mmc = &plat->mmc; host->mmc->dev = dev;