Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5449757imm; Tue, 16 Oct 2018 10:23:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV60/o+tfgZEvqtos8j1m7cSdY5mhlMjvb8fK/I23fHwIS37OIbTVJF7qh4aEmKQ77gIlExR4 X-Received: by 2002:a62:120b:: with SMTP id a11-v6mr22945476pfj.165.1539710612126; Tue, 16 Oct 2018 10:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710612; cv=none; d=google.com; s=arc-20160816; b=fDBF9KCEyX+4v32uhW33IAh4ZFrrEhh9jedbag0oeOwo1KqaQTe7mttTieBeK4mbQt FJsjJpxYsUcAmctnDnOkkrOLSTVG6B4nBrb+k7CkeDNTd6gZRlJeZwllELgrTWfWVRxr i/B1lDtFjpMnnYB9Zvm1vMtzzOc5fJOCo7833RWRerTf9m6BQpWVN1RHb9etS01DkCjN UEoqtn0EmahvjzOzz+9p0Kuu0eXX7Cn6P02nE9G/U70dQgWlTbxe0LwkvCKTT5Yjhosf 7JnT6s+n/ScH+1N7t5j3AXHeaLPYqhCDyRKeGWuZ4c0rBOxsXgtMX6tjZsAonsD04JVl 6mgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZO579ebIKf9Ga7GM4wEmAii/HMCXfgxrnulspBwtdM8=; b=YLJk68XuXh7KJeOtj8uJsGGtGc1vS+yyJxkwSmgtdk9dsCKAGQ8vHiKopjEvNaH8wS UtVv22HcSj7ySZWNrF1ibTwI8juKv3DPDE2GvaTGAb+lwc3XexvccubBmgYWq4+swIjU dfYh4HVtOqrqg111zzuWIcT44YhlK6sek0pwnNAYy4lyYd8R7teqrHr4y0HZYQZfLiia CYWm/hgqkjxFn6QtEm7iIf3EdtC/pu2rCR1fv6Yfizc7zsQ7YnoimjLMutPEIbnopCRs RzxPSGYUy16UqyzqKx22Tdzho20/DoJD4Cg0llfqnrp8CSFwmPFpGIvOBkaoY0jkskCe c/Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hVa3PJ6o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19-v6si14823218pll.286.2018.10.16.10.23.16; Tue, 16 Oct 2018 10:23:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hVa3PJ6o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731176AbeJQBOE (ORCPT + 99 others); Tue, 16 Oct 2018 21:14:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:60426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729116AbeJQBOD (ORCPT ); Tue, 16 Oct 2018 21:14:03 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 756FC20658; Tue, 16 Oct 2018 17:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710558; bh=YJDdC9982jhdeQwDy2i57bI66sfv1fu0wuFPZxjpf3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hVa3PJ6oYZc4GKfQSQE/Xl+dswdciBkYJmzYm3SyF22CpqoO2iofP41tYQ8yqvnRL jukvW9aGA6FVtU/BpkFLCcZsS1ejSHxv/TOk5CofZE1Q1A1K9M+sMN1AfPNVZf7T/n xu2oknBIIsPgtl+8IKN41kIzGFcl9Evivydid46A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pierre-Louis Bossart , Charles Keepax , Mark Brown , Sasha Levin Subject: [PATCH 4.9 01/71] ASoC: wm8804: Add ACPI support Date: Tue, 16 Oct 2018 19:08:58 +0200 Message-Id: <20181016170539.395580941@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170539.315587743@linuxfoundation.org> References: <20181016170539.315587743@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Pierre-Louis Bossart [ Upstream commit 960cdd50ca9fdfeb82c2757107bcb7f93c8d7d41 ] HID made of either Wolfson/CirrusLogic PCI ID + 8804 identifier. This helps enumerate the HifiBerry Digi+ HAT boards on the Up2 platform. The scripts at https://github.com/thesofproject/acpi-scripts can be used to add the ACPI initrd overlays. Signed-off-by: Pierre-Louis Bossart Acked-by: Charles Keepax Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/wm8804-i2c.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) --- a/sound/soc/codecs/wm8804-i2c.c +++ b/sound/soc/codecs/wm8804-i2c.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "wm8804.h" @@ -40,17 +41,29 @@ static const struct i2c_device_id wm8804 }; MODULE_DEVICE_TABLE(i2c, wm8804_i2c_id); +#if defined(CONFIG_OF) static const struct of_device_id wm8804_of_match[] = { { .compatible = "wlf,wm8804", }, { } }; MODULE_DEVICE_TABLE(of, wm8804_of_match); +#endif + +#ifdef CONFIG_ACPI +static const struct acpi_device_id wm8804_acpi_match[] = { + { "1AEC8804", 0 }, /* Wolfson PCI ID + part ID */ + { "10138804", 0 }, /* Cirrus Logic PCI ID + part ID */ + { }, +}; +MODULE_DEVICE_TABLE(acpi, wm8804_acpi_match); +#endif static struct i2c_driver wm8804_i2c_driver = { .driver = { .name = "wm8804", .pm = &wm8804_pm, - .of_match_table = wm8804_of_match, + .of_match_table = of_match_ptr(wm8804_of_match), + .acpi_match_table = ACPI_PTR(wm8804_acpi_match), }, .probe = wm8804_i2c_probe, .remove = wm8804_i2c_remove,