Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1658750pxb; Fri, 20 Nov 2020 15:41:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxceHq4u35PVVN9JqDcVrwxX25dGU0XKoqF8i52KAj8t7UvIslMq7JDIOMhLykwiDJgSmx3 X-Received: by 2002:a50:e60a:: with SMTP id y10mr36747067edm.157.1605915709725; Fri, 20 Nov 2020 15:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605915709; cv=none; d=google.com; s=arc-20160816; b=uTMVtPFw2dtemtBfb28/I+S1HIpB3HlUamdTL5egNeGWZbG28B4TS0tq4yhEpS/LDq GPIsOzKHWQ5jybVBZ2xg/g5RBU1qp0kCaumREQ06AMmb3eI4TVWMyebEMP9E9XvsNmdU 6kGIqI2TFWlkD5HuA2AwV1NESbM99waCUNebo3c6ObVfnRUeOedZ37jDDY9UI2l85pvU RHuRtxZhQAfSvprBvf8GMbHzFzD35wTUwCXFrEeoD2OGSBPsg4MhM9WKcXMVbgWWTbe2 PmrMmeaQJI79v79qfn+KvuD/VvOWa4Mk5Yu0eqK2AsBMx6ar3d9aelE9euOnXzAx9jCj ZMwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=TTU4IeG2f9PeKe0GrHSSckGxuUAAYyc+7empcriQzGk=; b=gbNcWYx8h+Kwt06m4g2QmXvhuVl0P9NAUMiqXQ09KFJDIg0Nu8xf7E49B4AGZuqwwa NjHmxb7wLu5L/1TqwKy2nGqfxsHSpFRQFaf0EXK/gk0+g2RlxE9bDyBT6shdbm2D2irq NXnWc1e0iidu9xK0P9Ly8qkrpn89bdMKdp4M+Ip6LTbJZOI05JCeP7d3pz3ltubsnlw6 UMHy7uzDo/GsEGdUi3EFuFxHTPVrW1CyqQul4JwdXNQV4DzmfZQw67qA8DtnOjbmdLQn G/Sq3bABhhZx0gtcQ/MHWjGx641zbYEJsWtgw8imKW80Emy3M0VZ7rFm+ZbNlVzSkgeu p7Tg== 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 k15si2426853ejk.389.2020.11.20.15.41.26; Fri, 20 Nov 2020 15:41:49 -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 S1728308AbgKTXjK (ORCPT + 99 others); Fri, 20 Nov 2020 18:39:10 -0500 Received: from foss.arm.com ([217.140.110.172]:56346 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbgKTXjK (ORCPT ); Fri, 20 Nov 2020 18:39:10 -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 4740F1042; Fri, 20 Nov 2020 15:39:09 -0800 (PST) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 379FD3F719; Fri, 20 Nov 2020 15:39:09 -0800 (PST) From: Jeremy Linton To: linux-mmc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, adrian.hunter@intel.com, ulf.hansson@linaro.org, Jeremy Linton Subject: [PATCH] mmc: sdhci: Update firmware interface API Date: Fri, 20 Nov 2020 17:38:31 -0600 Message-Id: <20201120233831.447365-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); v = ver ? *ver : sdhci_readw(host, SDHCI_HOST_VERSION); host->version = (v & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT; -- 2.26.2