Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1781473ybl; Thu, 19 Dec 2019 02:57:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxqnNYyXFovY9rMyu6UC8ETULrlSdaIznzqwggd26VqCI3B8IEbw36xu8IHwjcFoMpuI5/R X-Received: by 2002:a9d:7a97:: with SMTP id l23mr3401618otn.34.1576753065607; Thu, 19 Dec 2019 02:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576753065; cv=none; d=google.com; s=arc-20160816; b=Ai4aB1eUyhHb4nrIVhgyT5q36qa1vBYz84RP4w/QmfCYEqAJK0j5cf2CwCOt+O7Z81 9snyPbmg3/0NEkyfLCoYQ6/5seIeONv0YJ6k0lBd8eUeMim0bupG585nuU7UBX1kDauU mUyNJVz7CIfhD0/mcGC11ZDdEPwO9FY/CQfxclCBz2Wd4H+B4t5hINQAoWMIiRy6jX3g j+RvR4e5hAno+ruxfFkSRy90tLmTP1Nxkqe4gNIG2glcgBMivH/BLgdIVEg88KbYy3Ib Hhp1IpuMPy48vrGPQ9ej2R95jv1C5Fl4zpAV0VPWsvgFC5lpYPhwDCNwog0D34FA4/ub 3qWQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=NFjdDRBGKQSP78ncYCRWkusaN/fJO8tWC9Wf0q8cNrE=; b=qAqlB7PIM4w5qbUgfCx4loLPwo8bY7xnkYHa1GFU2M3Ry6hANH1BPFXEfYBYGq2u2G Q93yyt9Hmg3Dk4R9EDCYiFC12sw7YtUZH/j/fk6QSg7DqtgG+TL6esYYLtoqg6BdHeVg RpVYXxkiW6rqsPFX9wHzt8D0dcdFzZzomBitHreUjS5Bvftaix0zf1DRQ6Qx0MbeAYOE 9NC4t3KGi4UIl88vbw8Lk5mGUPf8wvps2sW0WBi+SmnSpT1ofMFsjmVRfusbApQA1jQp sO1Ro6uGT6TbYCIs4k+xZEMvHob/Xz60uW6z5S/jmvXrlLghuz0tJfzDbO7nvNsn+wyT cGQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tTxlGfcI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10si3140879otg.295.2019.12.19.02.57.34; Thu, 19 Dec 2019 02:57:45 -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=@linaro.org header.s=google header.b=tTxlGfcI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbfLSK4r (ORCPT + 99 others); Thu, 19 Dec 2019 05:56:47 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37363 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbfLSK4n (ORCPT ); Thu, 19 Dec 2019 05:56:43 -0500 Received: by mail-wr1-f65.google.com with SMTP id w15so5522555wru.4 for ; Thu, 19 Dec 2019 02:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NFjdDRBGKQSP78ncYCRWkusaN/fJO8tWC9Wf0q8cNrE=; b=tTxlGfcI9uQ7TaCT/WwexWp4Y2jwgo6CfGXE1WeFBkXPMbottwq90HX5uVFSzNo68J Qo4Id6rQdijASoPQxhh4ptwUB6rruGjJ946O2dP5olZx2Dh9BNbFrhpUIif79c/8QO0L SAxWMWRjRHpm+llgcQFTieGMUaeU6W+CR+dRtD3hZ5atsgOle7TkSxPBQZcSYQkbY/Id tPpeOKkOfmnRdxTCIKhJ3rAYxQHxz8Yu3gMQiTCzjZ6SFLCWBWV+b9MM7vx2u7OrMQrd P9Lg8Jr0ltAGyBGnfrJgcwGz8VcsRUrwn/vpATq3o4nLwE4A5zw6i44GHFdXKUEO9X3A szHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NFjdDRBGKQSP78ncYCRWkusaN/fJO8tWC9Wf0q8cNrE=; b=szhYUGZ0eDJdDn9lwToLgdzxR5jjXzgkoeaBh15Qo3g487d3YzBG3eBKoI+M97V596 VitPUFGvwjX4oLcPegAMUyvcA1DyqwzRCOg64yYgWbfN9vJgq0GJeOEYYB9q8RknXhhB KZU3CySxoQUJif4BULV/QjoKnNrSo9n/fVbsiYagqXwAV5ZVpctLsXuLco97D+VLj18Q iNAbL7IEmY/vzR6SI8nyXR07DALKy9/rV5HABB1ufTJURb/UdCoNyiLMAUWBrk1nCiRo RwpAL2Qt1xE25oArJr6zZGzPyO6FcBS0dtwfe7uzZTxvzZJnu1Wu2lTnGX4SLFOM5QA2 tfVA== X-Gm-Message-State: APjAAAWUSRhP9hwAFZt6GnGB2e9peWSAXNiutt/jGX/LpX18Aco+5rII kJtPVgO2OejR0K1yVfx7+F/lHA== X-Received: by 2002:a5d:5345:: with SMTP id t5mr9105000wrv.0.1576753001006; Thu, 19 Dec 2019 02:56:41 -0800 (PST) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id v83sm5908775wmg.16.2019.12.19.02.56.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2019 02:56:40 -0800 (PST) Subject: Re: [PATCH v2 0/4] at24: move write-protect pin handling to nvmem core To: Bartosz Golaszewski Cc: Khouloud Touil , Rob Herring , Mark Rutland , baylibre-upstreaming@groups.io, LKML , linux-devicetree , linux-i2c , Linus Walleij References: <20191210154157.21930-1-ktouil@baylibre.com> From: Srinivas Kandagatla Message-ID: Date: Thu, 19 Dec 2019 10:56:39 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/12/2019 10:53, Bartosz Golaszewski wrote: > czw., 19 gru 2019 o 11:51 Srinivas Kandagatla > napisaƂ(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? I can ack nvmem core patch so that you can take it directly via at24 tree if thats okay. -srini > > 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(-) >>>