Received: by 10.223.185.116 with SMTP id b49csp5200807wrg; Wed, 7 Mar 2018 07:54:56 -0800 (PST) X-Google-Smtp-Source: AG47ELt9nvg1xWvC7efL+73jigDNTcg9XcyfVleIBZ6/xXJMsZPmEm75thxLG0RJB67hWTg7Cq3y X-Received: by 2002:a17:902:20c9:: with SMTP id v9-v6mr20984021plg.41.1520438096558; Wed, 07 Mar 2018 07:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520438096; cv=none; d=google.com; s=arc-20160816; b=Pr4iUe2YFZHBgxoAvl+Op3URMQA452wc9vgbOE/47HCxGnSiy2+bJ8e6XeyiH2+Zzi EtoOT578x1pqayVSFibT6INzknt6o1Wlni5vH4J6DuKRinDLz9lUD7UNHOJAXQRB9r1c uZ1oy51jsa6TYMQ82iZPEHUCKx3ZlR9RFxUPXG00H5jBSVUmCqeBNz75tp3ePI/SqUz7 yovNBFLCMl4PmC2dVdjd9L3tZRq+l08rLq5nauqChX77QPZ5KT0EPQIits5scLw/A2Mi YyUTjg8JsC/D9CsgpdVXDbHut1vCFEFtLADNREERp27gwZXq6ST8Zins0WLKObmR5p8C YVXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=f0TWMfAUCpaRaBj4UnUAA+hx12nt2uSpOxiWVlTrpvQ=; b=DV6OnrcqmGSVromrpnIsloG23BzSxJ0eI5uOEJX8mYFYu4SyL0HsYy2c2q73PIc9Di ZsqpOElVIZc1tPv4Bew1bzwacWTAQL7WPy92UGa3SQ1SosfHhfsNUVgT7YCknAnp6opR 0KHRSpGONT9/Zwyj39r943Azq7NzxXdU3TaeGaTQP8EE9C6Drc2gdeUFTgLdI1pbKXcx gT8nyCTN9MgZKf/PorT9PuEjWltxQW/YNJAPft1toYuMrd8Bj3OQ0XjZLoY7cFKjtUoT slcdXYnPM37UbXuEtGl12hYvK0sLqiBV0XtuiTjfk6IfOdkwoxYEiLJOPD1CRE+sYyI0 qN1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KxS/KevC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m83si14173122pfa.367.2018.03.07.07.54.42; Wed, 07 Mar 2018 07:54:56 -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=@gmail.com header.s=20161025 header.b=KxS/KevC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934261AbeCGPxS (ORCPT + 99 others); Wed, 7 Mar 2018 10:53:18 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:34935 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933958AbeCGPxM (ORCPT ); Wed, 7 Mar 2018 10:53:12 -0500 Received: by mail-ot0-f194.google.com with SMTP id r30so2490619otr.2; Wed, 07 Mar 2018 07:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=f0TWMfAUCpaRaBj4UnUAA+hx12nt2uSpOxiWVlTrpvQ=; b=KxS/KevCuGv7G77YPcJcyVsE54Dtv6O6peTtOEfWNLfFfXj4PJCl5oi0l2EX5ZmFPt zhjfSsUGrnHxzxJhVmfGJg0yTX3wgFEL9i4pbGN4//EFg2TOA1VLl1EWjSuWHZzeGC+l aIr2teKBIw1sFHtE5gS6XcgVl8xRLVNdnl+pwZXTvyuV82baB0Z2t5sOs3Ky2SATNVbP XIkSYWctQnbJoXcpbTsipiHPLg3U/zdbv/cI/jpgr8TyqiybpvTNejQkXSGY/GoeC72E pLBcMYbh9TcNgzNSRwvfwBvevI8Qrl0gmY/jN7uCCEsqfQnjQ826Hi2HXnXnQ8rdrWuX G1lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=f0TWMfAUCpaRaBj4UnUAA+hx12nt2uSpOxiWVlTrpvQ=; b=GgyPUgQarPam8/2X9i1QI411r/+1PTNu3Un8/eGWr3KVuXBtc+tzmrvwG5m6cNsB8C ZCJEcxvJ0qKfdH7QJkmgd1bWeJtgXzMyARRPEeE2eRPoPZ572k+ePFHreKETCaFSPWHR KzIqBuEbhyU9uofpyI31GD9LjQXhlPLGWfkAYitobf2VpEVaX7Hwv+GZuUYMZatTUToq kX3bbO12+4894yh4gcQnKZy2MO5ZJwEnKxPQXsV1QKyN5NnCMEEMbUGSkFtnkFywGtFH IMSlngMfXOqv9vszTCkqlyBGJIo5moPdD+ie8MeijQh9EleYsY71NqygGU7B0CU9Iqu5 qVjA== X-Gm-Message-State: AElRT7HMbfZsqgIBh8WylBns+Yt3mUf5+Z5XfRAPYEPZAMh8SvHyI7Yt e+FAPP7zaQDTXwbvF3WGsqX2oQ0W4NGenUB/4uo= X-Received: by 10.157.63.228 with SMTP id i33mr15488666ote.51.1520437991207; Wed, 07 Mar 2018 07:53:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.96.83 with HTTP; Wed, 7 Mar 2018 07:53:10 -0800 (PST) In-Reply-To: <20180307145559.y4tyyzd2pbqrk4yb@localhost.localdomain> References: <20180220163540.6704-1-ckeepax@opensource.cirrus.com> <20180307145559.y4tyyzd2pbqrk4yb@localhost.localdomain> From: Fabio Estevam Date: Wed, 7 Mar 2018 12:53:10 -0300 Message-ID: Subject: Re: [PATCH v3 1/2] mfd: arizona: Update reset pin to use GPIOD To: Charles Keepax Cc: Lee Jones , Rob Herring , Mark Rutland , Linus Walleij , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , patches@opensource.cirrus.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 7, 2018 at 11:55 AM, Charles Keepax wrote: > Hmm... this raises a rather good point that I hadn't considered. > This driver is used in a lot of shipping devices and the old > style GPIO calls didn't take the activeness of the GPIO into > account just blindly setting the value you asked for. However the > new style calls do take this into account. > > The trouble is I guess we don't know whether most users bothered > to set GPIO_ACTIVE_LOW or not. So it is very hard to say here if > we are about to breaking a lot of existing device trees here. > > I guess probably the safest approach is to use > gpiod_set_raw_value_cansleep here? Yes, probably needed to avoid breakage of existing systems.