Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp680986lqt; Fri, 19 Apr 2024 07:30:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFCFJidAQtFbkJ2U9yO97I9hPMYYQ+zQ99++DgAEWFbP0/pLqDPClkfHUN2WZlD3lrEUHTJmUJorldYW8m97Kk3k2S5U1OlnL8PkkTuQ== X-Google-Smtp-Source: AGHT+IEyn+65yT6QPqgxR01BzTqfMqdHe/A9C5+HTdjvKISUh1RoSNxwm+m7IJXtfcORNDVEAHzq X-Received: by 2002:a17:903:2a8e:b0:1e2:a177:d6b with SMTP id lv14-20020a1709032a8e00b001e2a1770d6bmr3112490plb.19.1713537001926; Fri, 19 Apr 2024 07:30:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713537001; cv=pass; d=google.com; s=arc-20160816; b=rNggr2Jez70hFBrY8RtmpvsUuYhZrLn0TiGvImJRNlM4J46c5V2kCjg1I0C7x3fJMo SodFm9f7vVjvt2W+NuIcmwCW43QiOQV/Ldn5L4QzUzGCKJOiygqOXPbovJP4Q45P75Uc 3KLKPSPZgEavhahhUxw8KvXqWFbq4YKpGElrabwZYZeF3yCHg+qViyCtq5lZjEJ6w9fu XPto8vNO7cm8wPZCjavXw8TxUIjgcZcwRfyvAaGB+Q2vo6E3ArVeUfRTmgUJc8Hp0xyK kSE/a4LpscL+8qUbEJ+uqE5oDIyjkit9ZaFtCTUkTtonb5N1LAgSJz5SJI9DjFYm2JGP fpFw== 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=KBFIiaSBJeBjxF77jN9W5ZaT1WjukFS+DiSozpqKkD8=; fh=hiyeRkAIXP8QwHYs1AmdSY1rKZOn+IclXHUsKmVu2mQ=; b=BY7xdZOODgklJjHA0hzbDbU5OPbJvG3NGCbx1ZU9I2pD5golma60o2oJpsfAzq+vUS xsjQTMi9e4jil56Jf8DtAEtOGStQeIFfaF9s/YeP1mue00btlkz25IQYMoLS4Vp79+ZT q4vemqvhgWZ/mT6LD7R5pyLzwecjPehdmjVHvlkZNPVDWDPen2dwAYISuCS2OZ8A5ojR 5MI/Y0+wSCVadyyZitmJY2vdjGEART5z/e0xx9tHl0tb2Dt35cRm1yoUx1fEAKgn/2pY f7ecf+LTsKvr46njGs83fF4iKJ50EL6oQOD7D5HfpmXJnQh6QTmjf6VHpKeixMa0JgPI D/3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=My8WQcq0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u16-20020a1709026e1000b001e8f5f468a4si522950plk.416.2024.04.19.07.30.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=My8WQcq0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151559-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D0CEEB24A77 for ; Fri, 19 Apr 2024 14:14:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E08AF12C817; Fri, 19 Apr 2024 14:14:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="My8WQcq0" 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 14ABB82D62 for ; Fri, 19 Apr 2024 14:14:06 +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=1713536047; cv=none; b=g9IjnMl16ataVPVBA8+RtnazGxJL7gpulgwbZVIulChKDNip55uAwa7q6ldQtj5npXJgOsXjO2hf6Y39xHEcrDqkG013Zm8sUeOCXgeupy67W4NB4dVwFW6GjavPkSFhon09lKvVSS/JuKaFsfMWeG8pfsP0HIA/jorD8Ijvfqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713536047; c=relaxed/simple; bh=M+lJ0VdAf2ZefRXeZ/D49skD9XSYKgj9KYPgzdBpWgc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qnLMQMf4M+F9OFhGroFKnZKHO0v3x6JmNZLorTDhJJ8SfbuXPIDJGOp8cjaEjs0XSMkFOKK26b9a5kNXyqBaSb1T0hPC9pLzmuQQCzXOEqndOcBj1jl3bM7/QM+VDGUEcNZ3MbVWIDfgUtb/EXzC4EjusVhFEY2lx6qPHNShUUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=My8WQcq0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A721C072AA; Fri, 19 Apr 2024 14:14:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713536046; bh=M+lJ0VdAf2ZefRXeZ/D49skD9XSYKgj9KYPgzdBpWgc=; h=From:To:Cc:Subject:Date:From; b=My8WQcq0uC3ZYNtLepMk8+NCns5Bru5mbIgVr1uw2m9SC2epkBYBam6ObJicWkJs7 dCVvmFhey3xsQUDFBSCptkxloKmZK/hMa8YRkw/dpAZ3zVx6+pNygENE3liHj+bLhn JxZdMelnVoh39Vvb4snrC8nQaET4XxtSHuhmPxEy74Ud86BMSuknhsTxD1OFvvfTYj yLQG7u+m7pOo/uJt8Y3d6KQDWZyyWhrHE+irm+h044civ5jGa7ycRl2RX5ZUrOan8U z2wTsk26LGoal4D0ivd0zeDp1p/WsA3LrTafhiMDpdeOT9wNpybUkWW4A83STIoj+S jMvtrmSUEpwRg== From: Michael Walle To: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: Ricardo Ribalda , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Michael Walle Subject: [PATCH v2 0/6] mtd: spi-nor: spring cleaning Date: Fri, 19 Apr 2024 16:12:43 +0200 Message-Id: <20240419141249.609534-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. v2: - remove convert_addr, I've left page_size in the info, that might still come in handy for future flashes as they are getting bigger, although let's hope they have SFDP support.. - simplify the fast read flag handling - reword the commit message of the .setup() callback removal patch - introduce .deprecation_version and simplify the checking 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: remove .setup() callback mtd: spi-nor: get rid of SPI_NOR_NO_FR 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 | 208 ++++++++++++++------------------- drivers/mtd/spi-nor/core.h | 15 +-- drivers/mtd/spi-nor/everspin.c | 19 ++- drivers/mtd/spi-nor/xilinx.c | 169 --------------------------- 5 files changed, 105 insertions(+), 307 deletions(-) delete mode 100644 drivers/mtd/spi-nor/xilinx.c -- 2.39.2