Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1778917ybl; Thu, 19 Dec 2019 02:54:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwMR4+nUYcnKkrzNNViYiE9hzRyEfWcjtevCf9ETKylIHoc7Np8CV67VVpLGSrEKDfHNvVo X-Received: by 2002:a05:6830:10a:: with SMTP id i10mr7770748otp.365.1576752866477; Thu, 19 Dec 2019 02:54:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576752866; cv=none; d=google.com; s=arc-20160816; b=spWSf/tgLfv1itd2AhavtS/FB+ZbNHoUAjZ1IwNIFwb5jnr7gKfQdQWHNldSF0WPjf KxJgPDnOG/XjTm+xy5zHJrt4FkTeGcNA3clIguA2fBkgKmmdR6VtwRusdVixVIDLi9f7 z8AsQCGuYb+N/gD8PV8jMxAzdlpMzy9k806ReQ3q/X5n212FTjo6m6AxLT0KHE+vEKet khnJ/ONkkVHlP3xWryANDJnq0b9N5alzE+CF0l9RpVv/QB0oDI8vfE1jwjf2yKl2/kpb BZFIv07Ewc2QxiPPxKSPKdj8E+qSK9NWw2RCa8fYdgTyJ7U79bdf6EFG0cp1qqhgnsNm 3kkw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IIuROUmiihU5/B8NCkUBw/bfwJUgV5QA6aHceLRcSgo=; b=h8JKkjwTJGJYvvFfTv145rta0gYUYuY/ParfUy9iLwtGG9vGzAlw7T5hE6gyXwfpcy RpcCdvEyq2itPDQCh0xk6snhHlu9pQbGTolR5xMBUnpPGbkuwGAPaXvCjIKlrEA5L3B5 bBvqzOdNthFBWcxpLyQ7zBZp1jtJpRYQq8OnQD71MWmkc/vMbYg9Vpe03QYVZw1Are3E yjx8QWT1zvXvpPEUdwomPi7Cm/HIVChy2DGOaUxdTuCyLm8fZdk/fo63pCzDouzW7AZf fmxgWup2wYXMmjPs74NfpflKtAoMpt+V6W03sgeiNZBWnrE1gdLq3wK93RhBr9FerwEH BwCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Qk2ztRNJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v23si1581210ote.118.2019.12.19.02.54.14; Thu, 19 Dec 2019 02:54:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Qk2ztRNJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726696AbfLSKxT (ORCPT + 99 others); Thu, 19 Dec 2019 05:53:19 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:43330 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbfLSKxT (ORCPT ); Thu, 19 Dec 2019 05:53:19 -0500 Received: by mail-qt1-f195.google.com with SMTP id d18so1976459qtj.10 for ; Thu, 19 Dec 2019 02:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IIuROUmiihU5/B8NCkUBw/bfwJUgV5QA6aHceLRcSgo=; b=Qk2ztRNJiaZYe5KTp+VkB2+m9oL1jp1wW7zAjyoHaFVvlYN4jQ/Q8FTRopN99xMIzT yLpTyqX1NGepLy5dU2nsZkDtQ1JO1T6hj8OEk3OhpBSng97yDWt2qw5Iw6p1G/CG6HGo xh4hHeGyQDl2bGMNMz1ZnpW+MBVcw6S59XqWaAEe2dnS0vc6W+t+WdTyiwndoNPOigNZ SivAAoG6f/iTyDZ4D9kNRLSuZQ/4NWH94VKETaDOB4RVHSJUrU5gG4WD+OIvWzbVoBzy g97zxEnhRIMjm7pj0RgqU+Et31Po9s3iE89+qZ7m9Ovgh223tZnrKZJpJkDAvq9y48Oz cQhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IIuROUmiihU5/B8NCkUBw/bfwJUgV5QA6aHceLRcSgo=; b=UpJyha+/w7uPeDTdAbJDmsDxZFfxswQmHUivXosh0Y/KdXMd8sCOHkbG6kPhGuSMOS JeKEGzZ9HuEzO2SJaTCT9978yD+egCTOGzcFJZfPv2xXC2cZuO7Mpl+yHnIra70gbE3l TgcGivollweXd94QaLm3Km4DDLMKlisPI+m2H20CmALZV8lREi1ck3K8wEtAvLrUHfWF jR6sPoMGfneBAeRnWvQ7s+zGyiIPV3tMLWLt5p82Jxee5OPGYkrogJoafKRZJlBqJMB7 jf6ARzw5YCyz+BOG30yoDAB0DWVJ4+9bgQoJVqsvNqTl798S26ku4Agf74BsoGOwQ1uC OfUA== X-Gm-Message-State: APjAAAXKZ8vOxWAGCUzp5IjsVW+epwMl6ciuLId4b7c1JN15vTqx338r kQBe+xhSzDBfIZLpA6PZR0gjPmj0lkAbekkZsYA//A== X-Received: by 2002:ac8:704:: with SMTP id g4mr6314518qth.197.1576752798327; Thu, 19 Dec 2019 02:53:18 -0800 (PST) MIME-Version: 1.0 References: <20191210154157.21930-1-ktouil@baylibre.com> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 19 Dec 2019 11:53:07 +0100 Message-ID: Subject: Re: [PATCH v2 0/4] at24: move write-protect pin handling to nvmem core To: Srinivas Kandagatla Cc: Khouloud Touil , Rob Herring , Mark Rutland , baylibre-upstreaming@groups.io, LKML , linux-devicetree , linux-i2c , Linus Walleij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 19 gru 2019 o 11:51 Srinivas Kandagatla napisa=C5=82(a): > > > > On 10/12/2019 15:41, Khouloud Touil wrote: > > The write-protect pin handling looks like a standard property that > > could benefit other users if available in the core nvmem framework. > > > > Instead of modifying all the drivers to check this pin, make the > > nvmem subsystem check if the write-protect GPIO being passed > > through the nvmem_config or defined in the device tree and pull it > > low whenever writing to the memory. > > > > This patchset: > > > > - adds support for the write-protect pin split into two parts. > > The first patch modifies modifies the relevant binding document, > > while the second modifies the nvmem code to pull the write-protect > > GPIO low (if present) during write operations. > > > > - removes support for the write-protect pin split into two parts. > > The first patch modifies the relevant binding document to remove > > the wp-gpio, while the second removes the relevant code in the > > at24 driver. > > > > Changes since v1: > > -Add an explenation on how the wp-gpios works > > -keep reference to the wp-gpios in the at24 binding > > > > Khouloud Touil (4): > > dt-bindings: nvmem: new optional property write-protect-gpios > > nvmem: add support for the write-protect pin > > dt-bindings: at24: remove the optional property write-protect-gpios > > eeprom: at24: remove the write-protect pin support > > > > Thanks Khouloud for this patchset, > > I can take this via nvmem tree once we get an ack on dt bindings from DT > maintainers. > Hi Srinivas, this will conflict with my at24 tree for this release - can you put those patches (once they're fine) into an immutable branch for me to merge in? Bart > > --srini > > .../devicetree/bindings/eeprom/at24.yaml | 6 +----- > > .../devicetree/bindings/nvmem/nvmem.yaml | 9 +++++++++ > > drivers/misc/eeprom/at24.c | 9 --------- > > drivers/nvmem/core.c | 19 +++++++++++++++++-= - > > drivers/nvmem/nvmem.h | 2 ++ > > include/linux/nvmem-provider.h | 3 +++ > > 6 files changed, 32 insertions(+), 16 deletions(-) > >