From patchwork Thu Sep 23 19:48:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 514545 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp579344ejj; Thu, 23 Sep 2021 12:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrjYX96C2sgSiHzlK6PgLIT156DFLkZ+ur0HK/BRwmYwH9/6c1A85a4Y9pq1FgegpcFjq8 X-Received: by 2002:a05:6808:1148:: with SMTP id u8mr5054355oiu.33.1632426647727; Thu, 23 Sep 2021 12:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632426647; cv=none; d=google.com; s=arc-20160816; b=F1deCbaMGIPMHmror46xYDsOdJC20mQqpf0gdP/R1nyY/WP8uuXqQZdGb+WQd/S1x6 GYQXqlK7SqJAgRdtlsHBaI2EZapoXqXp8Y57I3ivpAQIiG4DWszA+9s8hujhuGyuDtca Wu3DnRGdwWed8/4L16TOup4vASWWp+LQh4XmagP18tpKJK641HNEvqAbpFVYaSxc53QB NhctUcb1IsnT+3JvNZjlt/tVx+nd8Tl3oalyBcHQDlIX/qOH1I204N9yZv2jY+14E4JW vD5/7XAnE4RMu9E5lcUYO24kViA34zMbba2ndiXrWhlwp0SiotTA1TckVnI+TgdDIIt2 2Blw== 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=M9QI9zljbdNEJaYoj1f8I8FOmYotokTLtDe2DGxIQf8=; b=bpPrAqluhBTqIsW2U4AJ5MY+ZwiJF6wM9075iD9fnvoOZTGvVZjiOhCxD2VP1yJ3p1 okvuUNwb7RXPUBPBPcLO/n2UI1cxMr3vUY8PlvZCziO5JXTb9vmQir+jTs2AoBWRiKeE cjdlO8cVNw8/FeLR/u7j2W89zRCS21OISHG61gEGw5OJ/MAo1we745jMfISFPG0yGQUo UYqmpjKEQkFHs/D+BgFuvauCd5gN/CDRdJnauG52i0KO3AZqN8UUgNW5dPPLebg1VHxn eg77kTqRcMQU3xeLujhlUkM7udXWG4FT4ZUjp55WUPL6RijR8MGcnQK4o9aBgVVWnAO5 lRzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=DA3PLJCJ; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=QVQNuGRt; 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 y93si5975853ota.211.2021.09.23.12.50.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 12:50:47 -0700 (PDT) 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=DA3PLJCJ; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=QVQNuGRt; 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=M9QI9zljbdNEJaYoj1f8I8FOmYotokTLtDe2DGxIQf8=; b=DA3PLJCJNeRLPn ydJw5TvK18Z/n/4/+e2MkECFoQCgPitdqRVq+nyIEDO2uviRBzWupoYGipqmdYJzSJWxXDdVFrEro WRIm4dyntv8HIuGghBaa3Kt/0LEERiN3+gHflRVLJpil51u1UcNkcdMiHBnhIpVti5dq/UADpyHIl SYy9P+hXRrykapvPohH30P1w6lhkXVWE913fNdPnaIELqdi6rkIcWgA9AnyphowMwtbZ0aJgZbKVn qYNaPd7MeGwaV/g6uBwXUaFAAA79oLJLnL7V/3MO5Eo1ZNOpcyjDTM+i7X4AuUglb4FTAWji6vQFn 532TvptgdhKAEh1fx5QQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTUjG-00CV38-32; Thu, 23 Sep 2021 19:49:58 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTUix-00CUxQ-0z for linux-mtd@lists.infradead.org; Thu, 23 Sep 2021 19:49:40 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 32F996124D; Thu, 23 Sep 2021 19:49:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632426578; bh=opI35Q9sbQzgJ/4oACHZNchwZwdqa6+M1cb7l0QGVcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QVQNuGRt2VhBB/VayFtnokYLBnSG/AVRITXPuwNasrwjrkuOInqVf6FhZx1Nizxz3 sIvuu5/Dz2LtWdYfRrgKru60jEwnLBa0xOaMTH4IStEzqs/ba7MFqFW2LH9xk81Uig yLu+Xtue6vseo34rsslEBnjtmnIpES2dzhMj963beWdMBD/V0XEClIvRvxRDpO35iM LqEL+PHdLOb44SorOkocA9PfYqzBwJDmYP0zdlwesR9jjAzJWYyD3+QgXUkJJpz5ZG vyxRV5mrLidS4sRGoKjIz/5fKY+xsMUNrfxwhZTRoegdEhQFBktrUy8cRIWAIlwbH2 GE+jpxNZ4rTlQ== From: Mark Brown To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Mark Brown Subject: [PATCH v1 1/3] mtd: dataflash: Add SPI ID table Date: Thu, 23 Sep 2021 20:48:25 +0100 Message-Id: <20210923194827.53229-2-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210923194827.53229-1-broonie@kernel.org> References: <20210923194827.53229-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1386; h=from:subject; bh=opI35Q9sbQzgJ/4oACHZNchwZwdqa6+M1cb7l0QGVcs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhTNoINTJowRAF4Nv/Glwnw07nvQ/r+IH6w3PsTsVu n09gJVGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYUzaCAAKCRAk1otyXVSH0GIhB/ 40E8pKnY++J9O05TH9YE7ipxOI5phP1ScWyN16P8OfSt89lxGf/kJYNBLngDBceSJwAkz890KqRmAb pK+xMN6lLcCGbkHUWi/ezRrkF+YGZ0jzAef5OmjX5T2yNjVlg2QtMqyJ0lGgnNlyrDXxyVAFE84Wg3 enc8UW1wULv4RYpC+1BkX3mM81v0mA+4XmpFMnoaSrBpYsD2S0ivHQLTt7a2r/GjrqcC/Jgz2APAJz sD3YlDAPaiWWCmLZ/X2hcxrjvJ/kPZheCQH4z3Uz8NAJB/Ly70abDFoGkrmmmVxADMjqILv28KNfc4 Z3GZtEcQvB7ayhjZVKaSQarKRoW5H+ 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-20210923_124939_131122_11C206F6 X-CRM114-Status: GOOD ( 12.48 ) 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 [198.145.29.99 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(+) -- 2.20.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 9802e265fca8..9fc0146013ee 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c @@ -105,6 +105,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); + /* ......................................................................... */ /* @@ -930,6 +937,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 Thu Sep 23 19:48:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 514547 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp579567ejj; Thu, 23 Sep 2021 12:51:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwspblKfwzQnXXUkNoPCNx+n1UpAUllWe0Jiqc14oIQrxKEKYoR2PfqXTnVBp9Svis0aHk9 X-Received: by 2002:a54:4e94:: with SMTP id c20mr5154324oiy.57.1632426668453; Thu, 23 Sep 2021 12:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632426668; cv=none; d=google.com; s=arc-20160816; b=mfxDpUvQOqnjjxDRj2xh5F0lOyhCopeffPEfRIkRVbUFhRSp78EeiZrlAF0/0utaiQ mxjE5BX+gEGHAnK/j5kkhy+XGK4X+qgKpZNZG/uJJ7ZcSVhFcjUzoP4hi6YmmzIt5AnM iK5LyIOTw8ujTI4v2OXMJZ4CWFoncwukMfYNt8X1ButN9yq/mFU/nBvYLbhzAPZaxU5Q tbWNrNW73ylivHeLZySITTDuHmv2iGPlOTuvbC1b21BfqBbaaoMQwC5W2mSqMbDzR/8E dLv07MY4gknZIallWfkry/3YlscjpiJqVsHEWjApcAngPVG2orK8/60Aa799x18GiTef P/CQ== 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=CscGYCFGc6VPQ6KDOKj1Jf5WLT2Gj4Z/3vVwxfN563w=; b=ri8yrQ1pJLAVTuyAW6+MrMSYBPDKKGq1lxQJHfr4QSO23WNfsjnHJebbqlzgxEU98a ql4t0CAvcQypZhZUPSGJJmGFvlJ0TLGOPLyLmTbVm/LKHXZBvf3sqXRWtfWFTkze3fXD lmn+FW/C9so/5c+2xWetcbr2YwvZv1OeXAODYVxEv1RF1nEs4ZkDZeDpNCAEUdlQ2C4r jMHOc9yf56dkakWthm2AmkI+6L/jwjL7XxPySqMRFVE2o/Sv/0NxYfRUVIJ6XWHADpVQ 6QNKJeQaBW8jHhhduh8iWzhhf5vbDou5/guLexAKRCevLhgHtPyO3biVu4pjjMZEXeSu VnFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=m3wHOuKj; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=SQ5EIiOp; 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 184si6546973oor.70.2021.09.23.12.51.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 12:51:08 -0700 (PDT) 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=m3wHOuKj; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=SQ5EIiOp; 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=CscGYCFGc6VPQ6KDOKj1Jf5WLT2Gj4Z/3vVwxfN563w=; b=m3wHOuKjKow1MF JN5l7V6x5e20fqKJBqPuJNybyYULw34eZ448Q1Zvl5Hel5tF9kKN4VSXuOYDYc9hDlMp6jPbo/AMs +yxIt19ZY2IB1XJyhoM8rzuYIwSZtyG9gzQ6uDqrrvTihtPC7X7mmhyQJUkiZXPU/71ovRcaOinHh 3MLMnEAaZBhqlXf8Kdy4R52UjOuwp63/XxWy8qHjRjg+U3kwUdKt/jPCQMd+HwHEgOeT/Ajbb6l97 mptTal6QgDgKK42Zo3NNi67kvVzADgxyI+iurQqIl1BVe7l1qfjVyyc3CSHtv+EfYH/cQjJActXrt /58U87+/9ig1+cVInsvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTUjY-00CV8h-HB; Thu, 23 Sep 2021 19:50:16 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTUiz-00CUyQ-IO for linux-mtd@lists.infradead.org; Thu, 23 Sep 2021 19:49:43 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id B71A861241; Thu, 23 Sep 2021 19:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632426581; bh=bdQO08O6g0IoaN+9mdtjAVzDklEYuRkz6lGOGOOn2RA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SQ5EIiOpFHVhnTdcDKYulrJ9gpkBAaElSE13F7x2LA1MCqxdZQDKSC3LBNEYVqgd3 G846hAjIijx4SaFdwIZul1d5flJ+DZMwaFvH8FKJH0hBbwoyDuBkO1A24dwN++TSYs Ua0FXhMH9kDx/fLWhMrXMCRh6YfVnGqVX51cNGNqjMSnUUeaIA8cCTVTzkMj8J7zwQ 3lH0HBqTdRPj3gDlfJVEjqypZESa+/sTYySzBmDmFaJBQxj0M/qCwZWNqKsfiiBGKs gZFT+johzQkedTLMxIRkp8v00xp8Krvyc7uVpj7gGdKLLr1oWMiDl6upI/fNsW0nhn uwb6GRgocBguA== From: Mark Brown To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Mark Brown Subject: [PATCH v1 2/3] mtd: mchp23k256: Add SPI ID table Date: Thu, 23 Sep 2021 20:48:26 +0100 Message-Id: <20210923194827.53229-3-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210923194827.53229-1-broonie@kernel.org> References: <20210923194827.53229-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1496; h=from:subject; bh=bdQO08O6g0IoaN+9mdtjAVzDklEYuRkz6lGOGOOn2RA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhTNoJguRuGWtdAzoaVkZBh0v9FcwMnvC2YSqQJse4 hpzbhLiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYUzaCQAKCRAk1otyXVSH0KAeB/ 4i7D7Ml4W/QOFdA7tVgDmJ37VuOmogiF9n5rMSP0CLXCI44ji1GC0YJoboTBnzOBf/RoS5+H2Uv6DS da8AssUO9O5lTFoegD2BuhSJahssztK5mSOi5zb/XjmdrRpmXGBHRpQx8zVTrkzv2Zdob54Ww2vuoZ GchskeWT0sxZytuCVmcOOZHAmA9VCXz8CBuvGoF569vBedtMoEEQyrvRo32oPVpSaI8huJgqtwrfrL C1Vh7V5BTaIsVM864f5jk4iMmAzVD1oWS2lgzxbBMNtz5CKKlNxkrir1DypWpbaISV0xJjrBVA7FPW tJrgFV9lANU20VfkS4X++Ck6ga9MwF 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-20210923_124941_679966_09B15F6D X-CRM114-Status: GOOD ( 12.04 ) 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 [198.145.29.99 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/mchp23k256.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.20.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/devices/mchp23k256.c b/drivers/mtd/devices/mchp23k256.c index 77c872fd3d83..7d188cdff6a2 100644 --- a/drivers/mtd/devices/mchp23k256.c +++ b/drivers/mtd/devices/mchp23k256.c @@ -229,6 +229,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", @@ -236,6 +249,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 Thu Sep 23 19:48:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 514548 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp579797ejj; Thu, 23 Sep 2021 12:51:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEYPIdfTFLflAA6J2hmfNNLs5bkZYsrt6QNfVIYEv1T7MSfDcGELSt2HDmdsgjlHrvK7pU X-Received: by 2002:a9d:734f:: with SMTP id l15mr456228otk.4.1632426688180; Thu, 23 Sep 2021 12:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632426688; cv=none; d=google.com; s=arc-20160816; b=rhLEvTdaRpCHsqW9gpp7WoDZEPHS1J6No009qPu7ZEV5XaaM5GXvpMOBN+roTTpGK8 kq4IN6wDiNRpleOtuT4skeIWXKgP8k0kcNz8rU/dtFRR6jKJjA267R6tewxbUHteumqR 17YQIW4CoS8yk8OGXVdgACKDt7rfJrjUAuUPomlY2NPiQqMsX5Lfbj4t9P1rWN3EiYCg KT01Pt4Z9SCQ6GEimZof2s7b6Q531lGoY0coPYCII5ipdpkbybrwbI1Pqw7SIHjKw9mV FOXRnDGTqDh5xP+b0Gfdsre8zzkj9pDSE2ohDRrUNGvw0g+HS4foTDUPogTQKupWRdH5 /IrA== 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=+rK/7FGYE+JkCuFPtXe7nBXczACbZ4Gerb3gdea0hI4=; b=S8+16bObPPzMl16MI+yCLeLXSScJOrnFeYWQmaRA86mYUO9viIxL0/rG0Mwj7H9um9 /HvzyZGEyYPhaNfw6op3CF4769AlvVvzeXTXhlBtazhkn1m8tVy83zO8ArAVf6LKIIpv 7Tll/N48QcVKA+j4z0nCllvPAKZ6g0BVDiI3VNfccZ9wnruiId8wkDhA6tO819jZ/VRN i6fgF18UWCv7e0201zWmzjKuGyZ5e1IpN1e125VY5897neAWoAWBiX09hD5yKg6nigsb Wn/W5a9Md3BqNlb1xA7EagOoy83Hvyg7RjyF4xKGIMcDAwtV7tGuAW/JLJcq+GTQ0D1K ayQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=RO+i4Mqo; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=Y07Klmg8; 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 s79si6171571oie.250.2021.09.23.12.51.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 12:51:28 -0700 (PDT) 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=RO+i4Mqo; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=Y07Klmg8; 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=+rK/7FGYE+JkCuFPtXe7nBXczACbZ4Gerb3gdea0hI4=; b=RO+i4MqoxwzKo+ ROFnOwwMNd/4DtGSmL+9iDqxQPu0gIFO/VMpElT7Ngri7KSpnnmndqSpjuvyqc4hWtHaw5KiVL7eH i4INGcohSjauHkPbW97fZHDsejxASHJjwk3znmbeo2y1IqV2VldRHemjum39gjt156pGsQ0p2hlFI VCMgLQ8EK35LcOrnYtO7jzfCV3bAzKJpAD/WOij4u7v7DWAUM504KgIpwckjF5iQJOSzDLPPI2CwY 1Hn5gnVAY6K98EJu3m8tXNlDks1b6lM7Rt7kh/Qg6MuMa2D1f/XgRLkluT/PaMg6kCRQyzHLt1PnH DLa7164Xj1i2IRajm2rQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTUk0-00CVHP-5m; Thu, 23 Sep 2021 19:50:44 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTUj2-00CUzR-3Y for linux-mtd@lists.infradead.org; Thu, 23 Sep 2021 19:49:45 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A0086124B; Thu, 23 Sep 2021 19:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632426583; bh=GQZhZesCbw2bnhDgtQfmS5zti9ScrxLGcSl4K6kGSZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y07Klmg8mbhs5OzkHtlb6zOZJhlDmuvxkwgATbDglMKLk+5AZfnm8UDEUp9GZyvSM mj3Ebqx3cbhBZ2EylG8o+pcgdknC+/+WisYD/CPirUK7Q9w9WTIpSFVX+thLk8AD+t dnd5LrBPzxr/ytOQkL65pN7c5U8rl635u4cIuq5qGl03BzHcq+/3z5qLcxjxysmEAz HO2bq17EoTtbMy/St13wtR+KeVNQZQQRYBRtK6Vc0QMkW82VGcrYl5YD5VL5xqKVo+ M/kwhe00kX7/qPJ/7330NWie672guDZZ2+16lYm+awHu9W7WMFjzueD+TJ/XvU+smU WZNzZ5q9Ih+2Q== From: Mark Brown To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Mark Brown Subject: [PATCH v1 3/3] mtd: mchp48l640: Add SPI ID table Date: Thu, 23 Sep 2021 20:48:27 +0100 Message-Id: <20210923194827.53229-4-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210923194827.53229-1-broonie@kernel.org> References: <20210923194827.53229-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1392; h=from:subject; bh=GQZhZesCbw2bnhDgtQfmS5zti9ScrxLGcSl4K6kGSZ4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhTNoJNb6Qyq5PQE1x9jNzj+NLE5xA0RO6D08+XNT0 XcvpgqaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYUzaCQAKCRAk1otyXVSH0GP/B/ 0aETrWQgxF+UDEqV8olMnlI//j5fJDHFtRRgY4fORXSKxe/Q2wNePhWH+Y4N4v7n9wxAtq38ZLRfO3 2DvmPGmtehcUrsK6iwp10l9/Rm8cWbgJ/an9PHZ+6dkdZ2PJJl1mjBXOqIDTy8GbI4gkYCpQKdyUft vNHIruV98pF8ecePliCSaLVSiHeZS2OUqbbbNuWpae49cmQxta7AOBMeXiZFH+fdPMe9F1qZl+Qoek 1BeTtbHq3EMSoUUxNTnE1QZZ+z2h+BP21q9jjn3J/93LXcnNIh+pkvjcjFu90mpZa60KJPBhzkjH74 BgkGUS00x6Ch5E4QL3HkB99ninMZh5 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-20210923_124944_206161_0F54FE64 X-CRM114-Status: GOOD ( 12.66 ) 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 [198.145.29.99 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/mchp48l640.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.20.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c index efc2003bd13a..3434322dad58 100644 --- a/drivers/mtd/devices/mchp48l640.c +++ b/drivers/mtd/devices/mchp48l640.c @@ -356,6 +356,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", @@ -363,6 +372,7 @@ static struct spi_driver mchp48l640_driver = { }, .probe = mchp48l640_probe, .remove = mchp48l640_remove, + .id_table = mchp48l640_spi_ids, }; module_spi_driver(mchp48l640_driver);