From patchwork Fri Nov 6 02:27:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 320698 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp948457ilc; Thu, 5 Nov 2020 18:28:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvNHqd/ECD/Rojz6JCS0rPe6zeJxW+0HVrYB3Hm47MOifRfS29oqPdD/Dxsb0/PaGTsjvg X-Received: by 2002:a05:6402:216:: with SMTP id t22mr4628890edv.190.1604629690124; Thu, 05 Nov 2020 18:28:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604629690; cv=none; d=google.com; s=arc-20160816; b=ljCEjiKpFIeVNhbZq9lAErse0pX4kaxICcFVGfUxkxuCWR20Inehv8hwHAeo8K+EH3 oBRHGwISj/eDwN8dGFurtvmK2NYNd0yZFeVIwG5x3N/9c/3MaFfSwlWxr1MFvAcVPzA1 I4zgw3dYl6rIeNNbm6jDfoSnlcca0qeGbHxGrMTKKtWtKGc1iOwPKP4yyOA5N+ghcZkr 60gQA78v0iX3lXoA8RirD1z0lMSia2lwJK6sOtNAX1W81Kur5EQcximkd+1uirjKKPbb 35Eg40VQZ2wQBvQ5ZfmUGzLaGYdDwl8JKCRaJbNv38xxxOC8pOuQaFXZIdCa0TqfYzQy gcug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Kxtn2tv4u7bnPJ1IBZRdbU16YLLAD3BvCHIEx+fGmCc=; b=OsvLbzDslQjbnP6zxPyeKpIajjCvQoxppvK5b6sJMCa66Vn2drsuWJfg7WAA5BuAPy ZrW6hViHRBB5qPMHndqIip2evpO3TQ34Ysiv5L8OE76vyp/eFYJhfF311z1FegFS6xgO no8hUQlEBGY/73QA1YHYFY664M9J2Fy2BUgoMYw+v+nFj0Rdm8GjAwbDJBbdmc7IJxGY inyWux2LqiB6olED2BaG7UwZNSoKMEKVCClMV9J6y2L7HHdwNvBPP1Fkvi89RwRFZ0XL XXfrXsr3462hWQxtIQp0Ny15MASUjWBgrMRL2Oj5hHJC8vnECZ7hn6m3l6dSVRh4VlvK QDOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RtjEQNH+; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si2729973eja.538.2020.11.05.18.28.09; Thu, 05 Nov 2020 18:28:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-mmc-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=@linaro.org header.s=google header.b=RtjEQNH+; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-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 S1725616AbgKFC2H (ORCPT + 4 others); Thu, 5 Nov 2020 21:28:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbgKFC2G (ORCPT ); Thu, 5 Nov 2020 21:28:06 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BD64C0613CF for ; Thu, 5 Nov 2020 18:28:06 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id z1so1711712plo.12 for ; Thu, 05 Nov 2020 18:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Kxtn2tv4u7bnPJ1IBZRdbU16YLLAD3BvCHIEx+fGmCc=; b=RtjEQNH+ub9yP3HG5/0wESf0GkMMsrWd5B9RNqMCieK5gQb7I/lJ1roDbJeqfFtQEs jSiZR7s5D0LlvApzIULrfWNteZNka3Af6HF2iTHLSiwT2xK4cySGnza7N70fyy8amRjc P9BfYpZpGobcBtRABvCTNTMHjgH2DLr8/4ekiLMEk5jwmGMdN2l231QpJYzaUe1idy8t osXwYskw3ZTXkTLuVN2oEO0ACPXWjQ8ILvsCFftWtcWPVfIkL5Z2W9hH5fNRfldpqMXX HtiIjRfGBJoaPJFoghqTZ/f9+X7+EiqsiEQjfTZmZ1jRZ8qc9pIK7+bO8e2L9Uh/oFv0 RlNQ== 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:mime-version:content-transfer-encoding; bh=Kxtn2tv4u7bnPJ1IBZRdbU16YLLAD3BvCHIEx+fGmCc=; b=Q5HDlx4vubBhfV2wnoMoJoBE4rI3LlIZrzHqjS68f5v+foqklfby7rtyVTYs6BRB41 HjE4W2vNag0zPxh0maeWBYjc/Wt57abLFA1GWuNsUxDKRln1UigU+rveD43E6r2QDmjS xfml6Ea3tEmzoCUFOyz933+gHLlNFWCR2m3UakMoVsuQNNqGNFNgR/GxGOxOBliLZNNj bNI1MzCsw1Vmh4CMYsPF3zRfx+hVIrtpPEXbZy0a71GkSTWIUzvUIfJa5UPaDDWOrZz9 s9w78yiGIJp49KfyvYUp9vL5QU3S/rJ7keq7aLymESq+TVFoPHJsoz/WbOAtBNltAdCH 5u3A== X-Gm-Message-State: AOAM531xvf8mCOZrMRb30Q6V0ZAtEND24L/J+WHHUuyJ2KCXqE5hxZ04 0rcSBg8jqpiR7nEqlpZpAonDwQ== X-Received: by 2002:a17:902:aa47:b029:d6:ac0f:fe76 with SMTP id c7-20020a170902aa47b02900d6ac0ffe76mr7462plr.42.1604629686096; Thu, 05 Nov 2020 18:28:06 -0800 (PST) Received: from localhost.localdomain (p784a66b9.tkyea130.ap.so-net.ne.jp. [120.74.102.185]) by smtp.gmail.com with ESMTPSA id m13sm3703040pjr.30.2020.11.05.18.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 18:28:05 -0800 (PST) From: AKASHI Takahiro To: ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, ben.chuang@genesyslogic.com.tw, greg.tu@genesyslogic.com.tw, AKASHI Takahiro Subject: [RFC PATCH v3.1 03/27] mmc: core: UHS-II support, skip set_chip_select() Date: Fri, 6 Nov 2020 11:27:02 +0900 Message-Id: <20201106022726.19831-4-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201106022726.19831-1-takahiro.akashi@linaro.org> References: <20201106022726.19831-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org mmc_set_chip_select() should be called only in UHS-II mode, and not for UHS-II mode. Signed-off-by: Ben Chuang Signed-off-by: AKASHI Takahiro --- drivers/mmc/core/core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.28.0 diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 5541ed956c4d..4e12bd98fc08 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -898,8 +898,10 @@ static inline void mmc_set_ios(struct mmc_host *host) */ void mmc_set_chip_select(struct mmc_host *host, int mode) { - host->ios.chip_select = mode; - mmc_set_ios(host); + if (!(host->flags & MMC_UHS2_INITIALIZED)) { + host->ios.chip_select = mode; + mmc_set_ios(host); + } } /*