Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1750888rwi; Wed, 19 Oct 2022 15:05:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MWsBal67F3M89LEizQOR9Z/3X6YBpFrBrQt17qX5t7QV5f5JerFqDZl+MabV0TRYRQtbH X-Received: by 2002:a63:5f03:0:b0:460:b08a:8c00 with SMTP id t3-20020a635f03000000b00460b08a8c00mr8812383pgb.142.1666217104573; Wed, 19 Oct 2022 15:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666217104; cv=none; d=google.com; s=arc-20160816; b=Hb+ynzr5MfbpIbER9HlJOadIEsYRRwZOVPB6ue1aXZMijtA68Vi0Zreuoly6abcaNM MQX5ShQpv8RlK27vFa1IUFSqodi3kNE612WmorM5V1to/7a37IllgyHvTLXfgtKLdwpf /ZHat3n15WGTSlBpZ9Bvplyf5C+sxu0P8pcL1r2K812ClN2KS+TeTSHoi+hGvTZHab9D 0D3i9KcIwUpq6OyKB/Q4XWMx3GRnb02ZMO42dok7XKswWusMFOYsML7A/NizYEgpjtso 2hoq9cJuu1owfi61Z/rns5i/aLon+GXjmCbt25GCsjldUXYqHPPwMSUv8e+z9p4lfUxx o3GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=y2aRiLyWvRUlvRE5N2MJoq49Gk7v0uQF4nuK/XgZXeI=; b=P/ExBoS2GwI3N2XAPkjKRjaYmsLeVWVXhnUFBUi0npSvlQHYWz50ZiXXgGDJcVApV5 G3N1Y6Am8TqQMnlGabQvktsATxNlHUNh25MPhVK9fmOCeVcmfaMiGlkH3USqk8V/qxlk L15lPLTxQANAqZWKK4YaebyfDlbAllG0vVdVzby/O+qYai0K4nNyi1A9v3Jxf1S80Scs Mj8N/Xf2PDLU91so7MO0d+gMiazMGRkuFYHlBLZ7AW6hvHDPfxLis5c2QMbUAprtuVuu BsWJi9fIREaeyKgjxNM2MDFcgxU3ogKpFs85Kt6u0B8Nr1jKE9ClMWoAoBWxjGo1s79h iIWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j5cM3oTJ; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t185-20020a6381c2000000b00437e609414dsi18672506pgd.563.2022.10.19.15.04.52; Wed, 19 Oct 2022 15:05:04 -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=@chromium.org header.s=google header.b=j5cM3oTJ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbiJSV4y (ORCPT + 99 others); Wed, 19 Oct 2022 17:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbiJSV4w (ORCPT ); Wed, 19 Oct 2022 17:56:52 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F02C3F9851 for ; Wed, 19 Oct 2022 14:56:51 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id h2so11175216plb.2 for ; Wed, 19 Oct 2022 14:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=y2aRiLyWvRUlvRE5N2MJoq49Gk7v0uQF4nuK/XgZXeI=; b=j5cM3oTJaW15wbf1WDQR3SG+HiIfE1NeKieuBFlF7niQeo5PlkEIsOSBaAY03P6xZP ETODBU7scJhRAAluN542ojdhne1x/nh1U/HMr82A9r6wuZfSoRE3n+5RQ0yOG+/q8KEc 4NrTwpgxy1Ua18JHIzBXlJzTeWF8b2JARfIVo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=y2aRiLyWvRUlvRE5N2MJoq49Gk7v0uQF4nuK/XgZXeI=; b=wYZXLxxCG56Jv6D38v2qXWSRtvbgaZ/Yt2HXb9ol9oK7xZR0ve2/Zc/sEmTPcVo1+v KlvyG0FL5S0DBi8Vbk4EaP/F6bILXxJJA57hO+HifGpgVRGiZzmb4mWOhC1tPllH/B4d hHdBBpwzgw/eWvnH4deN6xmkKd9AismqzYokmhtpkFAZp1NBmSBRaVjRE6drTEspi+Mp 58/ZDVGMKReKEI9r5oxCmydt5+J5PLnI4j4sUQNcpahO96grmznOBttd+3K0ahakQouS ZhRB04G6gfq20YzMwJ2T5mMcGn5F7EtoR8i4msTH2ceXN/IdLI3Zaij8GRPYwi+OF2YM GfHQ== X-Gm-Message-State: ACrzQf3vI/EP2wBBzfKBXOTfffSt9j7vqOEeItBnnnREjQk1n9D5q/lC S78VVorQ6UZPPaMXKYfbNw7UXA== X-Received: by 2002:a17:90a:aa8f:b0:210:bec0:bde with SMTP id l15-20020a17090aaa8f00b00210bec00bdemr2814613pjq.109.1666216611530; Wed, 19 Oct 2022 14:56:51 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:57b7:1f0e:44d1:f252]) by smtp.gmail.com with ESMTPSA id s6-20020a625e06000000b00562bc93f1c9sm11793504pfb.213.2022.10.19.14.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 14:56:51 -0700 (PDT) Date: Wed, 19 Oct 2022 14:56:48 -0700 From: Brian Norris To: Bough Chen Cc: Ulf Hansson , Shawn Lin , Adrian Hunter , Shawn Guo , Fabio Estevam , Faiz Abbas , dl-linux-imx , Al Cooper , "linux-mmc@vger.kernel.org" , Pengutronix Kernel Team , "linux-kernel@vger.kernel.org" , Florian Fainelli , Sascha Hauer , Thierry Reding , Michal Simek , Jonathan Hunter , Sowjanya Komatineni , "linux-arm-kernel@lists.infradead.org" , Broadcom internal kernel review list Subject: Re: [PATCH 3/5] mms: sdhci-esdhc-imx: Fix SDHCI_RESET_ALL for CQHCI Message-ID: References: <20221018035724.2061127-1-briannorris@chromium.org> <20221017205610.3.I7d01f9ad11bacdc9213dee61b7918982aea39115@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi, On Tue, Oct 18, 2022 at 07:22:04AM +0000, Bough Chen wrote: > > -----Original Message----- > > From: Brian Norris > > --- a/drivers/mmc/host/sdhci-esdhc-imx.c > > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c > > @@ -1288,6 +1288,13 @@ static void esdhc_set_uhs_signaling(struct > > sdhci_host *host, unsigned timing) > > > > static void esdhc_reset(struct sdhci_host *host, u8 mask) { > > + struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); > > + struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); > > + > > + if ((host->mmc->caps2 & MMC_CAP2_CQE) && (mask & SDHCI_RESET_ALL) > > && > > + imx_data->socdata->flags & ESDHC_FLAG_CQHCI) > > I think we can remove the condition " imx_data->socdata->flags & ESDHC_FLAG_CQHCI" here. > According to code logic, host->mmc->caps2 & MMC_CAP2_CQE means it already contain imx_data->socdata->flags & ESDHC_FLAG_CQHCI I don't know why I had this in the first place. Maybe just to be double-sure that caps flags aren't getting set elsewhere (e.g., by the core)? But you're right, and I've dropped this in v2. Thanks, Brian