Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5441252imm; Tue, 16 Oct 2018 10:16:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV62vOGBr4l3ypbRw/8YCy6C1d/HWazx0oSDhgIKNx89FGyYwCSdkUV78Q92J3HsQvebgqGXv X-Received: by 2002:a63:450b:: with SMTP id s11-v6mr21433130pga.301.1539710163429; Tue, 16 Oct 2018 10:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710163; cv=none; d=google.com; s=arc-20160816; b=LdKuRWDA6boC+IUT/T23oO15GQlVYHw856t+zOcWOk4ZgYv7jPotmUK9YP3dpenZKc nA/IH8WnOtAPD9S48zSojhWr8Aq3TI45+XKC8Datt/o6lS4vEc+5E4VgxGuWvGPJtZWd oNW7IM9BFrtYvS3UtyXLZrtg8YNQAoG4oz9C+GR84wRP7qTIVqrkfEIYZpUh5hJ3Qi5W OV9iLZB+1lwxhp7wjw8mLcXPsIoJJu8Ifbk6l1G0lWyoTyJwWxxqydt2qhgcKwYqh5LN PEmsWywN5eoGRZ1kHa1EvOfwK7WWPD54kjhkM94Vyu61/2YNa9q3avfNC5gkvTFje9sM LQuw== 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=+RPGkfyRNyjuNHpkpk62sVKK9CIg9XEl1olGUj/S+Hs=; b=RU4gsjvPue3ct9PrTJEsloRE4ZVPB/oq+t3UuF93+EM+pWrO8ieBe0Z6DHeq/6NZOY HgxEWUWQ1mCBNfu9seWi08SCajt2PhgJr0fLI/ZyptOKD3qmG1CYfNgIK8KwaN8ZNknU 544e56GEKqCFmavT6DlZzQL4X61BCQoVbbi86ma74hhPgvHgUSZ62u3+DNfjWQpjFiHS 2CZRSI8fF3xV9lwwlpE4Q/biUybOphHWyYGahH2r4ftvBcCVgnSSAxonTIzcUVkOr2vK fIQ3egH89z9c5KMBMds22wLtzNPTqHhQc2NRFGzaOtHsx/WnPHZ2qBlSiZDe0th2KTL3 c2hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cWAH+crj; 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 v67-v6si15219042pfk.264.2018.10.16.10.15.47; Tue, 16 Oct 2018 10:16:03 -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=cWAH+crj; 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 S1728829AbeJQBEp (ORCPT + 99 others); Tue, 16 Oct 2018 21:04:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:47592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727280AbeJQBEo (ORCPT ); Tue, 16 Oct 2018 21:04:44 -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 D1CC520866; Tue, 16 Oct 2018 17:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710001; bh=DutE/NqEcymI5we6Z3votG4V2wbJ0TpTaIhcFhx9s6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cWAH+crjNViftbWkhFJ8NqTUR/O9c6qihpyIoNXfvrwh8thU+Lb6VaNNzRP/p6BcU EyJpRT+AztOJ1R3mGJ2gvK6BwdkHONWda88jGb7lc+Y1JJida+7hrIZGCIGJg8Ja8r 5yPFPDb03KFf7QATCpetjLsnSx0z+Elgry3FqlsQ= 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.18 069/135] ASoC: wm8804: Add ACPI support Date: Tue, 16 Oct 2018 19:04:59 +0200 Message-Id: <20181016170519.391086962@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170515.447235311@linuxfoundation.org> References: <20181016170515.447235311@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.18-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,