Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp348285pxu; Thu, 3 Dec 2020 01:38:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRhnQj52/xWX0dvbicaiIJbxHCnxcYh/zS4DfsMSTWAgV/hAlD2K+dQrPdJ1FRkPSOo5Pl X-Received: by 2002:a50:f307:: with SMTP id p7mr2001104edm.368.1606988288860; Thu, 03 Dec 2020 01:38:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606988288; cv=none; d=google.com; s=arc-20160816; b=d7wwIzwsKv67iHL2asOHSsGXdBHWPVYiE+hTB1sKvzAs6Q4LhbZf1hTGT28gIkNVVj h1VmeD/+0e0lwt5LpLifyLLStKXSxBRQwTXrnrDrqW1g9czM34o2rhKBgJpGkTdd9Anb r97bJdGBpiACkRWl8iZnI/0vhj/BeAKUpbvVHQz71JEHGpNDniPOqkP5YUyQJKH4P2YF aYdoV+OJKmGtaqw+N6ApSrfwijfaPGxtbGFoEsf2SZ6qKf7zCiORv1YGtC/vKxj31ylo h0LRxXsTEclNnSSeCIaJ7t/KggKqDHiBFKln5EKHh5kfqBWaI4uNDsdUIChHuuOUBA5/ Dy+A== 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; bh=1LsoL65sxJkD1B/2s4qcHpUiiUUQ/QWK7ZUAQ7TtT9I=; b=o7dhWOXqxDIRqh+CneEXC5zujb9r+lv3j3cTB8TO5rPzcDyAEth5pEJ6OAopnrLXlL wgzdI7lnVpEF+5jaLuGs3HTr3y7GxqeV2U9j82QO1rvhcZpMFV4vNJq+GLSbuK6KZGqK iXPViV9+pyhJjRj9bxEMEXz+3ohMefhGMpJJzYeMND4d1KBIj7QkQoJN15IT6G1p6d++ pKwvBs3ysb1iWE64Nb8JC0c8wkuGx8HeQyg/F3QqcuGjMUimIhlZph6MIxzVbMOb0zi2 h9nOG0NtplZzYgmiuKJnS5cRGW68YuLEgvVyTyjT7wZ7TZFxWTtSVSMhWPCQcSymC1zR APQA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si748799ejg.677.2020.12.03.01.37.45; Thu, 03 Dec 2020 01:38:08 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387782AbgLCJfa (ORCPT + 99 others); Thu, 3 Dec 2020 04:35:30 -0500 Received: from server-x.ipv4.hkg02.ds.network ([27.111.83.178]:37296 "EHLO mail.gtsys.com.hk" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgLCJf3 (ORCPT ); Thu, 3 Dec 2020 04:35:29 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.gtsys.com.hk (Postfix) with ESMTP id 90BAE2344E90; Thu, 3 Dec 2020 17:34:28 +0800 (HKT) X-Virus-Scanned: Debian amavisd-new at gtsys.com.hk Received: from mail.gtsys.com.hk ([127.0.0.1]) by localhost (mail.gtsys.com.hk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tn3TO5nzTCrS; Thu, 3 Dec 2020 17:34:28 +0800 (HKT) Received: from s01.gtsys.com.hk (unknown [10.128.4.2]) by mail.gtsys.com.hk (Postfix) with ESMTP id 7585F20001F5; Thu, 3 Dec 2020 17:34:28 +0800 (HKT) Received: from armhf2.gtsys.com.hk (unknown [10.128.4.15]) by s01.gtsys.com.hk (Postfix) with ESMTP id 6B80CC019FF; Thu, 3 Dec 2020 17:34:28 +0800 (HKT) Received: by armhf2.gtsys.com.hk (Postfix, from userid 1000) id 6E69C200756; Thu, 3 Dec 2020 17:34:28 +0800 (HKT) From: Chris Ruehl To: Avri Altman Cc: Jack , Chris Ruehl , Ulf Hansson , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Veerabhadrarao Badiganti , Matthias Schiffer , "Gustavo A. R. Silva" , Yoshihiro Shimoda , Wolfram Sang , Ludovic Barre , Krishna Konda , Baolin Wang , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] mmc: core: MMC_CAP2_HS200_1_8V_SDR with mmc-hs400-1_8v Date: Thu, 3 Dec 2020 17:33:29 +0800 Message-Id: <20201203093338.10480-4-chris.ruehl@gtsys.com.hk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201203093338.10480-1-chris.ruehl@gtsys.com.hk> References: <20201203093338.10480-1-chris.ruehl@gtsys.com.hk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the introduction of an independent hs400 timing select, PATCH 2/3 the availability of the hs200 caps will not checked. Therefore cleanup and remove MMC_CAP2_HS200_1_8V_SDR / MMC_CAP2_HS200_1_2V_SDR from host->caps2 when mmc-hs400-1_8v or mmc-hs400-1_2v is used in the dts. Signed-off-by: Chris Ruehl --- drivers/mmc/core/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 96b2ca1f1b06..46fde60a2372 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -295,9 +295,9 @@ int mmc_of_parse(struct mmc_host *host) if (device_property_read_bool(dev, "mmc-hs200-1_2v")) host->caps2 |= MMC_CAP2_HS200_1_2V_SDR; if (device_property_read_bool(dev, "mmc-hs400-1_8v")) - host->caps2 |= MMC_CAP2_HS400_1_8V | MMC_CAP2_HS200_1_8V_SDR; + host->caps2 |= MMC_CAP2_HS400_1_8V; if (device_property_read_bool(dev, "mmc-hs400-1_2v")) - host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR; + host->caps2 |= MMC_CAP2_HS400_1_2V; if (device_property_read_bool(dev, "mmc-hs400-enhanced-strobe")) host->caps2 |= MMC_CAP2_HS400_ES; if (device_property_read_bool(dev, "no-sdio")) -- 2.20.1