Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2022609pxu; Tue, 24 Nov 2020 15:04:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxLnF2w80x8OGbJxZjNBFRXT5kYUcBEswbxAky09vB5zv6XLjIcsweyqevL71r2FkGw3dL X-Received: by 2002:aa7:ca41:: with SMTP id j1mr799037edt.295.1606259051168; Tue, 24 Nov 2020 15:04:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606259051; cv=none; d=google.com; s=arc-20160816; b=f2N3Cpb7IbBbUbDaP4lLsz4w7P1nrt2+DXACKm6ZW0wihvKbd8jGsfUqlKJ18A50kY ygxCEUwrykCjtpr4C2xzsFinGIgFIqWI+njAX6amI83jaa9dCE1CkC4QSI7S6smU/lFu tIoECOi9wyhJDxTiF0k88ochGupwKNGgKquAj1t7aALYKCr4oqh2mreM3B/p9Lcee3sO iSmi2UiIipqMF0cyaFnaoS8MSSK8AlN5g4o/KQ1B7BCr7LDd8yrURV863kv0wKLMN7OX KiAPMkCG0DslgWSLLyjOOuwwsi0wuIPluaxfEgfxIRpGw02/qbE1xlnFMsT+d4gZTI/m uCdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=9zacYWgiY1skwD0E7EseMlbuT7zPb+OBFn2cA9uhvdI=; b=KdOJTWF9U5vZlpKaJFBlGBMmw5+hNbpfGqlvMRB7XGrpMF0E+a+fAtLu8+ewRuSnra Vh0rydhlY3GI4BgpqR4itRyyqhmkv51wlnLsnhHtsva04Lp6WLLqFGMSh4TOVpdthRAE MbJU4N2LUapO8a7Dvw7kE84S3Sn/9TWhLX+snfn95T7rv+cS16cUmyv83jke0SxuTgRO nvTuT7QUdf0TA7MsLEvVdMtDpU4zUFy768YgIEeAiBX0jylTGka6u2/eIYh6glSfJpBO MPiHCfVXz7DsSDkkW5eB341THZUKuxuv4Zt9v2Y7Kt5mbgPqpcoCTrRNvMk5II7uMPkE yH+A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z41si104394ede.411.2020.11.24.15.03.36; Tue, 24 Nov 2020 15:04:11 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389240AbgKXOv5 (ORCPT + 99 others); Tue, 24 Nov 2020 09:51:57 -0500 Received: from mga14.intel.com ([192.55.52.115]:34401 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388162AbgKXOv4 (ORCPT ); Tue, 24 Nov 2020 09:51:56 -0500 IronPort-SDR: vwC4ng6bvd+yOdMLdxOz4/LmXbHhXB432kawJtavfRF8CH0q+xRAjDOxd+AzwPV5pLiX3iDF2K G5PsL1+zBbmQ== X-IronPort-AV: E=McAfee;i="6000,8403,9814"; a="171174706" X-IronPort-AV: E=Sophos;i="5.78,366,1599548400"; d="scan'208";a="171174706" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 06:51:56 -0800 IronPort-SDR: BYyQROwMjLO5yJfRwUywUuN2ZM4/uJJKiihUPEbWxsMgpkNEjubavR+z5QyZKUmeMOeA6sZnua VB7/rGD4qfpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,366,1599548400"; d="scan'208";a="312598315" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.94]) ([10.237.72.94]) by fmsmga008.fm.intel.com with ESMTP; 24 Nov 2020 06:51:55 -0800 Subject: Re: [PATCH] mmc: sdhci: Update firmware interface API To: Ulf Hansson , Jeremy Linton Cc: "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List References: <20201120233831.447365-1-jeremy.linton@arm.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: Tue, 24 Nov 2020 16:51:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/11/20 4:25 pm, Ulf Hansson wrote: > On Sat, 21 Nov 2020 at 00:39, Jeremy Linton wrote: >> >> The device_* calls were added a few years ago to abstract >> DT/ACPI/fwnode firmware interfaces. Lets convert the two >> sdhci caps fields to use the generic calls rather than the OF >> specific ones. This has the side effect of allowing >> ACPI based devices to quirk themselves when the caps field >> is broken. >> >> Signed-off-by: Jeremy Linton > > Applied for next, thanks! > > Kind regards > Uffe > > >> --- >> drivers/mmc/host/sdhci.c | 8 ++++---- >> 1 file changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c >> index 592a55a34b58..feba64fbde16 100644 >> --- a/drivers/mmc/host/sdhci.c >> +++ b/drivers/mmc/host/sdhci.c >> @@ -3992,10 +3992,10 @@ void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, >> if (host->v4_mode) >> sdhci_do_enable_v4_mode(host); >> >> - of_property_read_u64(mmc_dev(host->mmc)->of_node, >> - "sdhci-caps-mask", &dt_caps_mask); >> - of_property_read_u64(mmc_dev(host->mmc)->of_node, >> - "sdhci-caps", &dt_caps); >> + device_property_read_u64_array(mmc_dev(host->mmc), >> + "sdhci-caps-mask", &dt_caps_mask, 1); >> + device_property_read_u64_array(mmc_dev(host->mmc), >> + "sdhci-caps", &dt_caps, 1); But why not use device_property_read_u64()? >> >> v = ver ? *ver : sdhci_readw(host, SDHCI_HOST_VERSION); >> host->version = (v & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT; >> -- >> 2.26.2 >>