Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp593534pxk; Fri, 11 Sep 2020 15:28:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRy6+blM6Y/hSPFxYmEVu7nVHXtVC9hifDiZzPnOQ07N4ygidGNTGbw5uq3Olzom4fzRal X-Received: by 2002:a05:6402:6d3:: with SMTP id n19mr4783544edy.381.1599863291329; Fri, 11 Sep 2020 15:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599863291; cv=none; d=google.com; s=arc-20160816; b=P69QKsgohmFs1uT/bRrUCQJo9T1LIB5H9jfTzA85EtI03RfF4AIj6Ph7aywD+5brnh qN4E6Dbx7A2pZaWfJfY2/uXqJJx3nPsUTI1mhtlNrDV1mgNbHp940YEDLWUrdjC9XTy+ rWvJO0GXEBsjXNYdw2fyjozPls3ygaLBqqXagBKNrBp98GprAx41RvZtqfunLNGbvtFT HHoeJGgi1YXoUSCf0rO9QA1cLBHskIVwk14NnQStFFX5Ekbg9JEVU/Ey5RHnqJGuJDRp XRZCZsfgsjehpHV2BNBGezmPzmiIctWXsyPw3wx8+wf5zN3zMK+7llg0myXmDN+RkfpH d/Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=y+4gVmaJok+hBPiRs2OkskuBHalIQzIaZsf/KSA3W3E=; b=LFLlPK4uCMHUTZmpNAN0NXQWpnvkIPiMNjZpoQ7GUpu2I+uofUFzyp6Hr1f8/LJDBT EN4QKHiGr8BkEc4nxA3ZFoyAfSb24juyaJ/y722MOG/X4s/apT9P4h5//slaQa4BES4K vNsdGwyHhjFa/o9qWQ0TfQK5+B9j4wynWXAK7XBnPcGpNSs+7JZ8PsTel90tXRKjqKqP uD288PdmxQ7q/FhXV3kVoPvoGjD+JOsxuCOhc6sCIz5afZx5c8M64+Mn1g8gIOLJpmmy dfbbegSUgP0jREd3Fp0yHWWuj1piRpKvvEjhVuGb/2gz9W4QCvNzULlGDgk5PCUBrmay aKOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=sQCJlK83; 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 qh9si2090739ejb.613.2020.09.11.15.27.48; Fri, 11 Sep 2020 15:28:11 -0700 (PDT) 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=sQCJlK83; 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 S1725889AbgIKW0w (ORCPT + 99 others); Fri, 11 Sep 2020 18:26:52 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:56281 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbgIKW0u (ORCPT ); Fri, 11 Sep 2020 18:26:50 -0400 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 7199622ED5; Sat, 12 Sep 2020 00:26:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1599863207; 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=y+4gVmaJok+hBPiRs2OkskuBHalIQzIaZsf/KSA3W3E=; b=sQCJlK83FWDo9HPakLfSg9jTcS1am9xargZ1hWb/CNC6wopeUsTCoRu+UPo3ey4rMzJWHl 7bI9PJ+KFp6cnrVulgZrK1Oc9S5wvaPlMC4fjyIbio1wZzkBwB+/ez93MtgqV5FOps2ESs cB/VkuFX7PNufWUaNa5NF4jTWHGu4Zg= From: Michael Walle To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Jungseung Lee , Michael Walle Subject: [PATCH v2 0/4] mtd: spi-nor: OTP support Date: Sat, 12 Sep 2020 00:26:30 +0200 Message-Id: <20200911222634.31804-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset implements the MTD OTP functions to allow access to the SPI OTP data. Specific support is added for the Adesto, Macronix and Winbond flash chips. In the past there was already an attempt by Rahul Bedarkar to add this, but there was no response. These patches are slightly based on his work. https://lore.kernel.org/linux-mtd/1489754636-21461-1-git-send-email-rahul.bedarkar@imgtec.com/ Michael Walle (4): mtd: spi-nor: cleanup common code mtd: spi-nor: add OTP support mtd: spi-nor: implement OTP support for Macronix and similar flashes mtd: spi-nor: implement OTP support for Winbond and similar flashes drivers/mtd/chips/Kconfig | 2 +- drivers/mtd/spi-nor/atmel.c | 13 +- drivers/mtd/spi-nor/core.c | 769 ++++++++++++++++++++++++--------- drivers/mtd/spi-nor/core.h | 61 +++ drivers/mtd/spi-nor/macronix.c | 13 +- drivers/mtd/spi-nor/winbond.c | 18 +- include/linux/mtd/spi-nor.h | 16 + 7 files changed, 676 insertions(+), 216 deletions(-) -- 2.20.1