Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp259362pxb; Thu, 31 Mar 2022 04:59:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLoT7VHH38m4mcPKghX0EuLOMkLdDwHmzV/cXrDE2cbiyeMgBeDpHwQhViPa8sR3q+XTEQ X-Received: by 2002:a63:310f:0:b0:385:fcbf:c225 with SMTP id x15-20020a63310f000000b00385fcbfc225mr10595851pgx.31.1648727943913; Thu, 31 Mar 2022 04:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648727943; cv=none; d=google.com; s=arc-20160816; b=EN+4QOtnOlNUTT0dKCDcrn7xEcQnXyEOq0FTNM1fMDmfVR9LjGQ8ayw124PYN9W0Km OC10SNr2/yDWKyaaaopkQMgX+AFsGqDsKOPsuXBXzz7iNg735GommVGMIa5AI3N+8K+O 1EVqlVY0l8Ku5s07+kBMz2+qDyPEvl+INH43v3tSIwZ7VdLpsfvHeFFtjpPhxSTFX6Uo voefSG1n1g8EH1lhHeaKSMQVIruZYJ45seUJAAedSwxWPYYQRVLS5+uaLEcoEYAAI784 G0ykcm2KvyR7CQvaYVlHHbd5WVkYhHGjHu7cmDDtB0tIn586Gi4/2IKb/tQirZDD0pIX cKSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=yPqCVWix9mAoPJbfmB6+HHaqsDVmpxC6i8zYnNn06Rs=; b=JgoRBU2uIuIpn7iIB9eOs6C5TPyFOopkP8/pgDssU+UAkZNff1oCHKT12Km3QaRb2s TedPvBJPSH/ZP6P2zav2p1NHCLyo/QZFsn9zJx8ofFqU2yL9LwG2GchDINZlCL+AwcUK UtSHBbpJbXjecC8LISkkrCN8H9WLS8yDUXSApOfOA9sPqLun208ZuLcvcbQPJnCNUjCp POh36uEAhPqeCATIuW/DV55BPyXnrptJPpgcQVubjH9vaHugCYswpcRXqeYi5s31BkIK DSKDcxBB5zjpGVQZ2WHcnb3Aw/K1nXmvPB3Ad09j2aajavMtazBztPFowFs59SLFEJnw v0Og== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hyperstone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a17090a6b8600b001c976ed0feesi2789124pjj.102.2022.03.31.04.58.52; Thu, 31 Mar 2022 04:59:03 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hyperstone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbiCaHam convert rfc822-to-8bit (ORCPT + 99 others); Thu, 31 Mar 2022 03:30:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbiCaHai (ORCPT ); Thu, 31 Mar 2022 03:30:38 -0400 Received: from mail3.swissbit.com (mail3.swissbit.com [176.95.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D4E377D6; Thu, 31 Mar 2022 00:28:50 -0700 (PDT) Received: from mail3.swissbit.com (localhost [127.0.0.1]) by DDEI (Postfix) with ESMTP id 02F36462580; Thu, 31 Mar 2022 09:28:48 +0200 (CEST) Received: from mail3.swissbit.com (localhost [127.0.0.1]) by DDEI (Postfix) with ESMTP id E8153462537; Thu, 31 Mar 2022 09:28:47 +0200 (CEST) X-TM-AS-ERS: 10.149.2.84-127.5.254.253 X-TM-AS-SMTP: 1.0 ZXguc3dpc3NiaXQuY29t Y2xvZWhsZUBoeXBlcnN0b25lLmNvbQ== X-DDEI-TLS-USAGE: Used Received: from ex.swissbit.com (SBDEEX02.sbitdom.lan [10.149.2.84]) by mail3.swissbit.com (Postfix) with ESMTPS; Thu, 31 Mar 2022 09:28:47 +0200 (CEST) Received: from sbdeex02.sbitdom.lan (10.149.2.84) by sbdeex02.sbitdom.lan (10.149.2.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 31 Mar 2022 09:28:47 +0200 Received: from sbdeex02.sbitdom.lan ([fe80::e0eb:ade8:2d90:1f74]) by sbdeex02.sbitdom.lan ([fe80::e0eb:ade8:2d90:1f74%8]) with mapi id 15.02.0986.022; Thu, 31 Mar 2022 09:28:47 +0200 From: =?iso-8859-1?Q?Christian_L=F6hle?= To: Ulf Hansson , "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" , "andriy.shevchenko@linux.intel.com" , =?iso-8859-1?Q?Christian_L=F6hle?= CC: "adrian.hunter@intel.com" , "digetx@gmail.com" , "avri.altman@wdc.com" Subject: [PATCH 1/2] mmc: mmc_spi: parse speed mode options Thread-Topic: [PATCH 1/2] mmc: mmc_spi: parse speed mode options Thread-Index: AQHYRNACkgNu3ZFsJkmPWUm4Hk64og== Date: Thu, 31 Mar 2022 07:28:47 +0000 Message-ID: <20c6efa9a4c7423bbfb9352705c4a53a@hyperstone.com> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.154.1.4] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TMASE-Version: DDEI-5.1-9.0.1000-26804.006 X-TMASE-Result: 10--0.036500-10.000000 X-TMASE-MatchedRID: Pcf9tAO75fCjw14NC3gXsBF4zyLyne+ATJDl9FKHbrkFDK6GZYQJfeWs WsO3yC+R3QLokIDIx5AEE2WBGwi7GEkjllSXrjtQEzQnFLEeMUljFT88f69nG/oLR4+zsDTtjoc zmuoPCq3Cm3CnLLVUv6sY7DmQqcN3sXAiAjufsEOba5xi6u49NCGz5f1YHY3o X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 X-TMASE-INERTIA: 0-0;;;; X-TMASE-XGENCLOUD: 0ba8af54-7a4e-45e3-ad95-daac4f8d37d4-0-0-200-0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Since SD and MMC Highspeed modes are also valid for SPI let's parse them too. Signed-off-by: Christian Loehle --- drivers/mmc/host/of_mmc_spi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/of_mmc_spi.c b/drivers/mmc/host/of_mmc_spi.c index 3629550528b6..bf54776fb26c 100644 --- a/drivers/mmc/host/of_mmc_spi.c +++ b/drivers/mmc/host/of_mmc_spi.c @@ -70,6 +70,10 @@ struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi) } else { oms->pdata.caps |= MMC_CAP_NEEDS_POLL; } + if (device_property_read_bool(dev, "cap-sd-highspeed")) + oms->pdata.caps |= MMC_CAP_SD_HIGHSPEED; + if (device_property_read_bool(dev, "cap-mmc-highspeed")) + oms->pdata.caps |= MMC_CAP_MMC_HIGHSPEED; dev->platform_data = &oms->pdata; return dev->platform_data; -- 2.34.1 Hyperstone GmbH | Reichenaustr. 39a | 78467 Konstanz Managing Director: Dr. Jan Peter Berns. Commercial register of local courts: Freiburg HRB381782