Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp155682lql; Fri, 12 Apr 2024 06:44:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxl2hju3hAlD1dK8kGm2KlahwhxAIIxCX7Q33+ykva6iFyLYHBMyfwTBn9ysIpotJbQqHDgrB7i+uBp3Cd4FGNcFhI1GYNpoPTU5dDUA== X-Google-Smtp-Source: AGHT+IEaKTPOqBF/0Ha/SHQP1JU3SMHtXzOJ+gGA6v0CoZCCsY9+c+yedbEVHV6R9PjsECW9OVwO X-Received: by 2002:a05:622a:1212:b0:432:b560:41fa with SMTP id y18-20020a05622a121200b00432b56041famr4361239qtx.34.1712929460572; Fri, 12 Apr 2024 06:44:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712929460; cv=pass; d=google.com; s=arc-20160816; b=GlgyrLN2g/H8u9fjYjW+3hzkMtVGw7wIi2aiS/gXTi2QykgduNlcu8RGcbAfHf/ea1 Z4XlDUw+WYWe3TN6wMcokrZhu4YZCSd9SOWvnyJxYB+EhTbJbt48fjBMJtZSUorwQSBi OeHp1QJf6AicQ5j3hj8n5qIF/KL3rkx/HvYSIg8ABjAHcTVLfiFKIBAKRTJF7IJf1V60 ltESJH8VZ5FxQW/9O3459bOlvcz0btKvrio5Um1uyq5nRRikkg9NTkE+LJ3VpunX5yYa beplXhELP2hFGcL5HggX2oyYDPNqW2UOTY7a0AkFPNed9UIN7pxjPD4diNAmmYoTL0f2 IgYA== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=lpEuSKy/MeYOgKH0TzVelHpxgSi/oKW4a+/MKl1N7E4=; fh=LuNSX3JVG+htsysoJ/xF51pAKitwHo02H/zRZAOLqDw=; b=TM9oyzdMWJQHdO+8fiAnk54TOA375f2TZWXyWcdnnVOdPGiTAvD3kIzMVyhcrIP2DX MgX286/pMDYhTUWcd8Dmxhvet3cV17ARQnQTTt6IRSYoGHQvuQONBo7QhoSwEvYQSX7Q wmfHGAXYWR6kpFRDm9p/4cEkfauoPsEN6K81HSsruF4rLuf0pG/kCAqS9X8kjU5vszcd NVNXG6Aa1jQVvLGuTeulx8qeAB4j9AWBRT6QmvDQwZTnKwX3DX67Kvq2NKyjHI4IUCKn SF8odKnDh+s/q9C9Gg/i1Y4JAq40t2cHqmCggpqvi207y+WpEwmu6iYNQcWt6S9cHBVo TH6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MJ/P3h0p"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o14-20020a05622a044e00b00434e95d8680si3562636qtx.734.2024.04.12.06.44.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 06:44:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MJ/P3h0p"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 32B421C23C1A for ; Fri, 12 Apr 2024 13:44:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F4AA84A46; Fri, 12 Apr 2024 13:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MJ/P3h0p" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 993CE83CCE for ; Fri, 12 Apr 2024 13:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712929454; cv=none; b=Hx7nrCN7FYjWRBAUTG3rxRKd2suqWQkT7ev+kusqCxPmW2eOiYHhEu19FRV9G717Agj4EgBpkGcu3XSLSPrkG7SfdAgaxME6OHBqD/3ao3+lCokkc1xDwjGGzQZXor9icjAMKz8rMWc92HgADP+PnmUSCGHEIh4Z8VQFIRGr46o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712929454; c=relaxed/simple; bh=dH6kXU4exatPA4peUu+lOUSnRh3/aQHQ5G1AbXpcFrc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kPwSrYmgzhTw4M1hoDw4W2tsOzx/C7NIRJ3Ij/PsDt1YduoB54YFS8wdUmnv69wvZuCqW1a/TxvS5/vqq86WE+SD+4GeKXhQU+9Jox0MElOfZ4k2O+J1nf3yInyn+2uVpGltLeG4/XTbvE4rg21N1QQeRZzNv0V52TEi9BBpHk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MJ/P3h0p; arc=none smtp.client-ip=10.30.226.201 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.39.2