From patchwork Wed Dec 2 18:51:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 11946839 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=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 0A80FC8300F for ; Wed, 2 Dec 2020 18:53:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BDEA922249 for ; Wed, 2 Dec 2020 18:53:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389696AbgLBSxX (ORCPT ); Wed, 2 Dec 2020 13:53:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389691AbgLBSxW (ORCPT ); Wed, 2 Dec 2020 13:53:22 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6009C061A49 for ; Wed, 2 Dec 2020 10:51:59 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id f24so4968814ljk.13 for ; Wed, 02 Dec 2020 10:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1NuGhfuvRRKOKlvmGuyTpm1ODDVJaYuPLibVtVX+cAw=; b=JUgL2AM6DmI2EpgyTDkl59NOl0Zr+9aN1RxFubkrpYhknsvjEYvZCwKqEOsQftX4q7 nmnFYojGFKsYxdrodt/Zb4BpwK7lwoOclnG8M1DQC1CkFgtL93rPY2anhgGKfgTbRmmq z6kDtn5T1mde7VX4pwC6XZJ1NilHmzFTr83/nKMeuQAAJihOH/cfTVmKzQCzKQcnYMiM A6y1piNZ3IGCJCc1fDBNskSfLToGTxnk5WiFpiAtY+9rIgDS3AwHnplFmHtBOauJ90AJ S5fru9lcUMWcXuabSNdWRm6cdbjSYFeQvzi4JEhwzniTgosrgk4K6L3xlc0V/4++Du9Y AouQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1NuGhfuvRRKOKlvmGuyTpm1ODDVJaYuPLibVtVX+cAw=; b=cCNEcq9XQtw6SX78bnB52Jpkv3WvZOH257x8QM/nYjrXdTX5GZmk5pp0q8JMuH1pZo p/9oSO8z+HAE0nbj5wSG6c30jH5LGh0802nQwTsF8WZ+lLJYQFvIpNY3ard+/oiuYNca ctwC7c+w+7+FXVehxohEw3H2PjTpFBWWz0pX7d5Z5QCjThGXGYTramDiy3jxRVB/AJ2i xcgLKcX+qrffMaMoPieBpSjPw4U+Ja89AM2HCphbtN2sfUwX56RKViWUNodOCV55dGpg UnbAA0DhbN4IAu+rLTQMfeDaHHwHNMPRxI9S2EFwQA/F1EL1OEGkIrwqZQ2wdpJFn1DD 07kQ== X-Gm-Message-State: AOAM530FhPrkmzufVaBmtFrRiEB2ZrKCSplIlmYAa4EH5A7QmnxX3+eE P82A2mqkNTHRF4+pkE9sVv33kw== X-Google-Smtp-Source: ABdhPJwrRiEy0fs8Q+QwaCDiefxGize4mIrq4/m6zVpn0hSKS++joUOI79kdZW7mNZmx/jH40RwS+A== X-Received: by 2002:a05:651c:1121:: with SMTP id e1mr1761753ljo.227.1606935118392; Wed, 02 Dec 2020 10:51:58 -0800 (PST) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id y134sm666365lff.162.2020.12.02.10.51.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2020 10:51:57 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, huziji@marvell.com, adrian.hunter@intel.com, jaz@semihalf.com, tn@semihalf.com, ard.biesheuvel@arm.com, kostap@marvell.com, Marcin Wojtas Subject: [PATCH v3 4/4] mmc: sdhci-xenon: introduce ACPI support Date: Wed, 2 Dec 2020 19:51:18 +0100 Message-Id: <20201202185118.29076-5-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201202185118.29076-1-mw@semihalf.com> References: <20201202185118.29076-1-mw@semihalf.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Previous patches dropped the strict dependency on the OF_* in the sdhci-xenon driver. As a result the ACPI support can be introduced (except for the XENON_A3700 variant) by adding the necessary ID's in the acpi_match_table. Signed-off-by: Marcin Wojtas Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-xenon.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mmc/host/sdhci-xenon.c b/drivers/mmc/host/sdhci-xenon.c index cc0fcc646b0e..395f7c3064ce 100644 --- a/drivers/mmc/host/sdhci-xenon.c +++ b/drivers/mmc/host/sdhci-xenon.c @@ -11,6 +11,7 @@ * Special thanks to Video BG4 project team. */ +#include #include #include #include @@ -691,11 +692,22 @@ static const struct of_device_id sdhci_xenon_dt_ids[] = { }; MODULE_DEVICE_TABLE(of, sdhci_xenon_dt_ids); +#ifdef CONFIG_ACPI +static const struct acpi_device_id sdhci_xenon_acpi_ids[] = { + { .id = "MRVL0002", XENON_AP806}, + { .id = "MRVL0003", XENON_AP807}, + { .id = "MRVL0004", XENON_CP110}, + {} +}; +MODULE_DEVICE_TABLE(acpi, sdhci_xenon_acpi_ids); +#endif + static struct platform_driver sdhci_xenon_driver = { .driver = { .name = "xenon-sdhci", .probe_type = PROBE_PREFER_ASYNCHRONOUS, .of_match_table = sdhci_xenon_dt_ids, + .acpi_match_table = ACPI_PTR(sdhci_xenon_acpi_ids), .pm = &sdhci_xenon_dev_pm_ops, }, .probe = xenon_probe,