Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2289108rdd; Fri, 12 Jan 2024 05:22:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhwYcSUPlgLHvqc+rRHLFQ/XmH+2NVdGEk4P6KX4YWLdl2A7f9moGfP3GVoipxgfmdNItZ X-Received: by 2002:a05:620a:f8a:b0:783:1c82:989e with SMTP id b10-20020a05620a0f8a00b007831c82989emr1837624qkn.41.1705065775649; Fri, 12 Jan 2024 05:22:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705065775; cv=none; d=google.com; s=arc-20160816; b=lKBZbrGRPaD6TwOMZHtI2gQTITX0od/P/cm3ARY3oZMp99nRZMx5Bi5DnXV/eBshxu m/E/umplEz2VnjF+bSDuQGJeS0+aR68BF2Imtc7LuLC/13fxIEbtCXz2AHnRbBsq26YO lJaFyDrpT85cKTzhKguciZ40Ybx2n2MgnwDasySgA5iaysUzCesZggkQZ9Hq3wlKRY1X M4Nn+3QDkpa/QrWKNrBmbqk4kn8zvNtzJWnNGDv0FeXYNJcq3I+6fAnCFuU9j6uX/rtb JvDOM31VNNdE1BbsAbreUx2aTQQn8arteggoOUbW2qaO+rFXRavTubBruP9CG0jbAZjs R02g== 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=ZeKB7tKqwJXcfQ5VFj/NOxy7Nfpml10deRNXO36Hnaw=; fh=/y8dwzMSpztNb1FQx4918QuGkjkLYbBMAO8cMYUQygc=; b=aSpvtUtVDOJbyDLdebzZ0VGyzxwDqTa3f+bni4WhZ87ENb17314cfkWKfP+A3Vxhip aswUihyTGuud+RpXZOxJlvlFSMcO4NJOtZ5W5ToZrVNyR8iDs471SH7SuqLnA98CWvIm d5uA9MPnW0oljbr850p9sn81aeH6eHkCoPwC1H5ChTXFaGk7sF+5YpC8S9Sqee9QRDH2 MowmQItKRN34Z8Q8bHMt+P1QFARMIQ+3MtKM8pSvu2nHV9MA15JBgaJyFDzclmFFeTGE pNBM5+ENAFeC8J7zNHVelKw9EwhUxPBBTplvfnK0USi/xKkyCi8cdasnkvpVx8wE8iwM gMrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iVk9KxSs; spf=pass (google.com: domain of linux-kernel+bounces-24686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v15-20020a05620a122f00b0078319628a86si2830198qkj.778.2024.01.12.05.22.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 05:22:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iVk9KxSs; spf=pass (google.com: domain of linux-kernel+bounces-24686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24686-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6574A1C21EBE for ; Fri, 12 Jan 2024 13:22:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79A276DD16; Fri, 12 Jan 2024 13:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="iVk9KxSs" 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 6E9D06E2A4 for ; Fri, 12 Jan 2024 13:21:33 +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=1705065692; bh=BLXPKaAyUYO+6jqUrFyRS5lwMciTPldwcRsUMbzDyc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iVk9KxSsQtvtgQz99f/zijk6igWk9tf4efY5mWTJjXTiEETjQMS13rTN3ln0twZVs 4/ezaRE8z4zx+YEt0EydLp9Ej7iv6+W/ruOnP+vXE95sNb3aoDXzehdHBTLeQaLMEa xqN7Erkn3v7tljPsnPRAu7m6PH/aVICOjQIDlpmgD8vjtEOdwCbLyaY5Dyt0EK+7/z lmLV54ySEsj2ar2+JxWaKXo63IxX+otyt3Vdg99T7s91XngUE7kcikhVHJmufzbD3A q/7jX2eiLbo/g88JZgTvLfcNcROHF4TCwAyi1/KYiPBTt0mB7BJzgo27vU9bKRcpIT CkMdrSxCA8zww== 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 E69583781FE5; Fri, 12 Jan 2024 13:21:28 +0000 (UTC) From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Tzung-Bi Shih Cc: kernel@collabora.com, AngeloGioacchino Del Regno , chrome-platform@lists.linux.dev, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Brian Norris , Julius Werner , linux-kernel@vger.kernel.org Subject: [PATCH v2 5/7] firmware: google: memconsole: Add to module device table Date: Fri, 12 Jan 2024 10:18:34 -0300 Message-ID: <20240112131857.900734-6-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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create an id table and add it to the module device table to allow the memconsole driver to be automatically loaded when a matching device is found. Suggested-by: Brian Norris Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v2: - Added this commit drivers/firmware/google/memconsole-coreboot.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/firmware/google/memconsole-coreboot.c b/drivers/firmware/google/memconsole-coreboot.c index 74b5286518ee..b8e65b9d8cc0 100644 --- a/drivers/firmware/google/memconsole-coreboot.c +++ b/drivers/firmware/google/memconsole-coreboot.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "memconsole.h" #include "coreboot_table.h" @@ -96,6 +97,12 @@ static void memconsole_remove(struct coreboot_device *dev) memconsole_exit(); } +static const struct coreboot_device_id memconsole_ids[] = { + { .tag = CB_TAG_CBMEM_CONSOLE }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(coreboot, memconsole_ids); + static struct coreboot_driver memconsole_driver = { .probe = memconsole_probe, .remove = memconsole_remove, -- 2.43.0