Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp92230pxu; Tue, 24 Nov 2020 20:03:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzds4YVTr0O5tsKdRcalfvpBo1PMdnlkhZf14FDBLMKsJr71uSuPaXWgHE1VbdLZjHGPb+F X-Received: by 2002:a17:906:ee2:: with SMTP id x2mr1508316eji.326.1606277038175; Tue, 24 Nov 2020 20:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606277038; cv=none; d=google.com; s=arc-20160816; b=XYNovti4j4EGmDAwlAlBv0N/VNy//nYFeuMx/yug91JfaLK7n7elTy7ta+oNOgZZYp 69ch9Cpf/ArxKPdToq2jd83VDRH5bDNc0mgMbta9CoSm5rE1NEzIAe/CeF0LKtqvuRV3 BFa+ltAAymtsO4pfFYu5+kAGy+9VFPR4MCWMpJ69OCjdoZp8BdOr+rKyAhLPZw8RnjGC SFV1VAhuzBhW1ers3ras9LStihZwo0Geg+/ZnETWNeNmfaix4nWaShfHK3PsOW/KPVCA c/M6HJ/sIfpOab2s01O+Y/MYwZKoA+K5HMy3jQI6hHEIiFTBMm4GduzoTPtV9UoEbbXP PMzg== 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:from:references :cc:to:subject; bh=zYWJcrpd4qWTpx/4GcBWbmn4FiqG+RZFH3HCucy6AlQ=; b=Z4LVUd09bZjO/Ne0CJLsXmBYoqR+8th4VPn0GDxMc+6NTzw4HPRO3pCYjCQTvCxkdv pk/VEs3yKt51S5iGfRSXab6DHvJO69NASZx8180EkuzF5L9RW8iCmkS3SoUYiZEn68fn mCyOxYSvfxHZuvqrfaf4rRHQ5DDiY3UkvHmOgVCuyflRY323ltOyuspYJW4HlLsS4dgS S5IjX6yuJ7+hFSuThDaMnRpQwhpHSZA+Xu7ObEYYm4h7iUOh4STy8PQ+mwFt7jNj59h2 JunKdoJtmQbBsD8UsYL0pg/lvH/Ya8g6YsGSGH7SVnjcOZn2HiF67SrDSp7sHSWeIoTB Rr/Q== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si587287ejn.209.2020.11.24.20.03.33; Tue, 24 Nov 2020 20:03:58 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbgKYD0p (ORCPT + 99 others); Tue, 24 Nov 2020 22:26:45 -0500 Received: from foss.arm.com ([217.140.110.172]:45562 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgKYD0p (ORCPT ); Tue, 24 Nov 2020 22:26:45 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E0AF106F; Tue, 24 Nov 2020 19:26:44 -0800 (PST) Received: from [192.168.122.166] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 302DB3F718; Tue, 24 Nov 2020 19:26:44 -0800 (PST) Subject: Re: [PATCH] mmc: sdhci: Update firmware interface API To: Adrian Hunter , Ulf Hansson Cc: "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List References: <20201120233831.447365-1-jeremy.linton@arm.com> From: Jeremy Linton Message-ID: <6383172b-912f-39f9-f446-1f600d1262b5@arm.com> Date: Tue, 24 Nov 2020 21:26:35 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/24/20 8:51 AM, Adrian Hunter wrote: > 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()? That would be more concise in this case. I will post and update. Thanks,