Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2288615rdd; Fri, 12 Jan 2024 05:22:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYj3Gvbb3to8enHz5LeloR/NPlMjPuRD7DXBeIJGriySmQNYHyP+iaepHOkRHb7NwF/whE X-Received: by 2002:a05:6808:f8d:b0:3bd:670f:73cd with SMTP id o13-20020a0568080f8d00b003bd670f73cdmr52379oiw.17.1705065725733; Fri, 12 Jan 2024 05:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705065725; cv=none; d=google.com; s=arc-20160816; b=JYGQ/rJlK6wWTOAMLe7V+KYlurG0phgNlBiNlSGkPJGNiCrdh4cf5jQT9h6lqjrqQg yWUbqprRTdSR5nUDjp22yftWuADlRFF187AnSNvHCHia5qvwrDcwPvDt/IYaufqu0TXY HA/yHi9EAK9+Ej8R7A26+0z2v2HGUeLdrIa8Q4v62Z6G/98sCOdeaZkya9PFKSiMGyom PICaa5c7uwEvOcUPs2IHZfbd3CNaErxY2bH9N1USVbJhk6aySyqYNXD/T6nGjbbmDEXJ flV5so9JvSkj7Za2fq49Xslyx12Hqvy6eZxFAp5Kqsjq3SPsldZV9L+GvINV7a4CnP6/ w15g== 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=jAa4eA8gvepfCnGgQs2u+EtUPbaVz/w5JWBAbaW4lhk=; fh=/y8dwzMSpztNb1FQx4918QuGkjkLYbBMAO8cMYUQygc=; b=t23JUzvkVxvdnffAwwxELz8TUyIBYZuU2/wL50w3MT8rAPe1hE5xqnGoRe01D7uTTc bNt4vLOaKiHDO6eQPbWxbggGRff0yxctr5hgUzKZoKqvfvLlf7v8Zw6/9RYZOnYjiX1D Q8SuaSDp3QLurGNyzIJPpsnvE65TEC4q/rQiMIY4Y1Z6nJyTRMeBgHDGD2d7ii6L7TiM PMM7EikEXFaiuZvs7mVun16h1aACWKb4gw/A+x1OHTVBJSZ2h3M4JJcLFMi4GB5qzrRK mTRof3sh4gOFJBSS3EGG53tYyxqR98v4TcQrlowCq3xdBgvJ62x95JYm6/GmeovfBBWm bfvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="VT/FEgjx"; spf=pass (google.com: domain of linux-kernel+bounces-24683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m12-20020a6562cc000000b005cee039f233si3132351pgv.425.2024.01.12.05.22.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 05:22:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="VT/FEgjx"; spf=pass (google.com: domain of linux-kernel+bounces-24683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24683-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5CA242837B4 for ; Fri, 12 Jan 2024 13:22:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDB2B6DCE0; Fri, 12 Jan 2024 13:21:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="VT/FEgjx" 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 0ECE06BB50 for ; Fri, 12 Jan 2024 13:21:26 +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=1705065684; bh=vv7XfyY64AL9x6v0k9WhuSkPS+mvCU15xYmyHxujMQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VT/FEgjxDcYivmSqj8BoJVzPD5kxRg3ansgj2EbmqAD3msqLK6hO1SEOG/XLLVY2i luv8RlWniiUjMey+Gofv04EFijpja4SxG1yJR948rtauLCVfo04QxVG8SDa/KkBdbQ 7psziR/FGNHjLvDtlBx4xNsktEGeoI/hw3sydU6ytcbrzBTTjX8DBFOlTgdcA3qTEu JcPF3qlFd5AEHe+BJ7BDsx2pNfNLn8gYXWDAV9sKVLBxsXbxBiqT7VJCB9NTn8CvIS ADPihfelHE6NiXgWgbfDTu6KXslilFEzU7uktZJ9wcpKpV4VRFCHEv3zTwYhWf4KIv KsMLtKnvqG73g== 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 8BB743781FE5; Fri, 12 Jan 2024 13:21:21 +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 3/7] firmware: google: cbmem: Add to module device table Date: Fri, 12 Jan 2024 10:18:32 -0300 Message-ID: <20240112131857.900734-4-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 cbmem driver to be automatically loaded when a matching device is found. Acked-by: Brian Norris Signed-off-by: NĂ­colas F. R. A. Prado --- (no changes since v1) drivers/firmware/google/cbmem.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/firmware/google/cbmem.c b/drivers/firmware/google/cbmem.c index 88e587ba1e0d..ceb89b4cdbe0 100644 --- a/drivers/firmware/google/cbmem.c +++ b/drivers/firmware/google/cbmem.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -114,6 +115,12 @@ static int cbmem_entry_probe(struct coreboot_device *dev) return 0; } +static const struct coreboot_device_id cbmem_ids[] = { + { .tag = LB_TAG_CBMEM_ENTRY }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(coreboot, cbmem_ids); + static struct coreboot_driver cbmem_entry_driver = { .probe = cbmem_entry_probe, .drv = { -- 2.43.0