Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp271903yba; Thu, 25 Apr 2019 23:03:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDOOIlNE0/paGe1ivN36SMnXzhe7kJIg+onwLUsUcA2YyPV23W1dKF88zeiyjHfprDrnMC X-Received: by 2002:a17:902:854c:: with SMTP id d12mr44300761plo.150.1556258618983; Thu, 25 Apr 2019 23:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556258618; cv=none; d=google.com; s=arc-20160816; b=fq8OlkmepioHgENRc3tevclOiqmywsGOWBWV5jYfS5rqkVyEZB45nxK9U7LFf61DfJ 4Mb06c5jp4nQ9+eL6zMtwFbbjMYcK8NOJK4u9yj1CO7E4fK+sdBF05KhqUfxNQqPafKl ls/tZkjpgLjmkCa7yxBHA0W+yNziZ9menGCgacbv/JjZz6BSVBp4qY0QE+t1O28M8yqK hN7sHyzgSZJyWaK1Eb2DdwyD48maVa9BbGEfax54F16eozEEGpp2LWhm6vUbTSFPU8tD SVe4nglFBhh4NLQbcmtkCvG5mda0jisOuogoATFxuCby8uRiIHRhTyXboYmgn5x/oykw fyDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=GhdQOUZukZ63jfCuB+uAevz8jLAP6uB81hwDOVF4Lg4=; b=fvUGLg1P3iGvdJLdYIL1yuF2JM6k/aR7w6N3R/tocbGE5to7TOhvfVtdzqiORlW9Mb /rK0lTpREUtP1bnXJje0mJcbnwaYYMHzySnNDAYThX5Vvk/1j8Yb2SxnBj5AgOPaSKus k8XwkNqwpUDpwzvQFvVp6U5quUr4GaZCUdP76ID3ggqgz4S04alaEsBLNQnXjNNM6wN/ qsDewgH9GUh4kNaUvjEwwHzr+G4xHyBdTJQQNohst5GYe0n3X3I+RAyinecm14PZjpKP raQj8LLtuN0b/UHXofyagBZb8FFRiB8NYZiHX4cM57RsMF1/dX5UbZZSuAr0qrYXk3NN NFtw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si25325330pfm.170.2019.04.25.23.03.23; Thu, 25 Apr 2019 23:03:38 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727321AbfDZGB7 (ORCPT + 99 others); Fri, 26 Apr 2019 02:01:59 -0400 Received: from mga14.intel.com ([192.55.52.115]:42595 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbfDZGB7 (ORCPT ); Fri, 26 Apr 2019 02:01:59 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 23:01:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,396,1549958400"; d="scan'208";a="319116026" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.198]) ([10.237.72.198]) by orsmga005.jf.intel.com with ESMTP; 25 Apr 2019 23:01:56 -0700 Subject: Re: [PATCH 2/2] mmc: sdhci_am654: Fix SLOTTYPE write To: Faiz Abbas , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org References: <20190425155727.20010-1-faiz_abbas@ti.com> <20190425155727.20010-3-faiz_abbas@ti.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Fri, 26 Apr 2019 09:00:35 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190425155727.20010-3-faiz_abbas@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/04/19 6:57 PM, Faiz Abbas wrote: > In the call to regmap_update_bits() for SLOTTYPE, the mask and value > fields are exchanged. Fix this. Could you also comment on whether this has any known effect on the driver. > > Signed-off-by: Faiz Abbas > --- > drivers/mmc/host/sdhci_am654.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c > index 866a9082705f..613b151a73c5 100644 > --- a/drivers/mmc/host/sdhci_am654.c > +++ b/drivers/mmc/host/sdhci_am654.c > @@ -205,8 +205,8 @@ static int sdhci_am654_init(struct sdhci_host *host) > if (host->mmc->caps & MMC_CAP_NONREMOVABLE) > ctl_cfg_2 = SLOTTYPE_EMBEDDED; > > - regmap_update_bits(sdhci_am654->base, CTL_CFG_2, ctl_cfg_2, > - SLOTTYPE_MASK); > + regmap_update_bits(sdhci_am654->base, CTL_CFG_2, SLOTTYPE_MASK, > + ctl_cfg_2); > > return sdhci_add_host(host); > } >