Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1028488pxb; Fri, 1 Apr 2022 02:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8jame+5C5CSavlK7eDn8D0rQmrPeGQksohIsGsDyFDlBi+c7crDQ/wNO+nepg6+/5Hhi2 X-Received: by 2002:a17:906:434e:b0:6d0:ed9c:68bc with SMTP id z14-20020a170906434e00b006d0ed9c68bcmr8366247ejm.70.1648805809375; Fri, 01 Apr 2022 02:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648805809; cv=none; d=google.com; s=arc-20160816; b=kFsvlwXFtI3QTAQEz36S/oIBR7/RSZ5v6OKlvmyUsCZWJ49yUhZECIz84QZ+UcpEYF 3LjCdtKKD2yCasDsSejvt9d13N3y6ujQ+0ACToRso3uMGWksiMI3I3CUTNRwqBypiA3u d8KIi0ZlxT5f6MZrsoiJElCN6m0LgpywAGzZN8Z+aQg6OJ8vvqeMJOQ+12nc6avchOk0 Uxv+0IkXgBS3VCADFnFkGIKNySQzZv+j6wSOzs/xNQuOdRPagC3g/dGRJEuqnrsrurVA 6S7ZthCB0+/KA4hEvJZFpD0QCyeea17Dlw3p0n99jLt1H3Px6oIimUT9d6ZqcLqsHhKl OAiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CRRhoVFWtZ0S0Mdt0tFUKPnnS7vbxgmtNb4uEapAszg=; b=ow36xNiuVSomqWykEGM0FAT7P0yrfz2vHqBg/nHqgIQaqjVeRSe1/H1G/0WZDfHe6v yZhc1VQgl9YfXI/u5weU3oror6Fhi4wL88g8PMya9cyoLwAJ7ycd6BWBwhDhD8z4SOli NOQmGKg6/Vpp9vatw3qCwuugkhzoK/LuWzVP7WgYeifYUtB4psN3cKM1zKJtd9WRzUQ9 Ycxwqr+EDmLKvkzYVn3At13PovREWdyxPgueE8NrO48Ec1LCPQXIH+5Zejj6CwXGfEuJ enRtDPHhKlgB3GzbImPzG00DbmZsr5AkbKiWYeRef3QwHX+E+6dY/mLTtg9wIHVomKBs HM+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MQRNxdhf; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kw10-20020a170907770a00b006e13401e207si1279323ejc.730.2022.04.01.02.36.23; Fri, 01 Apr 2022 02:36:49 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=MQRNxdhf; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235111AbiCaOJL (ORCPT + 99 others); Thu, 31 Mar 2022 10:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbiCaOJK (ORCPT ); Thu, 31 Mar 2022 10:09:10 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D31917ECE0; Thu, 31 Mar 2022 07:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648735641; x=1680271641; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=yifzU5rFm1OtJGITqIk6n5GweD95AgrLZBnlElGXMcU=; b=MQRNxdhfqbN1QY0EmIi9Ydr4yVNSrAq3OEfBqPApMs318YgkqVvAvTgz yyYcMhceLqE5Rr2WIJtkiaP2IcJ6ikryYxUTrI475/1OSGD5FGGw3LIW+ /zsdhMFOjU+8Bv2otou6N2f0zmb2LPhJusVaWjnEivlbUFqgAQ0VPjQ4C zbI8wM9Ymq/bwxhAT5ji7iwPUO6hdxG5i6kfs/2buq7rH4/CSoRNvGC2C GxmnsTptzVrW3PVxYeHKw2+DEJv9MxiSuZYN81kNuWq0Hnq94/RDdQnpl hWvFgOqWR7SvC9Sxr0IXiWiUikFfmmYFrF/6Q2EDhMDgkr/cMzTuAoTDH g==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="258677650" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="258677650" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 07:07:12 -0700 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="720476243" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 07:07:10 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nZvRd-00A2CN-Ee; Thu, 31 Mar 2022 17:06:37 +0300 Date: Thu, 31 Mar 2022 17:06:37 +0300 From: Andy Shevchenko To: Christian =?iso-8859-1?Q?L=F6hle?= Cc: Ulf Hansson , "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" , "adrian.hunter@intel.com" , "digetx@gmail.com" , "avri.altman@wdc.com" Subject: Re: [PATCH 1/2] mmc: mmc_spi: parse speed mode options Message-ID: References: <20c6efa9a4c7423bbfb9352705c4a53a@hyperstone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20c6efa9a4c7423bbfb9352705c4a53a@hyperstone.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 On Thu, Mar 31, 2022 at 07:28:47AM +0000, Christian L?hle wrote: > Since SD and MMC Highspeed modes are also valid for SPI let's parse > them too. Makes sense to me. Reviewed-by: Andy Shevchenko > 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 > -- With Best Regards, Andy Shevchenko