Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2232369imm; Thu, 18 Oct 2018 11:06:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV61WUux5ujinODGzo4B8HKCJy0oSa2P8PjrZd5SY7NDXyhZ4RI0+4s7M7StYEWLnA8LI3NlZ X-Received: by 2002:a17:902:708b:: with SMTP id z11-v6mr31832516plk.151.1539885976283; Thu, 18 Oct 2018 11:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539885976; cv=none; d=google.com; s=arc-20160816; b=CM9gJ9LRte0ADbSTEUVoZNtHjsEdL/hiUdtI5xiGQJQ8h5UWw5fXYewgzd2Aoca/Ho wsAa3/0RHMoMvEnGLHWF6Kzy9y0vj/UkK/iWdHdTLo+AevGtZUao+gxKWPhR6zimXR2O rfCLp+mjZ9dOstwOM9rkpviTy7GXw7BBPqvMDqc6NHYze6mkxW+IRHz0MPTIhsLqpYe2 gz0hDwgSA690/I38aK6w9Lsn0FdUzzhIQ0+P7aQkGb3HxO62Ia1eG5e3UoFoPNlbk9py 6+2V0HFxdg2agSyQuxhqCgKHaflEiNVNiorbKmEp8fOy2h37UITl77Aty/mIfHrwyoBw LdEg== 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=RM0ngT6Y+ND/HqzuTOmcupF70oD9sSqhTriN0JbOHGM=; b=l/EXkHmnrECZaxozXcmgwj98xCGTnkPAXEjm8CA3u6FAA7bS1m8ZVSpN6Qfm2dGATM EGPWUYMLX/YHCn8GPPKE7hVaIg2Xpjf3P/q6eLDoVDKTCkESMS3X65lv4fuXVyyNVwqd B89opnXC4gOtQVT1xVWDXl7f5C0xPufRPcGT9hVp+QX48NWjUw/W9ku+hJq3NBMsLb0v M7px2EYw1hbsyslZmCukPBfr0L7uhHv8TZ9qremLMTM7qBXeigjC2MFQZ0/f8h9hWIfW MSaJCeeFEahsrfnPn4GenC5B/hr2f5Zb9QzGpVj0Bwyeyu9v2exDZ3iGC+WYHjBorru0 w/Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YwKvMm42; 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 j65-v6si20203192pge.589.2018.10.18.11.06.00; Thu, 18 Oct 2018 11:06:16 -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=YwKvMm42; 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 S1730143AbeJSCGx (ORCPT + 99 others); Thu, 18 Oct 2018 22:06:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:55314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729152AbeJSCGx (ORCPT ); Thu, 18 Oct 2018 22:06:53 -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 A58E321479; Thu, 18 Oct 2018 18:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885886; bh=e/CYVGV6ZD0ZOVoUerqdgP1jOjGKTcumOlmCRp1UVl4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YwKvMm427oy1UnGFBkGGvScVOundTTgMx7eqsohYq2GtnsoUfKgyDGToARJbl6b3G dBfKHG1hlEdw70RtmrKKUQAD59vvnw6AgyemUuw9ycZ0OYYwZfrtpJPk8kOpqdJ70b QkPQPUsyUVZtnc5LMGbgGEVGzoTP3wQdo+6ekFTk= 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.4 01/48] ASoC: wm8804: Add ACPI support Date: Thu, 18 Oct 2018 19:54:36 +0200 Message-Id: <20181018175427.528206364@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@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.4-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,