Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp346475rwb; Fri, 18 Nov 2022 02:14:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5iXaOjfSaj4a1NBC3xbmOFdNT/pIoZ9YQ9aKdQloZFN26EY9Go5q66+ds6iNTQDOsyMTx1 X-Received: by 2002:a63:5d62:0:b0:477:2263:a5d with SMTP id o34-20020a635d62000000b0047722630a5dmr3529084pgm.536.1668766473238; Fri, 18 Nov 2022 02:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668766473; cv=none; d=google.com; s=arc-20160816; b=pBEvgYe9Tj0pRD2Q7rllR+Za7ZyV9zj9sfmt9Vbv/SsnNYTchChOj/t5ab4p3YLbFp x3M7z8KLswUoeXGjqkJFFnVWnw0v5PGMM63mTPaSiAV3+tI4R1Sv6Sp6MLWBSnAU8GH0 FR8pBVucXZiKdH4EjDoiOspdJufbaGHRksNiYpvga8EILZKSB+StBUazX/LHqa7wXI9j xzF4GPmFlvg6lZ5nmVjL5LXnJp3oCcJSJxZeEbtTD7ml/HWcVsYhu7j0/0UfoOgDAj7Z llbBWh1lOTcuNHQSWYc95w22nwyNy3+jgim47dPGHvOcgEq3LhLJv3h4mIMdqoGGf1ZL Aciw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=I/T+U5xig92E26QLpbaS0JSSh1bc8Rb/sitkqdj++UY=; b=PDNMTk/SmuHzsVfcJVP6f8z01dSlKfWITkZ/OcZzXODrJE2d+timeuW1Z75acuHxSl QzeE+mbbEn3MP7MWz6OHFMlU6PpaQXwIKvpbS2iubx6mdb9tb+ovfezvlIHGQIgcr7Hu DPp8WS1tIyjiOdM5JIkc7XK8RYUmCmb67UsBleMQKjTRGIqBiad8aB4s/90k97NvEDQ3 n8XdGqP7KvO2GTshHgGMgk5LG3UoUORCBSNpy/RI3ih33b3CyY1tDlLNZyKWlDlQ/vRp gUf8X3rrACkuagjJ94AwVaZEhnlDgRrwuuz1vHcoUpIaOVdQHv0amAuFc7+68XGBRoi5 yiWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JOeqFuFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a63e74d000000b004740c08d1b5si3503978pgk.222.2022.11.18.02.14.21; Fri, 18 Nov 2022 02:14:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JOeqFuFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242094AbiKRJqt (ORCPT + 91 others); Fri, 18 Nov 2022 04:46:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242033AbiKRJqH (ORCPT ); Fri, 18 Nov 2022 04:46:07 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CEF88FF80 for ; Fri, 18 Nov 2022 01:45:51 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id jn7so2242622plb.13 for ; Fri, 18 Nov 2022 01:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=I/T+U5xig92E26QLpbaS0JSSh1bc8Rb/sitkqdj++UY=; b=JOeqFuFFwdPXlKF/IsyzIs6DdoUpWL3QnvPerUT6qUDQ/k92uJaCqhtD7Fc4bCtows OUEyFCX8NnigPC8tbvLj/2c8yugL1LZI9S7sRjhAES6ktj9Lk9CWDSs5AZBocVognEY+ wwcM3I30ICZkffrQxtaDaLwXwM7FqxNWfPfEjj2jnOlRfS9sTjB8bjzpj6+BSn7w27R7 g1a83DUiuh+EJOzdOJdPWVrZi5VVI8qd3UtQSd1SUl2dRpkR/QvRGZIjRlRxeFwwqLsh 1iMjDPSV3J1mUtX8WCeag/bmAQGTd3ykiH18Tr2MXUOS03LwI5rWlg+DHp7kcFn6SuO3 Hs+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I/T+U5xig92E26QLpbaS0JSSh1bc8Rb/sitkqdj++UY=; b=xlpeHkTw3rGFj7E6vCjg5G1MlW25AEfkgGHh7fdCeD2HSmGDndukkbMQM2CAeT6GIQ a8gCIiSR6zIL3JSGz6SCL9tixVnobsIUwmE8zwlF3mcyE5jtBxq+Itoo9B/1DCqMc/WW rEZpP5nJp8gGySFXqK3qjrgUEVNKMrjfgUJr7oofYdToFhAjwHoEDqCwjGqQaOy7SO3S NSSO0rf2Z3FiyQsNYuRDPsxhvWFYIjq22sbfw835HHeqf4kmryz7JyHydqUw9qFqbO9d myl/X+GuMiCih+ftjKch1R6gheGhXj/veaJEDyrcv2KpLwrF7E9JaM3QPUyf7+CLCrTo BeTw== X-Gm-Message-State: ANoB5plVtIDMX4z1NDzaDMp/f8lpPTrYVRaAYYX19tKqElPWRJB5yvSn 2ys4lhIALa3ynzCGSuy97pzQV1ZS4IwWgStAcLE/6Q== X-Received: by 2002:a17:90b:1d45:b0:218:6db5:fd98 with SMTP id ok5-20020a17090b1d4500b002186db5fd98mr7768758pjb.164.1668764750852; Fri, 18 Nov 2022 01:45:50 -0800 (PST) MIME-Version: 1.0 References: <20221111122314.307-1-charl.liu@bayhubtech.com> In-Reply-To: <20221111122314.307-1-charl.liu@bayhubtech.com> From: Ulf Hansson Date: Fri, 18 Nov 2022 10:45:13 +0100 Message-ID: Subject: Re: [PATCH V3 1/1] mmc: sdhci: Fix the SD tuning issue that the SDHCI_TRANSFER_MODE is cleared incorrectly To: Charl Liu Cc: adrian.hunter@intel.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, shaper.liu@bayhubtech.com, chevron.li@bayhubtech.com, thomas.hu@bayhubtech.com, xiaoguang.yu@bayhubtech.com, shirley.her@bayhubtech.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Nov 2022 at 13:23, Charl Liu wrote: > > When cmd->opcode == MMC_SEND_TUNING_BLOCK, the SDHCI_TRANSFER_MODE > should also be kept > > Signed-off-by: Charl Liu Applied for next, thanks! Kind regards Uffe > --- > change in V1: > Keeping the SDHCI_TRANSFER_MODE when cmd->opcode == MMC_END_TUNING_BLOCK > > change in V2: > add the mmc_op_tuning interface to judge if the opcode is tuning CMD > > change in V3: > cancel the redundant code > --- > drivers/mmc/host/sdhci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c > index fef03de85b99..98ee688de50d 100644 > --- a/drivers/mmc/host/sdhci.c > +++ b/drivers/mmc/host/sdhci.c > @@ -1465,7 +1465,7 @@ static void sdhci_set_transfer_mode(struct sdhci_host *host, > if (host->quirks2 & > SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD) { > /* must not clear SDHCI_TRANSFER_MODE when tuning */ > - if (cmd->opcode != MMC_SEND_TUNING_BLOCK_HS200) > + if (!mmc_op_tuning(cmd->opcode)) > sdhci_writew(host, 0x0, SDHCI_TRANSFER_MODE); > } else { > /* clear Auto CMD settings for no data CMDs */ > -- > 2.32.0 >