Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp56481ybg; Mon, 8 Jun 2020 16:18:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZfeoRKWzrezHG+4TbMxZJgbKWpCb/8qRo8dbH/IdbkQznCzUN1WaaXIdBemXgsawDf4oq X-Received: by 2002:a17:906:2cd5:: with SMTP id r21mr8220605ejr.20.1591658315777; Mon, 08 Jun 2020 16:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591658315; cv=none; d=google.com; s=arc-20160816; b=yk/+ZT7kuuR/Bsw3p6xaK7UOmBA3AxapSOmXOdcBp8SeRQesqHYe56K4rQ2/dp/OGj tjAtIUKjAmhGEa7NQ033zUDJEacYeZhJ774dn8X819EhnvsmInp071gFHWj7isMAte4v ACwaA7YIU+qFRLliOTD6ZXdfAHtFIB+OMBBf0bInRAO0eJh1ua/xKj9cY7MhBKjuTGps oLFD1FAPba3rPXmGNm6JC7g2JYMXMe33kAni3lYxde9g5p/1NfYcPzcds8M6Up7AoVmR XtADMzO2jgp0p8fUcgflcSChjAov0ohKeY9KNZFkAMlPxEPIwRk15pgOOvtIiZVoxAe7 1CKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YoBw2Hc9Llmk/x58A+dMX2Awhp25YZQHYxuOO8d6c3Y=; b=fmWCXMePJOMBAYCPjgNXEzVVddeetiLS32ti4yK6GG+J11mikoHyox0Oamn86jsCEN nvYjyGhLdSnYp2VoF6bmw59ELScUaokINvkXolE5GemiDDoK9cgkejYum0jO7hjk3+m4 /IFDpIfHr4Kf6qMdMWJspSldlHkvF+FXnqWRztqiEW8UWJD4pU1wguqDcgK6IFrIc/qZ pW1G6BHnhnmHfY9s8csRpu3tvIwS7iiO4dAr9Cg6wQ9SzaWa3+6dzwOVkm3oJUoIVKWu 1VQSLZqIOknVgIcTnn26MlogiWuqFjY9tPBJeWItV05gvFx2vxyp4a7q+9Z28uXSeIh0 sKFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iU6rdbZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si9867348ejc.223.2020.06.08.16.18.09; Mon, 08 Jun 2020 16:18:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iU6rdbZU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729745AbgFHXOL (ORCPT + 99 others); Mon, 8 Jun 2020 19:14:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:58672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728947AbgFHXLk (ORCPT ); Mon, 8 Jun 2020 19:11:40 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 196C920CC7; Mon, 8 Jun 2020 23:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657900; bh=qok90Y6RRP2J8tbxAucBbgy2dtFP7l/geCBkoIHHl4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iU6rdbZU84/Gd86RxLrvvOjpFdu/0y1Tx7qQInn7zKgWl0fvisoLrrRMxlFpc2gHT l64ENTpVdZiO5t/eQaX46ltVdTil5ac+Vt21Pv8rMEoLqD5e+bDf3YsrDhBuiTBkHQ 8Jpc6dumfSdlx0eEixRUpjj9GygYiM6Zju7rry9E= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Haibo Chen , Ulf Hansson , Sasha Levin , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.7 254/274] mmc: sdhci-esdhc-imx: fix the mask for tuning start point Date: Mon, 8 Jun 2020 19:05:47 -0400 Message-Id: <20200608230607.3361041-254-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haibo Chen [ Upstream commit 1194be8c949b8190b2882ad8335a5d98aa50c735 ] According the RM, the bit[6~0] of register ESDHC_TUNING_CTRL is TUNING_START_TAP, bit[7] of this register is to disable the command CRC check for standard tuning. So fix it here. Fixes: d87fc9663688 ("mmc: sdhci-esdhc-imx: support setting tuning start point") Signed-off-by: Haibo Chen Link: https://lore.kernel.org/r/1590488522-9292-1-git-send-email-haibo.chen@nxp.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 5ec8e4bf1ac7..a514b9ea9460 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -89,7 +89,7 @@ #define ESDHC_STD_TUNING_EN (1 << 24) /* NOTE: the minimum valid tuning start tap for mx6sl is 1 */ #define ESDHC_TUNING_START_TAP_DEFAULT 0x1 -#define ESDHC_TUNING_START_TAP_MASK 0xff +#define ESDHC_TUNING_START_TAP_MASK 0x7f #define ESDHC_TUNING_STEP_MASK 0x00070000 #define ESDHC_TUNING_STEP_SHIFT 16 -- 2.25.1