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 14237ECAAA1 for ; Fri, 2 Sep 2022 07:40:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3F19284A44; Fri, 2 Sep 2022 09:40:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G4SrKIqR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 619FB84A3E; Fri, 2 Sep 2022 09:40:18 +0200 (CEST) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (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 191F484A3E for ; Fri, 2 Sep 2022 09:40:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=saproj@gmail.com Received: by mail-lf1-x133.google.com with SMTP id z25so2121028lfr.2 for ; Fri, 02 Sep 2022 00:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=7LDlSfsehbK8HWRKYyRRtt8OUUMKqojbFTv5c5i4o8U=; b=G4SrKIqRDCVeLb7RJ+8hh+rfXrvqVF5XYl9zb6Cba4E/+EErspTgVlyM10Y85WK2z7 i3XhQLZLroybjjaoffXJaLhqU0GEUZKw6xA5LGZmIfnTRwRV7dkIiKhbMKoV9Xh+SsYW HRerktraL92Lv6Tu4ZSa3Qqpv/OTfclrHpM+79RdHoTCvAMn2CucVuYbKWfpUWly7pck uZz0PjrZBB30IQTEE5EsFQ7I+uPDucRdTpqnGKJpdGkMHUPwFzRPqHQVh3qYd+KXI6ka BttERfLFjYxcKd7MXQz+tTUSGGhfB2jE7vdpq7RzP1FKHP+najK3vmAeEfqa/0ebcF3h R6YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=7LDlSfsehbK8HWRKYyRRtt8OUUMKqojbFTv5c5i4o8U=; b=EFTQ7+Rl5cOSH6yDvOUyazg9/JNkBoJdmODy+NJhqmyiu0pfaxMsiYBHiqSaT/cil5 I3AlCy80jC1cSon4+PB2pDWrdqVN89yzdrnTEedgIL4fQCBv4WXBmET4m0REaPmqyfYs pCwyjXU/EPGT3sZ9z5tWf9q6Plbw/ib6q3qY3RI5Dr5CBkUym4dy9cfm4iifGSpC9RaU v+Jb7r706JbhQbhGtG2OvlP5phkAqn4d4+nIWHYBdrPjmANy/XTtoQQPeT5EFcJfOmqq j7jey2pVMMXd/aiWg21XbBIYe4y+c8sGiufewMtHhIRe1i6prDyO1ujn8llMKaZ5erko kfDA== X-Gm-Message-State: ACgBeo1R6BmHCLbwqhcejcIFKetfnb3a78qLH2iujpwVR+uiK+Hkxjp0 7CAGCwDD7+yTPIL4JsgXvqZ89m8s9nYN+A== X-Google-Smtp-Source: AA6agR6vb9hQvRBlo64BSTYtizq02uYlCBC4Q4R46Y1xt2YWJ4k3JIyBHt05RBHfLDNF0jSgVjnQrw== X-Received: by 2002:a19:9149:0:b0:494:743d:d6b2 with SMTP id y9-20020a199149000000b00494743dd6b2mr6761775lfj.636.1662104415245; Fri, 02 Sep 2022 00:40:15 -0700 (PDT) Received: from saproj-Latitude-5501.yandex.net ([2a02:6b8:0:40c:bdef:fb0c:46dd:15b5]) by smtp.gmail.com with ESMTPSA id f19-20020ac25333000000b0048a9a756763sm165632lfh.19.2022.09.02.00.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 00:40:14 -0700 (PDT) From: Sergei Antonov To: u-boot@lists.denx.de Cc: jh80.chung@samsung.com, peng.fan@nxp.com, yamada.masahiro@socionext.com, sjg@chromium.org, rick@andestech.com, Sergei Antonov Subject: [PATCH] mmc: ftsdc010: make command timeout 250 ms as in the comment Date: Fri, 2 Sep 2022 10:40:10 +0300 Message-Id: <20220902074010.1171646-1-saproj@gmail.com> X-Mailer: git-send-email 2.34.1 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 Get rid of discrepancy beween comment /* 250 ms */ and code which shifts by 4 thus dividing by 16. So change code to shift by 2 and make the timeout value 250 ms. Signed-off-by: Sergei Antonov --- drivers/mmc/ftsdc010_mci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index 570d54cf9d8f..cabb747fbbdb 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -30,7 +30,7 @@ #include #include -#define CFG_CMD_TIMEOUT (CONFIG_SYS_HZ >> 4) /* 250 ms */ +#define CFG_CMD_TIMEOUT (CONFIG_SYS_HZ >> 2) /* 250 ms */ #define CFG_RST_TIMEOUT CONFIG_SYS_HZ /* 1 sec reset timeout */ #if CONFIG_IS_ENABLED(OF_PLATDATA) -- 2.34.1