Message ID | 20240112131857.900734-5-nfraprado@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-24685-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp168128dyc; Fri, 12 Jan 2024 05:22:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqc2vlTdW8qEpSB9Qmty3I+JkVtDfn2HAxCXUXT1TsP7Gf07rnNMA5F8IC3CosEgegM9sr X-Received: by 2002:a19:6719:0:b0:50e:242a:775e with SMTP id b25-20020a196719000000b0050e242a775emr657730lfc.106.1705065770687; Fri, 12 Jan 2024 05:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705065770; cv=none; d=google.com; s=arc-20160816; b=CVYg6Jr0ot0opO+hx9ULxv7AwtE6OaxY2NVZgkc3wsa2tu6BopS2dwG90OLiu36yMY 4+E79FU6WIm1Y1aO3WF/qriaAwdcCA6dEKybrpIwvmUPvEjnP4QiExPTg7amoi30sNJl zPkjH3m1lKlBgZYIC2Qt6nx4p8k+SUhqidlT2jtuGbCItTim1vv6EbITwW5NCESgIowk 3QNH5AZp1OJfrlOzOAgjnTp2fEea7l/F3ABIbLjbL08tsh/zpyJkb5zpUC0XGwSzXvKo /9lJAegV4nTQ8CYY/MTD5PidllWEXQ1oPMhpemN121zVC7nNKpGNgbp6lzCHG71wHJYu cNlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kJqEbe8ZIxCcF9n7sopiXgwqGnSHFops2sUqwOC6z3c=; fh=/y8dwzMSpztNb1FQx4918QuGkjkLYbBMAO8cMYUQygc=; b=U//aWi46RLjQXEmIhq+ORkguP9uxHLuwJD5JfoMOZ9R8fiogNqWsn0s4N4u/0cyFR0 HKTVQ+rqW0tOPanoqhwZm9XtiuvuPvaD7d3iz4x5DnqFhG5BsOsRN9G4G0CfWNA3L/G9 uZNiVKX0Mmxlz/q2P1qXIpQ27I0nQq4rkw/oqbnEhna6mocJYiviAtHkLU4R9V+jC48G yOqkXm4fA8h1v574Vz/nxeRLM4m7EBlR/nu0fzM0qN5I4g9WewczjZAbe8fvrYKp15/0 oeE+LEquXmafNatfZc1HsgAhdqBgw9JZu71KN7saEukUKq4NpbGwlQQ0K5JyqcO58Luo EWoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eBucHIo9; spf=pass (google.com: domain of linux-kernel+bounces-24685-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24685-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hk24-20020a170906c9d800b00a2c8d6b7bd7si956311ejb.206.2024.01.12.05.22.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 05:22:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24685-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eBucHIo9; spf=pass (google.com: domain of linux-kernel+bounces-24685-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24685-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4697D1F24C1E for <ouuuleilei@gmail.com>; Fri, 12 Jan 2024 13:22:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87A706E2A5; Fri, 12 Jan 2024 13:21:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="eBucHIo9" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FE746DCEA for <linux-kernel@vger.kernel.org>; Fri, 12 Jan 2024 13:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705065688; bh=5Zlhk9FViXuszWd2wU0HPdwd/advjvRNhG7guG3jd6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eBucHIo9anWE6EJwEzY9Q7buyISHqVTcdyY6Ok13pHm51PVG4FgDJpcMxuikzivgO sD2i1iVIuQMoKKLUw6Ww5AQNt68xWYyZ7H/sX0+U2W9LKoNIyQYOkHY/BbfWwtg0va 45sCbBiP3MLvHnpn/Fa/3ZZOez1XgnfXdaJG4RX6/sOZtUFCYfU49p1b1AptFf8N6+ 4Vy46pbklk3nhy9t3aCVJ56VJ1wmPM7ygG9VE0E/J4eZ6Qad9pxg/5j0KZZrEkvgFH xay+P+4p+XupZ3u/OUFy0VdvvPp4qihJyJp+RXtbY/KbkzksZa0Ez/lqg/jaTYd+ZN qSzMTRNIfA6Hw== Received: from localhost.localdomain (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5CD503782031; Fri, 12 Jan 2024 13:21:25 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> To: Tzung-Bi Shih <tzungbi@kernel.org> Cc: kernel@collabora.com, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, chrome-platform@lists.linux.dev, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com>, Brian Norris <briannorris@chromium.org>, Julius Werner <jwerner@chromium.org>, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] firmware: google: vpd: Add to module device table Date: Fri, 12 Jan 2024 10:18:33 -0300 Message-ID: <20240112131857.900734-5-nfraprado@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240112131857.900734-1-nfraprado@collabora.com> References: <20240112131857.900734-1-nfraprado@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787891045467313160 X-GMAIL-MSGID: 1787891045467313160 |
Series |
Allow coreboot modules to autoload and enable cbmem in the arm64 defconfig
|
|
Commit Message
NĂcolas F. R. A. Prado
Jan. 12, 2024, 1:18 p.m. UTC
Create an id table and add it to the module device table to allow the
vpd driver to be automatically loaded when a matching device is found.
Suggested-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: NĂcolas F. R. A. Prado <nfraprado@collabora.com>
---
Changes in v2:
- Added this commit
drivers/firmware/google/vpd.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/firmware/google/vpd.c b/drivers/firmware/google/vpd.c index ee6e08c0592b..9e9fe9ca1920 100644 --- a/drivers/firmware/google/vpd.c +++ b/drivers/firmware/google/vpd.c @@ -14,6 +14,7 @@ #include <linux/kobject.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/of_address.h> #include <linux/platform_device.h> #include <linux/slab.h> @@ -306,6 +307,12 @@ static void vpd_remove(struct coreboot_device *dev) kobject_put(vpd_kobj); } +static const struct coreboot_device_id vpd_ids[] = { + { .tag = CB_TAG_VPD }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(coreboot, vpd_ids); + static struct coreboot_driver vpd_driver = { .probe = vpd_probe, .remove = vpd_remove,