Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp722073imu; Tue, 27 Nov 2018 05:27:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/XruRcdVfAL0rGA/wYcgUn/MYf6KxFM4XHX7oBW88ExaG3JpHCPHw6+GRQaBVW34tGJsQ+5 X-Received: by 2002:a62:5ec5:: with SMTP id s188mr10306258pfb.145.1543325257154; Tue, 27 Nov 2018 05:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543325257; cv=none; d=google.com; s=arc-20160816; b=qGtOgbBEt+j1KY+O9812TD1pz9P4/+WX2VE/pM8ZCF+7wcs8QB4V0bmKoESd3/gU0z 6IrTZWubT3rX4Edksuev5/2z9FzoPGwGzcTqQZq4RfdbpHXHnqpYzYTmk4CHWkke0pEJ F4lLTlQQcMdcO/TW/5bbybYotapVpCQELX02mA2NNMqyU2B7tVT4Hb6ZukGERTXH8YMb KA4m5jG53PKD99LpuSoH0yFbyENNkkcPexHjvzwk8vo97ijVtChPBDQd3g6JpocSppj8 gHNQqQGsE73wm1eEy0OHja5kjB/sh1CZjhrRlay61v++Zx1vzcpkrVmwyOprE3HfwgLP RR2A== 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 :in-reply-to:references:mime-version:dkim-signature; bh=1BCbWUpsxHePFLT02LVLlMQFhl4fVbW9t4TnotjDdbA=; b=cGShXLZinFwJNnlUqxelW2GHbbNsGHpEUxV77KWs0kTnqcEueUBb3eUH/3lfjIchZ+ D3lrwcRb21s/HNZZHh51TNRFBsrCJvANfRkzRkBfR9T6cSYVbhMflIYldx/phllQWXFy aQePfmnnkrfwz6eusb8GRuLAZFCnTnqNUgAYiUrCvHJu0+v0rKUPVPkfdl4B8HesFPS9 EYAQ1GMLHcykYmkZRvmPEMDtISP1rY74JGfNDNsK/3vZoWPazu61VEhw2kF6V8OP23JE YIXmhq5qxJtYDt+c0rCgGoJpAHpUFeaN4Th+tJJ3O2TRxU3M6gVcrHBrRFnBMg5EFk/o /8Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gdc67awt; 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 a64si3709157pge.124.2018.11.27.05.27.01; Tue, 27 Nov 2018 05:27:37 -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=gdc67awt; 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 S1730888AbeK0Vsj (ORCPT + 99 others); Tue, 27 Nov 2018 16:48:39 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43572 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726720AbeK0Vsj (ORCPT ); Tue, 27 Nov 2018 16:48:39 -0500 Received: by mail-lj1-f193.google.com with SMTP id 83-v6so19595223ljf.10 for ; Tue, 27 Nov 2018 02:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1BCbWUpsxHePFLT02LVLlMQFhl4fVbW9t4TnotjDdbA=; b=gdc67awtQ9dC3ocimxMbVgMJv14dp84xjn0TLUsJ+L38wIOWpJ7VHqUs365QxIbctc X2IrCXWo7VziVRqCI/kI0VFz8X8JLOZg2Gkg/al/kX9ShW8v3+yvo9uj08NINUMlfXx3 5bLQp60zmiMZCkjbsNigQUZZzMX0Z12e5Gnfg= 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; bh=1BCbWUpsxHePFLT02LVLlMQFhl4fVbW9t4TnotjDdbA=; b=FTGYO2sRuBygnZrIdLsJhjaRq1+6IBRTgvzUIMrvSwIbYD3OLBV5o0KVZINfbXU2iN VAmJY766QrYfeXCWzf+5xKXYW5Z6ujAS03a5p1Pcr0z5jjxHFM42dP0EycSOFRYP8HgL XRxlWieNqkCrZLqP5jnwKxDDOWy94ZgS7Z7jJWawMdt0MpQM/ry+vZvDrZCJvN76j1Ls +Yb8hzUGRIUSszZyOfEmHkgPk2BE72GC3+MAkgENk08LK0ZYUEaIvmdp0+T82YzO5xLp YCI7OKKuUTF8mjOKsQXVW+EZGma8FllKlUifK1d4hiugPC8/cN9hxR62mXJnuEFVYIM6 vgvQ== X-Gm-Message-State: AA+aEWZKPauRrMPgakI5zIlKd5YZZiPEEDd89dPU5eLacDPy8yG8TCQ7 9ewYzXjv4rvzK+FL+yPfTlOAHyIMa73E0VQpQX03uA== X-Received: by 2002:a2e:9e03:: with SMTP id e3-v6mr19371561ljk.4.1543315867237; Tue, 27 Nov 2018 02:51:07 -0800 (PST) MIME-Version: 1.0 References: <20181122173015.23905-1-ckeepax@opensource.cirrus.com> <20181122173015.23905-3-ckeepax@opensource.cirrus.com> <20181123105729.GM16508@imbe.wolfsonmicro.main> <20181123132522.GE2089@sirena.org.uk> In-Reply-To: From: Linus Walleij Date: Tue, 27 Nov 2018 11:50:54 +0100 Message-ID: Subject: Re: [PATCH 3/3] gpio: Add reference counting for non-exclusive GPIOs To: Mark Brown Cc: Charles Keepax , Liam Girdwood , Marek Szyprowski , "linux-kernel@vger.kernel.org" , 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 Mon, Nov 26, 2018 at 10:53 PM Linus Walleij wrote: > I suspect maybe the lesser evil is to bite the bullet, invent > gpiod_get_from_of_node() which is the missing API (we currently > only have devm_gpiod_get_from_of_node()) and simply > fix up the converted regulator drivers to avoid devm_* > retrieveal in the same manner as wm8994 (the already > queued patch). This will make the regulator core own the > refcounting as it does today. > > It's a bit unelegant but it's very straight forward and I know > I can fix it up qucikly. I cooked a series like this, just taking it for a ride on the 0day build server before sending it out. Yours, Linus Walleij