From patchwork Wed Apr 22 22:18:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 6258691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3BEB9BF4A6 for ; Wed, 22 Apr 2015 22:22:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7927D20328 for ; Wed, 22 Apr 2015 22:22:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9C55D202F2 for ; Wed, 22 Apr 2015 22:22:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yl2zG-0006cv-1c; Wed, 22 Apr 2015 22:19:18 +0000 Received: from exprod5og113.obsmtp.com ([64.18.0.26] helo=mail-pa0-f54.google.com) by bombadil.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yl2z4-0006Xo-J1 for linux-arm-kernel@lists.infradead.org; Wed, 22 Apr 2015 22:19:07 +0000 Received: from mail-pa0-f54.google.com ([209.85.220.54]) (using TLSv1) by exprod5ob113.postini.com ([64.18.4.12]) with SMTP ID DSNKVTgeRf9hmHum3Q7SMjAYLFt9r1kTTEkI@postini.com; Wed, 22 Apr 2015 15:19:06 PDT Received: by pabtp1 with SMTP id tp1so316803pab.2 for ; Wed, 22 Apr 2015 15:18:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=69802gw92ueT9miCji304Tt4GOKbjrWisHXjO64snjQ=; b=eV5J1MPS8BrGA1U3PCpDbeZC9jpwI+49nC+UpLY1TLe0wCkD6zKOeXXbWEPobdza/s TjQ14IfkhTpKUJ8gACv54EPWCOdusdqIBwkR46+Va3raWei7Z6MZqUKmEp+wfV+ewl4T PQQ0wsFVfCTb+vGD3qSuWed0YlVS6vaSepfOhZ9BKv2RArtuOQeAq8lA4feqqgTZjSK+ dOt69ohn6RC7CeIWBQsoKCW7jau3jn3fAjgLOQ3Vw0sBkt83At8q4vW4WEqGsS9E075e B6OAqLodMsyEmTiXx44Wyv/btCyCMGZ2feX2b3aoHrW817Gwm/FZ01ezSqWiEg/MICO6 gwJg== X-Gm-Message-State: ALoCoQk9f7UzXXeN+ULwyoNx6xVdOcvetPAeLgQYPwrfdCanw9Xw2xrNuRN8T6mdyYVvwEQ0nD06JlDpR88O+KnTr/y+njtgZWPCZkLBvswIwEr3+O0V8c+P2F+6dBWCezIlMThN0NPe5iCRsvacbA+w+/gluhltZgr5EYGTW1d0Cj8lgKeTAB4= X-Received: by 10.70.129.172 with SMTP id nx12mr51191449pdb.157.1429741125259; Wed, 22 Apr 2015 15:18:45 -0700 (PDT) X-Received: by 10.70.129.172 with SMTP id nx12mr51191442pdb.157.1429741125181; Wed, 22 Apr 2015 15:18:45 -0700 (PDT) Received: from fkan-lpt.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id qh9sm6004905pbc.24.2015.04.22.15.18.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Apr 2015 15:18:44 -0700 (PDT) From: Feng Kan To: patches@apm.com, jassisinghbrar@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH V2 2/4] mailbox: xgene: add ACPI support for X-Gene mailbox driver Date: Wed, 22 Apr 2015 15:18:43 -0700 Message-Id: <1429741125-29156-3-git-send-email-fkan@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429741125-29156-1-git-send-email-fkan@apm.com> References: <1429741125-29156-1-git-send-email-fkan@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150422_151906_712206_15880C19 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) Cc: Feng Kan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add ACPI support for APM X-Gene mailbox driver. Signed-off-by: Feng Kan --- drivers/mailbox/mailbox-xgene-slimpro.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mailbox/mailbox-xgene-slimpro.c b/drivers/mailbox/mailbox-xgene-slimpro.c index 49370e5..890f95b 100644 --- a/drivers/mailbox/mailbox-xgene-slimpro.c +++ b/drivers/mailbox/mailbox-xgene-slimpro.c @@ -18,6 +18,7 @@ * along with this program; if not, see . * */ +#include #include #include #include @@ -240,6 +241,14 @@ static const struct of_device_id slimpro_of_match[] = { }; MODULE_DEVICE_TABLE(of, slimpro_of_match); +#ifdef CONFIG_ACPI +static const struct acpi_device_id slimpro_acpi_ids[] = { + {"APMC0D01", 0}, + {} +}; +MODULE_DEVICE_TABLE(acpi, slimpro_acpi_ids); +#endif + static struct platform_driver slimpro_mbox_driver = { .probe = slimpro_mbox_probe, .remove = slimpro_mbox_remove, @@ -247,6 +256,7 @@ static struct platform_driver slimpro_mbox_driver = { .name = "xgene-slimpro-mbox", .owner = THIS_MODULE, .of_match_table = of_match_ptr(slimpro_of_match), + .acpi_match_table = ACPI_PTR(slimpro_acpi_ids) }, };