From patchwork Thu Feb 29 14:15:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 1906328 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=ICNicbPZ; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=O4C7LXgY; 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 4TltYb190jz20Qg for ; Fri, 1 Mar 2024 01:16:03 +1100 (AEDT) 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:Subject:Cc:To:From:MIME-Version:Date: Message-ID: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=WkMQUfoYO1xLIy48MWXgQ5DhYXk0lZ2Yrt2TeRaxUrw=; b=ICNicbPZQUBJaQ 3t362+kRP5ihCI8Kz1Ei15Xm2f0UhB86UMR+nTtAngiL/ljjtcBY8F/nRws/fFPxnJzylGIW7Gskc vJkVIzWETWMplCVhb0wchUAHLqqIerpH815fLW+wljcn5Lbe14rt2kHFykamOkYbKAeJcRs1s0DtY p4sOTXzTGb432qLHZiNKF5ZQKmK2u44slxseS75CcTeMoyIZNo/BumP8RbD5zH9dYeDUPbMscrRxI dP6zBtSs1PdMkNt4f8BCQd82mmxWT9asA/soh7koJ/3vAHKOCB2Qnwfdxe3g78QVm3bU29PCHoNE+ ec8oVcbCMqXBTywTyKbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfhCJ-0000000DoyU-0QjI; Thu, 29 Feb 2024 14:15:43 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfhCF-0000000DoxG-3sRu for linux-mtd@lists.infradead.org; Thu, 29 Feb 2024 14:15:41 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a293f2280c7so195825466b.1 for ; Thu, 29 Feb 2024 06:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709216137; x=1709820937; darn=lists.infradead.org; h=content-transfer-encoding:subject:cc:to:content-language:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=JdiYeP9gdKejGJeuXoSTrrP8jz3vu43onSQ+Sz9yJJc=; b=O4C7LXgY8MTfgfS5cktYkKrVdYadHXGRsnI7L3S8EEPliNKMePbumPunqECkpmyzur iY+Sqv6U7NnTSq8npH+B/K0VyahkQ9UnVh2LDX1MVaYhjyjOEy0WDhq1wwnM+GrHnD7W XEwpVCtNqu9CfscKFukMy0Dq/NWVf5vt/G7iSwdNwFjGgv1/ph8pYzYeBrjRnbH8/tl6 tw+g/mig1J6BHLlFVbcQvS7WeN4xjXO+Bzpdoty4FN+SkY8sFSH2rHht+CKJKTfqIAVN pxeHpJ+/HibVP/LAg4Gg9iPRh8c4IdjReFiu17exWDx7+nJhqNWfT7jFzRW37NjDrbG2 PU4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709216137; x=1709820937; h=content-transfer-encoding:subject:cc:to:content-language:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JdiYeP9gdKejGJeuXoSTrrP8jz3vu43onSQ+Sz9yJJc=; b=VmcGQRnFl+CnSR5nZSDvOQvpJ2ogAeXVOwYLr4tvygxMw2P3UXlwPov7zKps5oDFem 3Hbag1OQtfpX5um/lY4YPT6IwpyFeEeSaESYs2cM+HeVP48aAAyc8FikSGZ9gl1wECW/ aDLbdUL5gTkpI+5z88FOfPVt9Er7F+x20wGuj4cFqBXuhn+oVvNb2/BXMKYZc501InMG FMTZm3vKL2971ijS5N6lw6ESODLMHRYHZxgGEPNKXLaqIxW7gRx7RmIwyw5OdvIpclsQ kgwCRpEI0SCMpaMPJHdRdlpoHw0cwhIwRS8JShEbtQfHbygXaW1n4cQAlDFsoe6gms6z MHEw== X-Forwarded-Encrypted: i=1; AJvYcCU6L+TVeB7ASuYehBZ0iGOtAtK+Vd95vX5BQvw+yPBg10B4GY5i3kRBQpmNyyOX9mrRNb6ieravYWkcaMaSyj+iGuZdI9+aMM1nON1ZWw== X-Gm-Message-State: AOJu0Yy1WGD0QMm7LJShS8NUPNf5EQ6fmdNNOG4sRJLa0meErqzORu8Z Mx7u6SEl4bxD08H86bZDiG0C0uZUjNp0FtD3Gl548B4Mwk+A0h9tDCD5gnV6VUk= X-Google-Smtp-Source: AGHT+IE8Vx59BoLpL7+5Vtu9R/pjvwkAyYQTgj4Z0GzcwQ20cKWboZo2uun53VKTGosbuX4Jy/KT8A== X-Received: by 2002:a17:906:4917:b0:a44:4f9f:1270 with SMTP id b23-20020a170906491700b00a444f9f1270mr1194613ejq.37.1709216137656; Thu, 29 Feb 2024 06:15:37 -0800 (PST) Received: from [192.168.0.173] ([79.115.63.35]) by smtp.gmail.com with ESMTPSA id i27-20020a170906265b00b00a441c8c56d0sm720455ejc.218.2024.02.29.06.15.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Feb 2024 06:15:37 -0800 (PST) Message-ID: <7d391df2-09e4-4166-9116-312bfa74e738@linaro.org> Date: Thu, 29 Feb 2024 16:15:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Tudor Ambarus Content-Language: en-US To: Richard Weinberger , Miquel Raynal Cc: Michael Walle , Pratyush Yadav , "open list:SPI NOR SUBSYSTEM" Subject: [GIT PULL] mtd: spi-nor: changes for v6.9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240229_061540_002023_6536C0DC X-CRM114-Status: UNSURE ( 5.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) 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: Hi! Here is the SPI NOR PR for v6.9. Thanks, ta Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:62a 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_EF Message has a valid DKIM or DK signature from envelope-from 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_AU Message has a valid DKIM or DK signature from author's domain -0.0 T_SCC_BODY_TEXT_LINE No description available. 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 Hi! Here is the SPI NOR PR for v6.9. Thanks, ta The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/spi-nor/for-6.9 for you to fetch changes up to 6a9eda34418fc4dc05c2a7d6741c475e287d418c: mtd: spi-nor: core: set mtd->eraseregions for non-uniform erase map (2024-02-26 13:29:09 +0200) ---------------------------------------------------------------- SPI NOR gets the non uniform erase code cleaned. We stopped using bitmasks for erase types and flags, and instead introduced dedicated members. We then passed the SPI NOR erase map to MTD. Users can now determine the erase regions and make informed decisions on partitions size. ---------------------------------------------------------------- Josua Mayer (1): dt-bindings: mtd: spi-nor: add optional interrupts property Takahiro Kuwano (4): mtd: spi-nor: core: rework struct spi_nor_erase_region mtd: spi-nor: core: get rid of SNOR_LAST_REGION flag mtd: spi-nor: core: get rid of SNOR_OVERLAID_REGION flag mtd: spi-nor: core: set mtd->eraseregions for non-uniform erase map Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 3 + drivers/mtd/spi-nor/core.c | 187 ++++++++++++++---------------- drivers/mtd/spi-nor/core.h | 30 ++--- drivers/mtd/spi-nor/debugfs.c | 26 ++--- drivers/mtd/spi-nor/sfdp.c | 47 +++----- 5 files changed, 128 insertions(+), 165 deletions(-)