From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B002C433DB for ; Wed, 3 Mar 2021 14:46:14 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8B4F464EE1 for ; Wed, 3 Mar 2021 14:46:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B4F464EE1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zyOyX07SBqBuvWzkUSJ1x8L46opW7U/73w0rjHJ7OAw=; b=ay65nUMlOwuqjZpTOZGCgFSDe l5gi2yYaI3O1d3zXoHAtBBTVh/B79CjBSW7nhJyJ7C9GVTER3Sh0K6KGZtkISp2pOQeJ2lo20U5p0 JoyJKNncTHXll4Hu+vr9ai3/4azQ4kz562aoQI0WGK4BlUCotVqwdEPk6sDIaYAOUyhIyvOJzsNqg 91a6xER2jjRWCKXRyQARkZoselW/zzjkDK+eSpVNmHtKOdMXWd3nHcnt32JfnVXvOMw+YXKrvBBPI T+/RhQdRtpM+0Mxq0F5HFT5N38+RdC5DjdYodJvFIdCxClPK/86xJPADsmeeAz6/iOV/a+40UFtwI 57cJj0LGg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHSj5-005C5n-7L; Wed, 03 Mar 2021 14:43:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHSAw-0054CG-4X for linux-arm-kernel@desiato.infradead.org; Wed, 03 Mar 2021 14:08:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=PnZpaOgWqYKzRoX9cjbeL7yIABizKYEzbdPwFwv7qjw=; b=TuOGtTQThlT9t6J5SBeqQU0ScL xAGgWqZsSEzf7ZKthzO1bufSai7o0QOzlU8XNFyWfEbsd+nUGbwsKJVJqVDnZODL2TXlmpDegJHGu E+myq+Z/hFCpWeYJDrLkUWX2gb1SVS8LN4vC7KwWnkA4fQUmq5NoDvjcjyEottm6V4+dTkjuNPdi4 VM+WmnVec9zxRJws1yIdwGtVlmtwY/nS9MNqrf+hEpCdsM+F/ToswN38f9uEoxeYWVzSbKPx/gK+t fT8nqfuGn5PkS1vNHpTQSMKmG7k57fUL9Gy9Zb+Yr1Nsl0DqZSmVpmWFUTZ2pDi/TdUYDHRwApYGS qG46Ehqg==; Received: from foss.arm.com ([217.140.110.172]) by casper.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lH7hu-00HQUp-O4 for linux-arm-kernel@lists.infradead.org; Tue, 02 Mar 2021 16:17:14 +0000 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 3525E12FC; Tue, 2 Mar 2021 08:17:01 -0800 (PST) Received: from [192.168.122.166] (unknown [10.119.48.4]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14B223F7D7; Tue, 2 Mar 2021 08:17:00 -0800 (PST) Subject: Re: [PATCH AUTOSEL 5.10 11/47] mmc: sdhci-iproc: Add ACPI bindings for the RPi To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Florian Fainelli , Ulf Hansson , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com References: <20210302115646.62291-1-sashal@kernel.org> <20210302115646.62291-11-sashal@kernel.org> From: Jeremy Linton Message-ID: <445ed4c0-3b2c-1371-931d-b0de7bdb497a@arm.com> Date: Tue, 2 Mar 2021 10:16:59 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210302115646.62291-11-sashal@kernel.org> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210302_161714_038744_BB54F8E6 X-CRM114-Status: GOOD ( 24.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 3/2/21 5:56 AM, Sasha Levin wrote: > From: Jeremy Linton > > [ Upstream commit 4f9833d3ec8da34861cd0680b00c73e653877eb9 ] > > The RPi4 has an Arasan controller it carries over from the RPi3 and a newer > eMMC2 controller. Because of a couple of quirks, it seems wiser to bind > these controllers to the same driver that DT is using on this platform > rather than the generic sdhci_acpi driver with PNP0D40. > > So, BCM2847 describes the older Arasan and BRCME88C describes the newer > eMMC2. The older Arasan is reusing an existing ACPI _HID used by other OSes > booting these tables on the RPi. > > With this change, Linux is capable of utilizing the SD card slot, and the > Wi-Fi when booted with UEFI+ACPI on the RPi4. For this to actually work on kernels < 5.11 you also need: c5b1c6dc13da mmc: sdhci: Update firmware interface API Which I don't see in 5.10 yet. Thanks, > > Signed-off-by: Jeremy Linton > Acked-by: Florian Fainelli > Link: https://lore.kernel.org/r/20210120000406.1843400-2-jeremy.linton@arm.com > Signed-off-by: Ulf Hansson > Signed-off-by: Sasha Levin > --- > drivers/mmc/host/sdhci-iproc.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c > index c9434b461aab..ddeaf8e1f72f 100644 > --- a/drivers/mmc/host/sdhci-iproc.c > +++ b/drivers/mmc/host/sdhci-iproc.c > @@ -296,9 +296,27 @@ static const struct of_device_id sdhci_iproc_of_match[] = { > MODULE_DEVICE_TABLE(of, sdhci_iproc_of_match); > > #ifdef CONFIG_ACPI > +/* > + * This is a duplicate of bcm2835_(pltfrm_)data without caps quirks > + * which are provided by the ACPI table. > + */ > +static const struct sdhci_pltfm_data sdhci_bcm_arasan_data = { > + .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | > + SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | > + SDHCI_QUIRK_NO_HISPD_BIT, > + .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, > + .ops = &sdhci_iproc_32only_ops, > +}; > + > +static const struct sdhci_iproc_data bcm_arasan_data = { > + .pdata = &sdhci_bcm_arasan_data, > +}; > + > static const struct acpi_device_id sdhci_iproc_acpi_ids[] = { > { .id = "BRCM5871", .driver_data = (kernel_ulong_t)&iproc_cygnus_data }, > { .id = "BRCM5872", .driver_data = (kernel_ulong_t)&iproc_data }, > + { .id = "BCM2847", .driver_data = (kernel_ulong_t)&bcm_arasan_data }, > + { .id = "BRCME88C", .driver_data = (kernel_ulong_t)&bcm2711_data }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(acpi, sdhci_iproc_acpi_ids); > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel