From patchwork Tue Sep 11 08:22:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 10595241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D4C0D109C for ; Tue, 11 Sep 2018 08:23:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B894628A44 for ; Tue, 11 Sep 2018 08:23:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A939128A56; Tue, 11 Sep 2018 08:23:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CCE2528A44 for ; Tue, 11 Sep 2018 08:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From: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=4eAfhj0pkWnYqekSYuEz0ai4BRoDVjazSNGtb5osfRo=; b=Y41kgjSpBhsni9 /s8lheO3D2B1aA12po9lsxLQs1YbqocZMyYC8Y0UeyTDy1g995xtMAWG4Ncraj+NkfQ2ZojjRE2e3 sYG68k8gDA1JHSfDWSqG40U0+1GXk8PZdQosmoxK4iedSNmHkDZnzPaUyPrRd/gXiK1bA4CUnQ8di p6QWU3iQj5e0MCEiCJpV+WdTDbJpfVHlv5vvBggPR5/VEiWXvxtoLJHPna+DdJ6K7b+YYjtKxxanm NmeDxRMeJwzti9VClA4hKBvjIw4AmcjjWBmJXyx+Ls8nLyPHWJ4yx1bvErHHZjHCiTcBdryscrR9+ wmjU+LiTUln1hNOJp16A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzdwm-0006vm-VH; Tue, 11 Sep 2018 08:22:56 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzdwj-0006tT-FW; Tue, 11 Sep 2018 08:22:55 +0000 X-IronPort-AV: E=Sophos;i="5.53,359,1531810800"; d="scan'208";a="19314069" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Sep 2018 01:22:36 -0700 Received: from localhost.localdomain.com (10.10.76.4) by chn-sv-exch07.mchp-main.com (10.10.76.108) with Microsoft SMTP Server id 14.3.352.0; Tue, 11 Sep 2018 01:22:36 -0700 From: Tudor Ambarus To: , , , , , , , , , , Subject: [PATCH v2 0/3] mtd: spi-nor: add Global Block Unlock support Date: Tue, 11 Sep 2018 11:22:29 +0300 Message-ID: <20180911082232.28678-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.9.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180911_012253_576531_81A1DB49 X-CRM114-Status: UNSURE ( 6.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tudor Ambarus Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP To avoid inadvertent writes during power-up, SST26 flash memories are write-protected by default after a power-on reset cycle. Unlock the serial flash memory by using the Global Block Protection Unlock command - it offers a single command cycle that unlocks the entire memory array. v2: - add Cyrille's reviewed-by tag - add cover letter - fix link to initial work done by Anurag Kumar Vulisha Tudor Ambarus (3): mtd: spi-nor: add Global Block Unlock support mtd: spi-nor: unlock global block protection on sst26vf064b mtd: spi-nor: add support for Microchip SST26 QSPI flash memories drivers/mtd/spi-nor/spi-nor.c | 47 ++++++++++++++++++++++++++++++++++++++++++- include/linux/mtd/spi-nor.h | 1 + 2 files changed, 47 insertions(+), 1 deletion(-)