From patchwork Fri Apr 12 13:43:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 1923143 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=wBim1hU2; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=MJ/P3h0p; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VGHqk62twz1yYB for ; Fri, 12 Apr 2024 23:44:50 +1000 (AEST) 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: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:In-Reply-To:References: List-Owner; bh=/dd/xaJBhY/tMl/AXvQRFPICH10b4UuAT3o2TdB9lH0=; b=wBim1hU28J9Uyk r2yKhxc80Zj3DecmjCRDQOSIluzJ+RUyFhigpKbRsZDF9NdmWxxLFOhF0MJTDsuFPYW0xN0qSuApd Qc6QGSVrvTL9gN7ZZqWG0ln4lzPRcWCFP6wQ/ONRhayPPGjI/8La26G+eYOqHbeLs+Uhq5Mwa1l/G AAGRlRcufgisK/Va5k5x7/5kAeCR4y+SkhCvl4YoQAO/ycSGza9G3UYp5i73o8ioIE13W0zZHn4vl mj8bDhih4J3iBSqUXYYRyG42PnUIRjBfE1nqjm7iR98cVoPReZ1ER5oxcSBzeVmyfCGe2GpRfBWTU Cm1e+cMjh0xqHiBCr+fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvHCY-0000000HOGd-43CP; Fri, 12 Apr 2024 13:44:22 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvHCU-0000000HOFK-2Vm1 for linux-mtd@lists.infradead.org; Fri, 12 Apr 2024 13:44:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E35D7CE2EF4; Fri, 12 Apr 2024 13:44:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D2F9C113CC; Fri, 12 Apr 2024 13:44:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712929454; bh=dH6kXU4exatPA4peUu+lOUSnRh3/aQHQ5G1AbXpcFrc=; h=From:To:Cc:Subject:Date:From; b=MJ/P3h0p8+ZnVxiAh2aIei0Sd9ALNNQmHSRwaCNdZEe3+eOKT0l3VQo1NjeeMJnwK Uhe86otqAywWgxchhW7oqJassj4d2X31Xyn/OnPtgg+8PU1p2UB6AyN8Wkjt5GfiNi +6b5Et4XyqFuvSkCHPF1Z0/Pw/AFOvfV10ZjdKg8tbVmPT/Hf1pODYmF1QyBl7AWCt iUTIvcHNzuI7gOT7t/oDg1o9vKyTgFhhCcZU0YFG/48lisYFUxnh40g5xHOuzGohpE 08rxj4b0LIRVN6Z7XkA0f/C3tgfYk66rZjlxJYDhnXyo+V/O+l8PnnJkASqCw/tCry buFTMDGEF59XA== From: Michael Walle To: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Michael Walle Subject: [PATCH v1 0/6] mtd: spi-nor: spring cleaning Date: Fri, 12 Apr 2024 15:43:59 +0200 Message-Id: <20240412134405.381832-1-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240412_064418_903250_196DD6D9 X-CRM114-Status: GOOD ( 10.87 ) X-Spam-Score: -4.6 (----) 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: It's time for some spring cleaning. Remove the oddball xilinx flashes with non-power-of-2 page sizes. Remove the .setup() callback, only the default callback is ever used and it is unlikely there is n [...] Content analysis details: (-4.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [145.40.73.55 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 Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 -2.1 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+incoming=patchwork.ozlabs.org@lists.infradead.org It's time for some spring cleaning. Remove the oddball xilinx flashes with non-power-of-2 page sizes. Remove the .setup() callback, only the default callback is ever used and it is unlikely there is need for a custom setup. Finally, the last patch is a proposal how to deprecate flashes, which are just detected by their id. We cannot really find out if there are boards out there which are using a particular flash. Thus, as a first step, we can print a warning during kernel startup. As a second step we might introduce a kernel config option to actually disable the flashes which has the deprecated flag. Michael Walle (6): mtd: spi-nor: Remove support for Xilinx S3AN flashes mtd: spi-nor: get rid of non-power-of-2 page size handling mtd: spi-nor: get rid of SPI_NOR_NO_FR mtd: spi-nor: remove .setup() callback mtd: spi-nor: simplify spi_nor_get_flash_info() mtd: spi-nor: introduce support for displaying deprecation message drivers/mtd/spi-nor/Makefile | 1 - drivers/mtd/spi-nor/core.c | 202 +++++++++++++++------------------ drivers/mtd/spi-nor/core.h | 9 +- drivers/mtd/spi-nor/everspin.c | 19 +++- drivers/mtd/spi-nor/xilinx.c | 169 --------------------------- 5 files changed, 110 insertions(+), 290 deletions(-) delete mode 100644 drivers/mtd/spi-nor/xilinx.c