Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp61059pxu; Wed, 2 Dec 2020 15:05:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGsJbfIB30u2rqfyLYRrE6ED8YRfr3OIGfEHu5EnZcw7v8OXVQvFqj8Sqq6g2y0wfdQ3Jb X-Received: by 2002:a50:e68a:: with SMTP id z10mr334052edm.66.1606950301379; Wed, 02 Dec 2020 15:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606950301; cv=none; d=google.com; s=arc-20160816; b=HeGlsNUWzE+eSG2UoBMk3TdXvTot9lJxrErPui6IerGh5zXYT+H8qrUrsMoNUq8Cne vGbaQPAFx4VyPuULU/jLkULgaq9IAVoGh72pA8avbbeu6JZUrbz0xyiyTgtLRcLX6JB0 piIGDVnTjRc70J8vP1fUvibU308uyZgdhjFr+e31M2tEoqcTq/Xq1PdojG5S3dyERHlr o2RbDDTwqBr8BkaEo78vEM4NQUDPLqIuopNb4pWjNHo8Qjcw5bzgNZfni/xrpml9Kucj b3l0yyETk/FRg07uqWY1fKqGTs1I4IQg2rQ65pZgF3rCiyWEhAXGdeTc6VRA7rZp76c8 2fWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VbAeyqT69wmC7k3gUjKgzJ7BJQNzs3FcYwUcXu4/g+Q=; b=RH6KnfTMvyX9IkvH2MJ3JprB9hKXmNgg+TRxFJQ9blacT1ANer5co0c2+Y79xdqPar +fU9jQIt8SFEFbTLCg0Cc7yKIH3jscWy9YH0YwlOxTxSeFkS1u1rBq2Huxpw7icB8TyS 1xzw8AvZjHuYoHrqB7igE5dDprm4ZfVoVXjqxXKREuli9sxfdPRadiGKKKWEBDsvyPvX 8jks0EjBM4c/YlLQCz6bKvZBmi5iclOZIE9HM03BFkQWhGmYxMUerURz5MpSv4Ol7Lw7 doJCbKQtM1u2HcjHsj7+zc2IEhMradaQedkFm74JkNq9igfWkmVr6vQ70ZcUBd16dmXk Mc9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=MtYEYxjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si126724eda.607.2020.12.02.15.04.38; Wed, 02 Dec 2020 15:05:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=MtYEYxjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387516AbgLBXBk (ORCPT + 99 others); Wed, 2 Dec 2020 18:01:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbgLBXBj (ORCPT ); Wed, 2 Dec 2020 18:01:39 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83CFC0613D6 for ; Wed, 2 Dec 2020 15:00:59 -0800 (PST) Received: from apollo.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:6257:18ff:fec4:ca34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id ADFDD23E43; Thu, 3 Dec 2020 00:00:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1606950055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VbAeyqT69wmC7k3gUjKgzJ7BJQNzs3FcYwUcXu4/g+Q=; b=MtYEYxjbAQnQW4lxNQIqODTjShc19nOUglNpUlPhHBtbopfliXasR8y0Hq5fmXMNCJSRCe B1SaUAQrKdswL6HoXB1hC+LFJzbo6TxQbgg5Fb0T8oEbOmgv+P2tftsauh1PAoK0J4jkLH RopfBRstjNj99nthqlzEqN/kaXuIXvg= From: Michael Walle To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Boris Brezillon , Michael Walle Subject: [PATCH v7 0/7] mtd: spi-nor: keep lock bits if they are non-volatile Date: Thu, 3 Dec 2020 00:00:33 +0100 Message-Id: <20201202230040.14009-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I bundled this as a series, because otherwise there will be conflicts because the "remove global protection flag" patches modify the same lines as the main patch. There are now two more patches: mtd: spi-nor: sst: fix BPn bits for the SST25VF064C mtd: spi-nor: ignore errors in spi_nor_unlock_all() Both are fixes and are first in this series. This will ensure that they even have a chance to apply cleanly to the stable trees as the following patches touches the same lines. See invdividual patches for the version history. Michael Walle (7): mtd: spi-nor: sst: fix BPn bits for the SST25VF064C mtd: spi-nor: ignore errors in spi_nor_unlock_all() mtd: spi-nor: atmel: remove global protection flag mtd: spi-nor: sst: remove global protection flag mtd: spi-nor: intel: remove global protection flag mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040 mtd: spi-nor: keep lock bits if they are non-volatile drivers/mtd/spi-nor/Kconfig | 44 +++++++++ drivers/mtd/spi-nor/atmel.c | 191 ++++++++++++++++++++++++++++++++---- drivers/mtd/spi-nor/core.c | 46 ++++++--- drivers/mtd/spi-nor/core.h | 9 ++ drivers/mtd/spi-nor/esmt.c | 2 +- drivers/mtd/spi-nor/intel.c | 19 ++-- drivers/mtd/spi-nor/sst.c | 32 +++--- 7 files changed, 279 insertions(+), 64 deletions(-) -- 2.20.1