Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp620083pxu; Thu, 3 Dec 2020 08:35:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2Xe2N9Be0l90p3IzpKs0ffGFDg8EyUALrQ807/hI+yDngm7toH9y+2JJg23iFhqj0ZIZg X-Received: by 2002:a17:906:c0d1:: with SMTP id bn17mr3440182ejb.114.1607013346972; Thu, 03 Dec 2020 08:35:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607013346; cv=none; d=google.com; s=arc-20160816; b=zXkrhcfIO9+hWRsxY8v+8dBA5cPpGjXalcY8cyaNA1+gMdqz2szPB2+z7aqlfzf5qU LER8sSWDydkM/zdRzeHSTTcC9Xrtt06zlDvekUCdxBLUFtBX2L7QV7WIBYdYWZnpzuRt 3G59UI+3CpmzXQ2ZkG5gdX7Q494/4ByI83z9I+M//Voz3c1uNI5zLS/QM9XhxRUIN2Gz MAOs5pWe5ocxrcIQaOtYzYw3i9rg3JvR7aSJa2aliYIyhSQgGYxb/PqsXiV0+szM7Q/8 fR/QzieTm+lIwsI/3D71CZVz9I0nqc10WH5VQZ5zYeSctvPzTm6JIaTJ/ff9FNXLel4O MKrg== 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=2dhOrzqSLw2EbXBFqZuXSe7nedigFHcEtpRVK05lFI0=; b=LY9frB2NRUcWH5u1aDZ/1Eqq69/zjzIWrO0UOll2KvfPWfOKLmcWKc0XDZouXzkKt3 EiksobeGbXkhwSzo5NpvyYe+tq0V9Jso/GMtQviXLaydK/wDeVVFGmiqSUlVLSb9RY0J NzeYCF+Nr2yGJbZhHO+S+ZKZbJFpgf2O1H985cO95Oc4oHWx5UAOzDc9kOWqow/VdIdB 9z7fjwk/A66WgWEuYauv30fL3uhWhxmkt+J2S42BSnjf/9YN0DJoYVg6u5e08dqecb0o Od/lyEHj99KY0YM+en9r9ZtjImAnGu/MFe3PT0co37/HOsO+Fb7deiIg3wlhf8VtJOw5 rwDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=E0iZzF0g; 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 22si1336827ejv.120.2020.12.03.08.35.23; Thu, 03 Dec 2020 08:35:46 -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=E0iZzF0g; 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 S1727722AbgLCQav (ORCPT + 99 others); Thu, 3 Dec 2020 11:30:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726745AbgLCQav (ORCPT ); Thu, 3 Dec 2020 11:30:51 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40EFAC061A4E for ; Thu, 3 Dec 2020 08:30:11 -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 EDBE822EE3; Thu, 3 Dec 2020 17:30:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1607013009; 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=2dhOrzqSLw2EbXBFqZuXSe7nedigFHcEtpRVK05lFI0=; b=E0iZzF0g76ACWn95Qk3K6WfWQR6AgObUqNLJDOaa21cGGRSWL7ZMsTz2lF0s7xFLigsqGT /QPuO1wSDAZQeUjfEBlsVpJTbBYYCVdP7WkOaVaUf/tuwhGVDq4rasDWkqaVuAcwAG57Dt qb+s50iADGejQfW//eRHbjB3XN+bdTw= 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 v8 0/7] mtd: spi-nor: keep lock bits if they are non-volatile Date: Thu, 3 Dec 2020 17:29:52 +0100 Message-Id: <20201203162959.29589-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 might be cherry-picked without conflicts 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