Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6174371ybx; Mon, 11 Nov 2019 05:08:26 -0800 (PST) X-Google-Smtp-Source: APXvYqz+khzZ0Qb1cvkL7c3Qk4KC/rFv6nMTbHxso9WACx5H15HQi5x98+bOBocUdIDgKIfE9rLR X-Received: by 2002:a7b:cb4a:: with SMTP id v10mr19200828wmj.106.1573477706716; Mon, 11 Nov 2019 05:08:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573477706; cv=none; d=google.com; s=arc-20160816; b=PyogZzw6jyNLDHvnbW6ff5ZdyZw/vkVzbwtnB1vcJ5A6hdKGO3byKixTCRZ0kuL5yZ lslO3DPtcVlyB1YXx1PdXxyTiinS+yTEt5H4mESM9WUlldWKIa3yneuSAwDpl0ZO7Oqe hEyegSl3pwLjEY6LoHThgaY9Gs3rUTwYaGE/npfQEYD8uDHVMxNff7JrnmfKt2pIjqhq hbsL5nGn1LMiK2PtSm+Qe6RTIJ2iPAl7xzjMCMc6YVB4GzRb0MAl6+PosY9YQvqYslqs LAeSt5RFt0jeAxO8hzV+G7pwMFr8EG+PPltvHmsbn0ORIZoJ06CIO2dFdPPinrn4I8ED 5Ywg== 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=t8vYvx18GD5TBNd1q0mA7jDSSmkQRIuSLUp/v+fUMPA=; b=bK1ZLmmXbL5wqroEKunD/rFejju9EjhlErNgemIg63pbtGJ5wiiO+UM8MUmvkG9w5g XuD3vWRxBn+mrNRdS6bm1TccL4A8If+dLupzLi2BbfXVB4BKroF6JqfTCdTgomoKm9U5 I37CS4K1YVXrLs1HGUh3+mhtb/c1chFeFvwrnFsxPxweg3NEoM33LaQLp6BSQ8w6eipa YyRXaGuuQqircNpDZwNxlNw8H9hmelClZ8rz85MarqjYZhZ+mZ0DeFP2fQD8sM+1ScdS 7yslYyaxo972eEYs07g53bM/U8MYrEgqD/PeMChDj/HBTAWhmE6ZHIm7zifM6r0RZGAl +VQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mr3jgn8X; 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 d6si11681348eda.262.2019.11.11.05.08.02; Mon, 11 Nov 2019 05:08:26 -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=Mr3jgn8X; 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 S1726976AbfKKNFX (ORCPT + 99 others); Mon, 11 Nov 2019 08:05:23 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:41282 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbfKKNFW (ORCPT ); Mon, 11 Nov 2019 08:05:22 -0500 Received: by mail-vs1-f65.google.com with SMTP id 190so8628744vss.8 for ; Mon, 11 Nov 2019 05:05:22 -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=t8vYvx18GD5TBNd1q0mA7jDSSmkQRIuSLUp/v+fUMPA=; b=Mr3jgn8X85TRmMABlrppdjqKXTw3KoQ0tkejNY2UUpSNRBX4S1su6qu9/bD/8aiibf vL7rp++v1RVTiZIvvNVJG1X/INTj3uzIglB6Lyo55sqFpH6itTcsrScfFVE1T58FOimr ZDpg3mH6j2crHZMGuJxEGRFJFiTE4Yn/uC750/u4TFUbXzj7VdPV4YyqpdGkK1wT4RIw HW+GpYCl/MWI9UYpf/EyAJaVnNN5MtuI0IR1iSyP3EXmAE8jtWaOlh35qGKFwLNIJOig jTo0hoeXucWpQ678zzjlmCLNoBYMP+40Mv0yOB3CVGTFgwkYSpRAzw9qOvdR88GOxXtZ 2r+w== 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=t8vYvx18GD5TBNd1q0mA7jDSSmkQRIuSLUp/v+fUMPA=; b=JEw4vZWtDScOqrEGIOTFk3Pl46yJGaFCZ93d9IASBeQ2JVuM9+TpyYkdCY2xjYiNlD qXacl2fBO9AgrxYABRAP5kLNQoJAByHzbhrQSCML8UoaIBzf2SsuIgXzuegb10iGzCxj eMAtMQ7v0Egzi+fcO7Ah0+kSz2BVIJAMFJJocpjzeXM3DbQEHGWrAvQHGeRTMkfQgLdP QbUs7/bo5TRlggAwJnSRL7lXiL78alRoSs8t4gX7T+8rxXi23XbZ5zXG7/R7hfAWB9IS 0/7GnxYBZ8sNbNpCvhVVLatdVaNH1t1tDVGCxsvJIdasioAOyhY2w1V/Jzt2QXjbeBYU 0H/g== X-Gm-Message-State: APjAAAXcaxORHqvFeGfxXOqkPuLyvpEanH/4OY2MaLbszUyOx1WFmGTj kZGa1oPrx4gcOlm4GeH/VOcQ1pol6wzpqajfMbv8Rg== X-Received: by 2002:a67:2e0f:: with SMTP id u15mr19259795vsu.89.1573477521399; Mon, 11 Nov 2019 05:05:21 -0800 (PST) MIME-Version: 1.0 References: <1572590582-11056-1-git-send-email-chun-hung.wu@mediatek.com> In-Reply-To: <1572590582-11056-1-git-send-email-chun-hung.wu@mediatek.com> From: Ulf Hansson Date: Mon, 11 Nov 2019 14:04:45 +0100 Message-ID: Subject: Re: [PATCH 1/3] [1/3] mmc: core: expose MMC_CAP2_CQE* to dt To: Chun-Hung Wu Cc: Chaotian Jing , Rob Herring , Mark Rutland , Matthias Brugger , Linus Walleij , Pavel Machek , Kate Stewart , Greg Kroah-Hartman , Martin Blumenstingl , Pan Bian , Thomas Gleixner , Stanley Chu , Kuohong Wang , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , linux-mediatek@lists.infradead.org, DTML , wsd_upstream@mediatek.com, Linux ARM 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 Fri, 1 Nov 2019 at 07:43, Chun-Hung Wu wrote: > > Expose MMC_CAP2_CQE and MMC_CAP2_CQE_DCMD > to host->caps2 if > 1. "supports-cqe" is defined in dt and > 2. "disable-cqe-dcmd" is not defined in dt. > > Change-Id: I3d172e6bcfac34520c3932a6f8df2e20f2c0d05b > CR-Id: > Feature: Remove these tags please. > Signed-off-by: Chun-Hung Wu > --- > drivers/mmc/core/host.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c > index 105b7a7..efb0dbe 100644 > --- a/drivers/mmc/core/host.c > +++ b/drivers/mmc/core/host.c > @@ -319,6 +319,14 @@ int mmc_of_parse(struct mmc_host *host) > host->caps2 |= MMC_CAP2_NO_SD; > if (device_property_read_bool(dev, "no-mmc")) > host->caps2 |= MMC_CAP2_NO_MMC; > + if (device_property_read_bool(dev, "supports-cqe")) > + host->caps2 |= MMC_CAP2_CQE; > + > + /* Must be after "supports-cqe" check */ > + if (!device_property_read_bool(dev, "disable-cqe-dcmd")) { > + if (host->caps2 & MMC_CAP2_CQE) > + host->caps2 |= MMC_CAP2_CQE_DCMD; > + } > > /* Must be after "non-removable" check */ > if (device_property_read_u32(dev, "fixed-emmc-driver-type", &drv_type) == 0) { > -- > 1.9.1 > Otherwise, this looks good to me. Kind regards Uffe