From patchwork Mon Jul 11 12:49:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Majewski?= X-Patchwork-Id: 646930 X-Patchwork-Delegate: l.majewski@samsung.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3rp4gJ6dglz9s8d for ; Mon, 11 Jul 2016 22:49:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 02243A7578; Mon, 11 Jul 2016 14:49:45 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yr5WvLpY3KIY; Mon, 11 Jul 2016 14:49:45 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 26CF6A7564; Mon, 11 Jul 2016 14:49:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 961A2A7564 for ; Mon, 11 Jul 2016 14:49:41 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w0q_w6-RiXHX for ; Mon, 11 Jul 2016 14:49:41 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by theia.denx.de (Postfix) with ESMTPS id 12CBAA7558 for ; Mon, 11 Jul 2016 14:49:37 +0200 (CEST) Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OA501LVJIAKCEB0@mailout3.samsung.com> for u-boot@lists.denx.de; Mon, 11 Jul 2016 21:49:33 +0900 (KST) X-AuditID: cbfee61b-f798b6d00000114d-9d-578395dd28c0 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 28.BC.04429.DD593875; Mon, 11 Jul 2016 05:49:33 -0700 (MST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OA5003IXI9WDA40@mmp2.samsung.com>; Mon, 11 Jul 2016 21:49:33 +0900 (KST) From: Lukasz Majewski To: u-boot@lists.denx.de, Tom Rini Date: Mon, 11 Jul 2016 14:49:03 +0200 Message-id: <1468241345-17980-1-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 2.1.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t9jQd27U5vDDZ5PULTYOGM9q8WbR9wW bx5uZrR409bIaLHr9mQWi29btjFaLL0gZTF10mZ2i7d7O9kdOD3m/ZzI5DG74SKLx7xZJ1g8 Xh1Yxe5x9s4ORo91094ye1w8c5nJo2/LKsYAjigum5TUnMyy1CJ9uwSujOXrFrIXPOGseNpw gr2BcTJHFyMnh4SAicSrP31sELaYxIV764FsLg4hgVmMEi/uPoNy/jBKfJ5/EayKTUBP4vPd p0wgtoiAucSbKzdYQIqYBTqZJBqX/2AGSQgLxEi8nzKBEcRmEVCVuH9yJVgzr4CbxKLtbewQ 6+Qkzh//yTyBkXsBI8MqRonUguSC4qT0XKO81HK94sTc4tK8dL3k/NxNjODweia9g/HwLvdD jAIcjEo8vAsmN4cLsSaWFVfmHmKU4GBWEuGtmAQU4k1JrKxKLcqPLyrNSS0+xCjNwaIkzvv4 /7owIYH0xJLU7NTUgtQimCwTB6dUA2PFodN33i4OX+7U5u8v+12yIN1PequHUdAEsXdy91se reKIK5w77XiQgtfifce89RQTLrGXvmhw/L5BUGnuirA3cienKj5I+jFde/LUfY89XkXOke/T iXP8n39f9HX4ggiusuTZgfM2LJlbniR5zV5GUOiu3yWf1939AevWVz9s3zfx70E7o6VKLMUZ iYZazEXFiQCAMp+xKwIAAA== Cc: Marek Vasut , b.zolnierkie@samsung.com, Lukasz Majewski , Pantelis Antoniou , Steve Rae Subject: [U-Boot] [PATCH 1/3] COSMETIC: mmc: sdhci: Add CONFIG_ prefix to SDHCI_READ_STATUS_TIMEOUT X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This change gives common prefix for SDHCI_READ_STATUS_TIMEOUT. Signed-off-by: Lukasz Majewski --- drivers/mmc/sdhci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 604f18d..aa4cd4f 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -127,7 +127,7 @@ static int sdhci_transfer_data(struct sdhci_host *host, struct mmc_data *data, #define CONFIG_SDHCI_CMD_MAX_TIMEOUT 3200 #endif #define CONFIG_SDHCI_CMD_DEFAULT_TIMEOUT 100 -#define SDHCI_READ_STATUS_TIMEOUT 1000 +#define CONFIG_SDHCI_READ_STATUS_TIMEOUT 1000 static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) @@ -244,9 +244,9 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, if (stat & SDHCI_INT_ERROR) break; } while (((stat & mask) != mask) && - (get_timer(start) < SDHCI_READ_STATUS_TIMEOUT)); + (get_timer(start) < CONFIG_SDHCI_READ_STATUS_TIMEOUT)); - if (get_timer(start) >= SDHCI_READ_STATUS_TIMEOUT) { + if (get_timer(start) >= CONFIG_SDHCI_READ_STATUS_TIMEOUT) { if (host->quirks & SDHCI_QUIRK_BROKEN_R1B) return 0; else {