From patchwork Wed Feb 2 14:34:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 539329 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp1615716imr; Wed, 2 Feb 2022 06:35:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1raw/4QMYHzyP4zdG+pyHOWcL7JioArCoyeCruR0RB58GPb2JKzK0LRwxuExQ6IZRWCqa X-Received: by 2002:a17:902:c652:: with SMTP id s18mr31692493pls.5.1643812536142; Wed, 02 Feb 2022 06:35:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643812536; cv=none; d=google.com; s=arc-20160816; b=DABFYxGb7/tZrMWuGq9Vj6vCMk4qymEe+t9YZlmQ3dbYB63zoibRVkCRzrbxhOTEBj fVAX5n5bT2nEzYPtjbFmk7ggOLa/dEFF5zHcZcKMH3ye7QngcF5gNYZjB3c20DWdfpVq N1+KLiqBCuKOLwB7FA79MvNfOiCo/KPvH97vKQH12dGoD28vr3whTPx47xjvqRLwBgke M0HaeQjCXcfroFcFoRFlQJnBpyVa1J0VVit99JLSf6FSoGjlUb8FctDZ5qs84GxuoZgM MJ7hjWxH6zKqDkDAhvHp67/6lcW6Vn6iMetPuJEXEMsV02wBJ95qhGhD2OpHe8Kl0Bc4 z8Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=A/vwq131czsInzkheHxKsDqw07RJUo4Hn4I9T3muGOI=; b=J49K3Z/F6SI7/oh9/82zWXWqoTrGo0R09G0XMXA1UEOnYwRe8nyVp3mV3+3eLC/MKH QCm60EclmgcaWirWEP3pvbY7sb9CdkNl0mv2k66+blKePVC/k9tMxZK4vh/P4fH/LHuX Tp2qIYjhqFMMmoIIDEZq4iNttgFUtJSCPNqrYU0grqH2rnFdOYAijlKAY4/uBJjrOfyD kESkm2PnxQEPEarP5Ff/bq5FBlN2g9ehjxA2wjS0RFlvaGzFfpgeKob/H4yShZ2rEEQY GD0OmBasBSNJFWtVlN+sYdgfdV/2aEZWX71ivTIGTz2BhcjCTvHU1mPSe1yYPSc1Rz56 hTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=ow6i9I+y; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=gXCCtz3O; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id y7si19513532pfi.78.2022.02.02.06.35.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 06:35:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=ow6i9I+y; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=gXCCtz3O; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A/vwq131czsInzkheHxKsDqw07RJUo4Hn4I9T3muGOI=; b=ow6i9I+yNsfWLA LTwfzV1SANMy3o4s75STrGUmxhOGpBPT/KX4FnOgJCwTygHNAeEC0T+ugkqXYvoqgAwNJ+cl4dTKs ZjIPUvETVEdvj3+O8we6eSNkCHPAUH4GwkebgCjQPuT9wJPFcdn7WW7zY5rQDdbWZQA8mfiGEK68q 4OYGrjrMtA5fGaeesNmSMyEidcnUabc4rrcuHM5FqVNcZnmNPFS2hhllVhWVvePohET9ERglQ/iaZ MJXaeMbrVn2pY9rT4UpDTzryDGNc7s17PqnBI2ekgLuHAdg/mLNGw2GUK91g0NsAVOpqS4fd0avvS jP8atYe7kq9AjjWEN5+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFGjB-00Fjpk-74; Wed, 02 Feb 2022 14:35:21 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFGiN-00FjOA-Rd for linux-mtd@lists.infradead.org; Wed, 02 Feb 2022 14:34:33 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B02CC618D5; Wed, 2 Feb 2022 14:34:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F7B3C340EF; Wed, 2 Feb 2022 14:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643812470; bh=36df6yLJszbsCLq5lCoN34Rw+Z+PE/HwwKmISQqlVAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gXCCtz3OxCSjc69uRkfmpTbJk/6Gyt256b37BlX4RU4MJTJMRTZBhvPPBlMPsCetn MQ7rqH7dcJAuQ0SG74d7i9wx7juWORN9Q7B1Z7Bwc9/T06WJp592tKfW7VIiYE7HkD nvzU8t+I8Ss1wb8Vof9ylFqQ1EAl/VHt0lrG0WW67dOLjnphqWGrN+LYy/f4WhpqWB OA6TN1EoTp8hi7rlnNBlLOFpO3i7a8zzpgDBm89vhgoPQcPBQaAPcdtJbS9zLqe5gR tdCe31P11/dF4OoPf6BXY4O1vQnWqqjyvFRt82od55PKeby8P3MA7xgYtsqGJ+zH+y I1HjIZSUzi2+A== From: Mark Brown To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Mark Brown Subject: [PATCH v2 1/3] mtd: dataflash: Add SPI ID table Date: Wed, 2 Feb 2022 14:34:02 +0000 Message-Id: <20220202143404.16070-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220202143404.16070-1-broonie@kernel.org> References: <20220202143404.16070-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1386; h=from:subject; bh=36df6yLJszbsCLq5lCoN34Rw+Z+PE/HwwKmISQqlVAU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBh+pZZhJO6oLbdyw+BujbaYu/oF/CrJZiJ96A8tLNE Gdk6q7mJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYfqWWQAKCRAk1otyXVSH0AbECA CHA70VO2yoFDAVjdbf9sHQxFmIEPwv1vfsMvhocrhfZaeFQKAj5Eai6EuGdS2Nj4Kjl7W5dyQw7dl2 AwaIKbPc/lh31wq0mR/5odE/F0AvmK6b00ZikbLiI1nETnMne7O+nUJO7biquyxSUGbeMtLMUtPwDi 2sdZCYtlCv53G68oWmPs4k2JXG8mYGIJTZY8EDoh93MYVLagwIZhC2F28b4HNkrSZC6whNkKwAp8xN lsxam/oWuZYdcKSv0+bu1I84dpQvSOhgBhmrMDVTnOpACPch+QCoviblb9hucQr9NPsRApn3N/k9Zf P8pp3fhY6glJZ2cfBJ+rF97US5iAYi X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_063432_027686_032AE91C X-CRM114-Status: GOOD ( 14.75 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverte [...] Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [139.178.84.217 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverted, so ensure that module autoloading works for this driver by adding an id_table listing the SPI IDs for everything. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown --- drivers/mtd/devices/mtd_dataflash.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 734878abaa23..3ae18cbf5cd1 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c @@ -112,6 +112,13 @@ static const struct of_device_id dataflash_dt_ids[] = { MODULE_DEVICE_TABLE(of, dataflash_dt_ids); #endif +static const struct spi_device_id dataflash_spi_ids[] = { + { .name = "at45", }, + { .name = "dataflash", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(spi, dataflash_spi_ids); + /* ......................................................................... */ /* @@ -938,6 +945,7 @@ static struct spi_driver dataflash_driver = { .probe = dataflash_probe, .remove = dataflash_remove, + .id_table = dataflash_spi_ids, /* FIXME: investigate suspend and resume... */ }; From patchwork Wed Feb 2 14:34:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 539331 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp1616926imr; Wed, 2 Feb 2022 06:37:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDQBfQUODvKU/4l3Tvz78clzTmSWM9SiRe8xejR2YiaUvjkeuuksPML1iGsur2Nm8FLR32 X-Received: by 2002:a17:90b:4d05:: with SMTP id mw5mr8462596pjb.34.1643812629155; Wed, 02 Feb 2022 06:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643812629; cv=none; d=google.com; s=arc-20160816; b=Lj2XdxC8yGCI5eH/NkhbfxoLxs+b31D4KXpjvPKsmRchUQoaHMM6x1pUF9g6I8BKKl gPs1Fg5Fz/Mo3mKOlOG2Ebg0ZZYSA51cfXIGHB79JZMNaqdJHZvWT9RePuupPihoqOAp PAuvR+uP3lleEENYJ7rhy/7T7xgfGu2NK4oUQzOq4/5hz4g2aJBpRgeUL26490Z4pZuE Yxcep/hzmL34fqW+ndlgDLLgVafFmLKMsVa0xiffvGgipz8RHJTvOzX6Rh1I7IpSskHH PkEs4M4KV+7KIZOY/1CbQSp0EcBLaGrfDGD74PyxyXi3wzQAum1rGSQNFJM923IrscRi rD4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=zBnZCCv7HwK3L+6gBcG1TwzR3OeCIwQBO6NHRgO+24c=; b=LCdIuVfTCw/EcrnHCzsVraAlZiM/QlqHt0lohRsK19r+apM7bmKESyIV6H1oe4+z7I D/YVVl7J6vyIx9qKbw4/57vehstrVMAZTXKcEgwfYvgpzYYabNZ6O+zyfdVmUkUYyR6I kSMae1YS7ldlRScn3D8RpX5beZG8WP6tyS7QVphlbg6OwpQV2ZdO/p2fby+GdwRo1871 cZ112n6Q2e1SXj8jNRYsX7XnKoer2imG5Q/jMbeUupZonwMWO8qZ+mXnDJDHSuTqEA50 aOgoZesRLZebZjKbsROPSkmmPu2/cw8LO0P0iB5hUFM4MfqB1FAIj4x+NInW4e8uAlg+ xDmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=4OYcGPY6; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=CoYqljuX; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id j10si5458209pjl.128.2022.02.02.06.37.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 06:37:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=4OYcGPY6; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=CoYqljuX; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zBnZCCv7HwK3L+6gBcG1TwzR3OeCIwQBO6NHRgO+24c=; b=4OYcGPY6QANyUZ WiIKnjw7Ecc61gZ0BsIPsflK/T6idGYvst8dDp3cEKGmT4YdhxQNL0k6dpu1AzDFEgJx225lHYauE v5+nXqeE4mKYVKXmMcM82wAQxEjnEuPEW3iaGr+wJnRJxIBUTOVeYpMxFZxd3/sAaobEs2i0V/Fat C+3jnFxi2Nij2aPeR5eKl12BWCLVPphSVWvdbXbHYsNK5GtAkMxGH35F0ckBRdtCPUZspixXAZr7G BPgZjEb6V3TAeW4NcDwE179CxKGaKZCEkiROd+lClySIBnIElQE8PpbGAPTABgqzMLHCVuGbsMwcQ gFxE4xqEMoy1dEYA0W4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFGkB-00FkDa-7C; Wed, 02 Feb 2022 14:36:23 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFGiQ-00FjQP-Tm for linux-mtd@lists.infradead.org; Wed, 02 Feb 2022 14:34:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6D2E2B83105; Wed, 2 Feb 2022 14:34:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01CC1C004E1; Wed, 2 Feb 2022 14:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643812472; bh=ywODHyZvr4uDCNLDWnyy/wFBe/QUgJIEv5BgzUusVhA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CoYqljuXD5PJ4L3DlFIrL0x+dd8eQtJ9jNCxkJH2dtkklC9ub/QL+NNJv12uxKZIV O3NOj3V8xxAYsIfTGnn+pk6mzsjLqnUpDdiKbyWsffJ9c4QWcKZ0Al/GPhvfvgNDFp TvC4aq4lecskqpA/GEDUg+mUZnbqXlyWIW66oLsclngE7MMaeCQIPxpG6/uTCCRdu7 dgJlMqftocc/KDBYA10pdkNDjQszuIwXM+Bif7+sDDqRts1KtbKXb3+jSidRxC1maV /zohwX2QPbgRH/GnsLVpgeX3fp8t64Oj8LZqg4iI3FUR1twnKR9gh11gNTBuidXp7z Lr5ZeiihZmCUA== From: Mark Brown To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Mark Brown Subject: [PATCH v2 2/3] mtd: mchp23k256: Add SPI ID table Date: Wed, 2 Feb 2022 14:34:03 +0000 Message-Id: <20220202143404.16070-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220202143404.16070-1-broonie@kernel.org> References: <20220202143404.16070-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1496; h=from:subject; bh=ywODHyZvr4uDCNLDWnyy/wFBe/QUgJIEv5BgzUusVhA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBh+pZayVTWdvTpAtGCF4CVvotVY1ZqUYJOAX7Wx8vF wmM6A66JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYfqWWgAKCRAk1otyXVSH0J0xB/ wK21S+Sut5GuU1JWUvHh4sfSD6QVuea89oc9uFzrbKLa4+6ofyJJgwwvhmrd5iBUOv+Op/SRDBdcJJ cqMuPvRA21XS97EPBnC1R7fFw/VmlgavOuZO8uF9KRHCNIJW+9Io84l9Rc34QMo1b5f2xpjq7hT2zT uv1HY7LATyk6VqspVZXekTWpRcZfkFy+yeWJzTNn3PJkZsF64eGnsTdBO6UdwSnHU+ktfwCxaViFvd KsuGbF+A7ct9lmngbcnf7+2oyRrBtp7ra1mVkpKv97jPK1m8n3VtJ0M9urGzZujywsJAE25/BXZ83p OZn1ZxNFfJ5+wrhGBHeMub169ZlFIj X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_063435_154709_A6BB421F X-CRM114-Status: GOOD ( 14.21 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverte [...] Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [2604:1380:4601:e00:0:0:0:1 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverted, so ensure that module autoloading works for this driver by adding an id_table listing the SPI IDs for everything. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Reviewed-by: Michael Walle --- drivers/mtd/devices/mchp23k256.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mtd/devices/mchp23k256.c b/drivers/mtd/devices/mchp23k256.c index a8b31bddf14b..1a840db207b5 100644 --- a/drivers/mtd/devices/mchp23k256.c +++ b/drivers/mtd/devices/mchp23k256.c @@ -231,6 +231,19 @@ static const struct of_device_id mchp23k256_of_table[] = { }; MODULE_DEVICE_TABLE(of, mchp23k256_of_table); +static const struct spi_device_id mchp23k256_spi_ids[] = { + { + .name = "mchp23k256", + .driver_data = (kernel_ulong_t)&mchp23k256_caps, + }, + { + .name = "mchp23lcv1024", + .driver_data = (kernel_ulong_t)&mchp23lcv1024_caps, + }, + {} +}; +MODULE_DEVICE_TABLE(spi, mchp23k256_spi_ids); + static struct spi_driver mchp23k256_driver = { .driver = { .name = "mchp23k256", @@ -238,6 +251,7 @@ static struct spi_driver mchp23k256_driver = { }, .probe = mchp23k256_probe, .remove = mchp23k256_remove, + .id_table = mchp23k256_spi_ids, }; module_spi_driver(mchp23k256_driver); From patchwork Wed Feb 2 14:34:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 539330 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp1616163imr; Wed, 2 Feb 2022 06:36:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTwNUeMIxQYilQBvNNqixTQGcwOmDi8maUhKle3qfO8bTEwTiOCBQRdAlygW2qRgQnJ7HM X-Received: by 2002:a05:6a00:cc8:: with SMTP id b8mr6446978pfv.64.1643812567372; Wed, 02 Feb 2022 06:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643812567; cv=none; d=google.com; s=arc-20160816; b=YmeaK+lwpKfMg7S/1S8npIHKxrqQEFvh3dY3cskHO7x8Wp2ORtAqkWJME/pekaOvde ObUSwSlhE9Y+vclU98t2ZUxNTjlQmfkISssGLeJt8i1lnbjwMlnojcLeeOnevsPbqThD +m7MUUEHI3mzR/FknjTczraViUTt1MOypNe3wEvZV18ITczPDZ9gDb4iv1P7Ootk8Unn s8rmqyNkOhrT72mHY4Esibtwr1/ShrctmpaRh+iZhPj0cB0HCGAmrY47ZUVwAGdW5ZCd HXhoF7jv7KZyN/0CAFTTuVsbP3m2xE37/Lv862p1onBy1CUhxqMXKTI60mRKJEduwtQP EgXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=LtiCvnokhQnOYqgYNZKy/7rvAmImz0o56p1ivJfp8Vw=; b=ztCz1m/n7wSRY3f6LKZYDfLULWk3gHjONYgHw/LhbIjs8Nvh9oYBm8ap6XDxWIwo1A RSFZ67+DL6341bF7WQy7rFRNLVJzcUJHHKwoHLrwTMrIJPU22O2zfOqcKGUKWwJTHu/a sJkAC+V1+xi+7WbwLMZj80b2RZAs/fN6NKC6yJRsUQdtCRNn0n8Vl0aKHfod/Ds3kJjw JjMpLynwLOHAU4Fx0fR5zG4OBUrt7WEq95bKpHi9kP1rR83e0hpE2Pi0vmwXlp+6sfd+ P7qUNJnpgWNM5nIt633Hi4/bNigL7xObQ3m7NkRUsmHHYl56VfHToN0+dJMJlDw6DFzf 265A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=hK1st2ce; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=JOO72JXW; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id z3si17150100plc.593.2022.02.02.06.36.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 06:36:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=hK1st2ce; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=JOO72JXW; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LtiCvnokhQnOYqgYNZKy/7rvAmImz0o56p1ivJfp8Vw=; b=hK1st2ceBGNsG9 aeNjAQZaabwMePPqbCLeV5L9ruevvr3Fu/uYeJhnDfiN3paZmPjJsDPKHOz9xBbvk/v975yRU5B+t h+1P/m0zNNr1NpwrGNsfamZwwS0GS2LzuZ+Pc9Z1Xn5gXfxFfAvC6U+NEz73aiKFRzCcUVh7/0FJg IJWKauDgx54ljJplWOUJfRf5cW4QR5RoiBFWz+RKtsoRhB3HaSX2b/TH4FcQXuH06B40ZocvBfS/x VnFtYQDOv9xHJqx3ff211Ol88f6SfjlSlbP6tpnKHzMnDiHyowJ41irCiiOvxZNAdVDUmYxY93BWo Bz0JcIVeiYjdAkV83b3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFGjf-00Fjzi-NQ; Wed, 02 Feb 2022 14:35:51 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFGiQ-00FjQj-Vk for linux-mtd@lists.infradead.org; Wed, 02 Feb 2022 14:34:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8028D618CB; Wed, 2 Feb 2022 14:34:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7742C340EB; Wed, 2 Feb 2022 14:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643812473; bh=IxTZ/tiEL4nTjsVIQha26qOnUAwNRPSmZV3wz4dDNyA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JOO72JXWIJPJRIkfhCvW4Hr4/IhvRM10tUJoGoBFd8uViZjok7XFYB0S6xsVMltiq B12HfLK7ILfTZdwHHAMoMhN/CI7c8z++Bp2rTcaAHBLFaEyu3yRIRZNFonc5ur568P /tXsxWftHUZdZvGKiTsxeCUajspH/MET0Qyu0RxqZr/IykOWW/NjcyJovU5rUT3w+0 73beBHqjZJdoInQG218VYH8womSV8+EFqe9xGR+uCVfJT0m6O615KhrBftYZSTGYkG JlJjkG7ikPTkWjLpRMdV0tXOLPyM+BuCzPUZe3Gsyjn5t252XJ3wYJ5dYOzDlP6nzX 4y45vs2LfyN7A== From: Mark Brown To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Mark Brown Subject: [PATCH v2 3/3] mtd: mchp48l640: Add SPI ID table Date: Wed, 2 Feb 2022 14:34:04 +0000 Message-Id: <20220202143404.16070-4-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220202143404.16070-1-broonie@kernel.org> References: <20220202143404.16070-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1392; h=from:subject; bh=IxTZ/tiEL4nTjsVIQha26qOnUAwNRPSmZV3wz4dDNyA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBh+pZaSAO8tY7W4fjhYI6nAkJ5IF9EctUuCGwWgFvK zXkXCIaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYfqWWgAKCRAk1otyXVSH0M6QB/ 9Hl/dKBZy2fVxUR5CRb4ZDT2bsDRfRhYm5veLvgAHHaivCr2BLOd/npoEu3ZVjZv1uqcJlCKNXUnqP yLLhi1av2lltKn6ZPNF44Q98/Hk/Tbi6A/m++WIU9Fv4oY+KC+SYIsDsiIx3Hwtg8rsRLcSkf2F+Ly MPBkULUbheBOctaeKqjaBXEBX/tJG1Ac1SbuerInyKXjRNE+l+Vm62cYYU9E8IvXoBDFczkmF+Zvhv h52wl7BUJojRBrb/w6rUDdy65zqJPP6Ufm0nyTSvofi03ZdDMDiiB3xJ4uWP6UnC0EeLGkQgZiAS48 liIjc3LDu9yYZrjdZ/PkFAn+jhJ4uP X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_063435_130886_67F88D09 X-CRM114-Status: GOOD ( 14.65 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverte [...] Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [2604:1380:4641:c500:0:0:0:1 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Currently autoloading for SPI devices does not use the DT ID table, it uses SPI modalises. Supporting OF modalises is going to be difficult if not impractical, an attempt was made but has been reverted, so ensure that module autoloading works for this driver by adding an id_table listing the SPI IDs for everything. Fixes: 96c8395e2166 ("spi: Revert modalias changes") Signed-off-by: Mark Brown Reviewed-by: Michael Walle --- drivers/mtd/devices/mchp48l640.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c index 231a10790196..b9cf2b4415a5 100644 --- a/drivers/mtd/devices/mchp48l640.c +++ b/drivers/mtd/devices/mchp48l640.c @@ -359,6 +359,15 @@ static const struct of_device_id mchp48l640_of_table[] = { }; MODULE_DEVICE_TABLE(of, mchp48l640_of_table); +static const struct spi_device_id mchp48l640_spi_ids[] = { + { + .name = "48l640", + .driver_data = (kernel_ulong_t)&mchp48l640_caps, + }, + {} +}; +MODULE_DEVICE_TABLE(spi, mchp48l640_spi_ids); + static struct spi_driver mchp48l640_driver = { .driver = { .name = "mchp48l640", @@ -366,6 +375,7 @@ static struct spi_driver mchp48l640_driver = { }, .probe = mchp48l640_probe, .remove = mchp48l640_remove, + .id_table = mchp48l640_spi_ids, }; module_spi_driver(mchp48l640_driver);