Message ID | 20181102150328.21972-4-marek.vasut+renesas@gmail.com |
---|---|
State | Deferred |
Delegated to: | Peng Fan |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FqIIat/G"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42mllB5q18zB4WZ for <incoming@patchwork.ozlabs.org>; Sat, 3 Nov 2018 02:06:14 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6A516C22564; Fri, 2 Nov 2018 15:05:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2A69BC225A2; Fri, 2 Nov 2018 15:03:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 16B11C2259B; Fri, 2 Nov 2018 15:03:50 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by lists.denx.de (Postfix) with ESMTPS id 59C4AC22583 for <u-boot@lists.denx.de>; Fri, 2 Nov 2018 15:03:45 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id b203-v6so2155328wme.5 for <u-boot@lists.denx.de>; Fri, 02 Nov 2018 08:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qKHE2+seveFYpZhdex3WZhI2N5dsyBonKL2UkOd1gJk=; b=FqIIat/G2T+u8mB9z9dc+xYV72PCFVh8JsDITfPiWFI/6CNMG05p9TV7iRvcdhuXT3 QJwLCV2BwFgo68yNCnfI1if4/MHwghjYaEk0MPu+sUCaCiT8ZIbSg+l/e420GIfb083o /4OERuV8gjCet8RBmrr8nEtRhzS4ru1VeahCpK/VGTpQQAZwRaBPlZpIPueIJhrjWRZL FaUWb3m5CXsSHKfl1O9yD/3vURTy/d1wv9SBFCUyIE6Ws5CAm+5PawvNvLTVmHygDOCO v0Ft31pq9OhgRlzwWDhUhSVpZmmrO2u938syap3F7AoZiBvRjC4UX1xliGMJSYst1NkA f9Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qKHE2+seveFYpZhdex3WZhI2N5dsyBonKL2UkOd1gJk=; b=iA2c+x1fwp08ovPyzvP9OPYGn44qL/nXJtNSYp4rxi45wm+fG3njOS1M8xKNzOm9qq E/dwPw6IwVpAKEg71+eAack+nocKi5q3T64A+x74aR2dKZQPZnq3cHl3WnMFz7sl4EH9 gI2mQIbrr2aNvpqUYS4JdnJU2JROSR8I7zCX9Plk48ziXoLqCSPjNKM4oIiN+SpzPXxm NtsX+fCkFziThq+sOYlDAjvzKKW1vLo00pc8Ksyd04GNPEtvKbMPyAXTrptjjORQMnTt 1HkFbiVlqyNHQQFiTEqojS0bsto17GbV1saKH7fGbN+SsKgZUk9ECNGUAKc3Y7udSZei 2Dzg== X-Gm-Message-State: AGRZ1gJlotzjwwZlsWRsXKeLPfdRyFkF2MZVXo8igqX5fJSB4cvB3Dtj XS2uN/WSV8vP29QurWylDl3A4+Pm X-Google-Smtp-Source: AJdET5dPCYyXqdktokY31+i/aJaAUGSU7BBWJ5IzVb8jq9hMuc227TseY+m7fpcfsY1rE2iPzIHyuQ== X-Received: by 2002:a1c:83cb:: with SMTP id f194-v6mr80219wmd.26.1541171024569; Fri, 02 Nov 2018 08:03:44 -0700 (PDT) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id l67-v6sm60125880wma.20.2018.11.02.08.03.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 08:03:43 -0700 (PDT) From: Marek Vasut <marek.vasut@gmail.com> X-Google-Original-From: Marek Vasut <marek.vasut+renesas@gmail.com> To: u-boot@lists.denx.de Date: Fri, 2 Nov 2018 16:03:19 +0100 Message-Id: <20181102150328.21972-4-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181102150328.21972-1-marek.vasut+renesas@gmail.com> References: <20181102150328.21972-1-marek.vasut+renesas@gmail.com> Cc: Marek Vasut <marek.vasut+renesas@gmail.com> Subject: [U-Boot] [PATCH V3 04/13] mmc: tmio: Configure clock before any other IOS X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
[U-Boot,V3,01/13] mmc: tmio: Simplify pinmux handling
|
expand
|
diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 785b654671..2a73829d99 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -642,11 +642,11 @@ int tmio_sd_set_ios(struct udevice *dev) dev_dbg(dev, "clock %uHz, DDRmode %d, width %u\n", mmc->clock, mmc->ddr_mode, mmc->bus_width); + tmio_sd_set_clk_rate(priv, mmc); ret = tmio_sd_set_bus_width(priv, mmc); if (ret) return ret; tmio_sd_set_ddr_mode(priv, mmc); - tmio_sd_set_clk_rate(priv, mmc); tmio_sd_set_pins(dev); return 0;
Configure the clock settings before reconfiguring any other IO settings. This is required when the clock must be stopped before changing eg. the pin configuration or any of the other properties of the bus. Running the clock configuration first allows the MMC core to do just that. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)