Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp741897ima; Wed, 6 Feb 2019 07:39:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IbdawCT4xlrjhLXlcvwxs44hwV3qD7V/ZVZ3J8gHUzncWleXuzn+r6rXt9aAF2ZH1RbvDlG X-Received: by 2002:a63:eb0c:: with SMTP id t12mr9805001pgh.105.1549467544112; Wed, 06 Feb 2019 07:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549467544; cv=none; d=google.com; s=arc-20160816; b=MR8RKkNRaaqA5AUUl41vcWIG0sa4OLWhjIqQRGzSfWW42paBQzkpM3VQc8NrupPvr1 cAUB+pl5r3GulHb1eGHoO31uIZXSgrMtzRmSfpqMiSAEMQ52Obd2aD3HtDIZmkulSgqp 20DWwsESE/wu9YWuYac6IZwbqZmEPaXllg/5Xn0ATvaLYjf8UxbLiKo36LI2Ps9lPif6 C0Rs7f+QHjWXn4LnGwSUr4aQMc1oHUl/+hpK4oMXijq7TKCWMSFTvuiT7a1qNjUzE3Kg A9CkncOf1DdljeGYiKupbGCx2ohC/srtMLAdDwlJTKax3R/jVC7MNBJdkqiQncoL8oYk Egzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lz955wv4fnOkkLQqaldBnTCxXxBxagJ06nKx09S/P7k=; b=Jqa5V4oisAUWKYyw4hLUz9GJXbtqv8vb4Ba97lmoGf880kiR6KIEi9su0X0cQo94z0 v54WNvP07fmHkLyyzl2eKuMfhzX+RIj3PzK0GDhTxpsRLDvjiZhdlsNYjSJCXd61auuo kRBliLN41CG7VkdAsOsieZr8BJ5hUOgk65Trm9Xfa3R/JV44o80CGA1GeDQZvEut5qrZ 7NPlsCDdrEYo+pYgdYsQUCRyt+4D/iJF1xSVR+WnAB0KzpnKQ4QtBIH6Eb3u3gXbtsPy hyeLWEskz4PEinCPiaBlntktLyMrqPtEdxoeO6HXb/QFReP+9T3oa9P5rCymoWoKSkCJ nUtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AwfY5YYj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 127si1744090pfg.173.2019.02.06.07.38.47; Wed, 06 Feb 2019 07:39:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AwfY5YYj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731266AbfBFPPS (ORCPT + 99 others); Wed, 6 Feb 2019 10:15:18 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:43266 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729808AbfBFPPR (ORCPT ); Wed, 6 Feb 2019 10:15:17 -0500 Received: by mail-vs1-f67.google.com with SMTP id x1so4567649vsc.10 for ; Wed, 06 Feb 2019 07:15:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lz955wv4fnOkkLQqaldBnTCxXxBxagJ06nKx09S/P7k=; b=AwfY5YYjbEvUiLYGt8lvT+AiM175+aPha69gsnXSwdCKlGov5GG7kde5UFPt4ebiBY nyblwdkNOjBl1hxlPzPaeCjI457mqFoFgJ1gkC4EQttn0lV6gqhZjOugv2RxJaeh5XUv GBiRJpv11W/LxVopYnWU9g00WlGXMhS0mhTQMgHcTtawxCTmV9SOUdDracPeHJpxFm30 mKk/kf+8DDJrdXbcdCtAG8biVWYveR/misZfVeYxlGPMDFaOiqmC7QhCLPjep6uslIF6 kT9AECavtcVhPio0AxmOCbqOlaMLyJ+V6IyJ9JHYfU83voam3bLB4pAWRLvKtIfNZNlS lJmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lz955wv4fnOkkLQqaldBnTCxXxBxagJ06nKx09S/P7k=; b=W77ZpGeKAfE5umD6Dv6T6dLr3EB5frbtCBHqEIAcPxu1V7yljj2llfzRFDPjACl51x 4/6zXowwSUR2DcoE8MJPF0Ayoq1gFboxY4V0a0tX5LihIiMj9/X/TL4t13EN/V0ullCr yQHyBhuuBv9Gt0c1+v2G1cc2JdzFLRXwAFozS8ONK5VOhbfMhe4cu+zlQ4rbOuio3o81 G5arFKn2DaDJ7S/tTJAe3z66Zl31GLTsv8eiOXcXG4/FGjwhau+QAh/4vJL05bw96HuH 7z9X5b0If8q5HoEgmuVr1WTQY8CvNpDIWpdqhIttGLDQyYlk4RYd7ccVgi1aNAh3g+RI inpA== X-Gm-Message-State: AHQUAuapNu58ggL1BHPbmfyLUtGdToYyO2GPhkO5Dwi5FRzGWgmepR5x JJNmg58dz+FWlR3cYBrhwbptst8TZjoPNnASYW+96Q== X-Received: by 2002:a67:74c2:: with SMTP id p185mr4711960vsc.34.1549466116099; Wed, 06 Feb 2019 07:15:16 -0800 (PST) MIME-Version: 1.0 References: <1549452487-17193-1-git-send-email-avri.altman@wdc.com> <1549452487-17193-3-git-send-email-avri.altman@wdc.com> In-Reply-To: <1549452487-17193-3-git-send-email-avri.altman@wdc.com> From: Ulf Hansson Date: Wed, 6 Feb 2019 16:14:39 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] mmc: core: Indicate SD specs higher than 4.0 To: Avri Altman Cc: "linux-mmc@vger.kernel.org" , Wolfram Sang , Adrian Hunter , Jaehoon Chung , Shawn Lin , Avi Shchislowski , Alex Lemberg , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Feb 2019 at 12:29, Avri Altman wrote: > > SD specs version 4.x and 5.x have a dedicated slices in the SCR register. > Higher versions will rely on a combination of the existing fields. > > Signed-off-by: Avri Altman Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/core/sd.c | 5 +++++ > include/linux/mmc/card.h | 2 ++ > 2 files changed, 7 insertions(+) > > diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c > index bd48b28..c2db94d 100644 > --- a/drivers/mmc/core/sd.c > +++ b/drivers/mmc/core/sd.c > @@ -209,6 +209,11 @@ static int mmc_decode_scr(struct mmc_card *card) > /* Check if Physical Layer Spec v3.0 is supported */ > scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); > > + if (scr->sda_spec3) { > + scr->sda_spec4 = UNSTUFF_BITS(resp, 42, 1); > + scr->sda_specx = UNSTUFF_BITS(resp, 38, 4); > + } > + > if (UNSTUFF_BITS(resp, 55, 1)) > card->erased_byte = 0xFF; > else > diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h > index 8f429b6..d791813f 100644 > --- a/include/linux/mmc/card.h > +++ b/include/linux/mmc/card.h > @@ -133,6 +133,8 @@ struct mmc_ext_csd { > struct sd_scr { > unsigned char sda_vsn; > unsigned char sda_spec3; > + unsigned char sda_spec4; > + unsigned char sda_specx; > unsigned char bus_widths; > #define SD_SCR_BUS_WIDTH_1 (1<<0) > #define SD_SCR_BUS_WIDTH_4 (1<<2) > -- > 1.9.1 >