Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp2046656ybj; Wed, 6 May 2020 09:38:52 -0700 (PDT) X-Google-Smtp-Source: APiQypJw3zWj2d4kc9lBHCQ45pGPMV/qF19/y9/b1pmskfulkE6C9WZPqEcN5lPTUjU70CHoXWcs X-Received: by 2002:a17:906:2b43:: with SMTP id b3mr7743303ejg.231.1588783132315; Wed, 06 May 2020 09:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588783132; cv=none; d=google.com; s=arc-20160816; b=lbFZpWrO1Q6fH165YvXdWZULyxq8/t4M+grVXySaurRY7yLjx8EgnLl6ovJxW8AHhc QMajFLuEECPSOCuFo71ChNPW9V+4/QOihM95Kuw4Tq2UCjquLXZYjZ1vs9i/HfC2uZcA +FuTESuP8GvKvq3o4DUgQntAZwfNoS3OD6RO3osbZBCWBn89efMAhsPC+TxT6nBXiAeD ZvuEexwzeTdp8XuNkynz/J/qodu+E83kb7pO8+H/Orknz8Bu74I6QySnf7r2M5RaChuc 8PuL48jEs2VEbh0aKxbqtl7zHcLP3KGaYEMzpzWQzAYoD7EW8vqj2750ilyF6IMfd567 oZMw== 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=qEp/F3SbsRoDv1jpNGzhOxbfis7J4KDcT9P9z6XWkHg=; b=Jffkx0No/XeyRNDji8xB3s3Js6gSujoU5VLoQwoeLwWojsU5HMnn33LlYgHeLO0q+c mIazRh3IxwlOrWiBdpOQMHlAT9/w1+wcT5FJg0d92wDgbLnx7yvtIYXyLQmUH6LbXHG7 5DRlHAUHaThjzNSw9bUPyGd8RSOlZLu3L3MftFoaf0Cw+60od2jzui6UOsegzR3niiR3 AnCayGbSto2G5Roaymr1oZQodxkQLuqW1JaJ64bijaXgEZaWGbhktDKIoEBNwareKsJy vgIZJXZuWFXVCSJxsWerxB1aC9t/lzZJemVgw3ZLbKEuIbmI/YZmBbPxDXpRTzREW+ww Uh4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eVnVRn4S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si1429127eds.152.2020.05.06.09.38.28; Wed, 06 May 2020 09:38:52 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=eVnVRn4S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729966AbgEFQgu (ORCPT + 99 others); Wed, 6 May 2020 12:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729789AbgEFQgt (ORCPT ); Wed, 6 May 2020 12:36:49 -0400 Received: from mail-vk1-xa41.google.com (mail-vk1-xa41.google.com [IPv6:2607:f8b0:4864:20::a41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96EB4C0610D5 for ; Wed, 6 May 2020 09:36:49 -0700 (PDT) Received: by mail-vk1-xa41.google.com with SMTP id b14so694731vkk.10 for ; Wed, 06 May 2020 09:36:49 -0700 (PDT) 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=qEp/F3SbsRoDv1jpNGzhOxbfis7J4KDcT9P9z6XWkHg=; b=eVnVRn4S8Hb7sl1mAhlDpCkwg2p7TvzKWg0qVVe/dWs+kNzu0dkUnF12cuHSLRfxJA k1JsPhNHp6gpFvg3metDV/hPplaRlu3pQXHecw2lhBu91JqE8L0mSdp5Zmc9jNhUWqIB 1xGIHjkcCR9gqoJXy85LS+19SdMWYi5+Ih9W8LUXfrQqUUPxnoOEUhmxOrI+MLwWHhr+ E9RKn25uZiu4s/nZwk/EVD7PaM11znkaVIxenvyVhmirLDphTRgJue6k6ZZ0J3TwDTz6 0ZY1n1k1WDVUIhczz4M4qBDev1+txdlb4jFvLkVck7EDsXiBjF4LLHsLj3SpxlVGryrw tIxQ== 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=qEp/F3SbsRoDv1jpNGzhOxbfis7J4KDcT9P9z6XWkHg=; b=R864htuUURutF030D/bprwyY3atIm/dSFy86sVvU6GRVVqfdLeWTBESL2hhYHp744j DYpDO2oP66yxYiGPnzx9Jf6W0DiQ0Uv4i2AIy9/fn7h/57ki256YIMUBFVs4Wadl4Lq+ E8SCPFKGcONl8asTvV+ApvU3PXYLH2ZNtYjajC88CIGGIo3XkBlhEVQ5vZWM2NeNKg+q p/ghalMwKhBUhresuBKtGQLReI0EyHoGm8yVm2OVhERG7kwG9ueRxgQdD14F9SoF8fdO KjApzgpPosk8IINkmU61gGHru9qsNv5/1tz2tDnxRI7hVpJFQ2hq5omBZB4aE4Q7lwJk ow7A== X-Gm-Message-State: AGi0PuYAS2hBfPCes1k5H0F4mKXFTvTnGu4uk8MgZb1D/N6fW3RUZ6sg ekgmnuyJ5Jbx+xtShuOU2Arazfxd6QpzO8itJjml4w== X-Received: by 2002:a1f:8ccf:: with SMTP id o198mr8122974vkd.53.1588783008587; Wed, 06 May 2020 09:36:48 -0700 (PDT) MIME-Version: 1.0 References: <1588031768-23677-1-git-send-email-chun-hung.wu@mediatek.com> <1588031768-23677-2-git-send-email-chun-hung.wu@mediatek.com> <9bc2454f-0b42-e256-7927-2564b56f369f@codeaurora.org> In-Reply-To: <9bc2454f-0b42-e256-7927-2564b56f369f@codeaurora.org> From: Ulf Hansson Date: Wed, 6 May 2020 18:36:12 +0200 Message-ID: Subject: Re: [PATCH v5 1/5] mmc: core: Extend mmc_of_parse() to parse CQE bindings To: Veerabhadrarao Badiganti Cc: Chun-Hung Wu , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Jonathan Hunter , Al Cooper , Adrian Hunter , Florian Fainelli , BCM Kernel Feedback , Andy Gross , Bjorn Andersson , Michal Simek , Thierry Reding , Chaotian Jing , Rob Herring , Mark Rutland , Matthias Brugger , Linus Walleij , Pavel Machek , Kate Stewart , Greg Kroah-Hartman , Martin Blumenstingl , Pan Bian , Thomas Gleixner , Allison Randal , Mathieu Malaterre , Stanley Chu , Kuohong Wang , Yong Mao , Android Kernel Team , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , "moderated list:ARM/Mediatek SoC support" , DTML , wsd_upstream@mediatek.com, Linux ARM , linux-arm-msm , linux-tegra 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 May 2020 at 15:01, Veerabhadrarao Badiganti wrote: > > > On 4/28/2020 5:26 AM, Chun-Hung Wu wrote: > > Parse CQE bindings "supports-cqe" and "disable-cqe-dcmd" > > in mmc_of_parse(). > > > > Signed-off-by: Chun-Hung Wu > > --- > > drivers/mmc/core/host.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c > > index c876872..47521c6 100644 > > --- a/drivers/mmc/core/host.c > > +++ b/drivers/mmc/core/host.c > > @@ -302,6 +302,11 @@ 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; > > This change is breaking emmc driver on qcom platforms where this dt > property is defined. > > [ 1.543453] cqhci_deactivate+0xc/0x38 > [ 1.545627] sdhci_msm_reset+0x40/0x58 > [ 1.549447] sdhci_do_reset+0x48/0x7c > [ 1.553180] __sdhci_read_caps+0x7c/0x214 > [ 1.556913] sdhci_setup_host+0x58/0xce8 > [ 1.560905] sdhci_msm_probe+0x588/0x8a4 > [ 1.564900] platform_drv_probe+0x4c/0xb0 > > So, we cant have this flag defined before sdhci_setup_host(). > > I will have to clear this cap and re-enable it in our initialization. Thanks for reporting! I have dropped all the four patches from Chun-Hung, so we can figure out how to fix this. Please help to review the next version of the series. > > > + if (!device_property_read_bool(dev, "disable-cqe-dcmd")) { > > + 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) { Kind regards Uffe