Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4830783imm; Tue, 16 Oct 2018 00:11:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV62/bVm0+SDdb5YEI3jmbItG+eDSquWTUrhoRTls4QhEr//2Kv1GPfQTxa1a/kARd/AFoVZ2 X-Received: by 2002:a63:82c6:: with SMTP id w189-v6mr18948392pgd.211.1539673909180; Tue, 16 Oct 2018 00:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539673909; cv=none; d=google.com; s=arc-20160816; b=zbX9zamnNm9QaskmHKigzLO0mL1+OOtd/m5coHEVuY5s5EnY1kvGsgUiP+4YqnJaDW uBXhkKTFpNtW51hh8NhVoiTItINHVhdCbYWjTdP1mjFhzAf4fs82xu1UqLTTGx/TM4qR WQ+3NxBxhplPylkBgkvKVVRmLfdfH5Onz2N+6Ey0c9oSS2gSh1txN73QX8AKezkiI/I3 NgSJ9ifadePJtAtTlNqvzull3BLDS8QMT4ghsZz3gVn/1aEUwWn7p3HiU2DGCvwulou4 PcH/z+3Nhq/bOVejSyj7U9EFEkg9/KaRAGFWLWuk+kK1hDkociNc82C9Ogugax5mDWTN T/rw== 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=/MC/TFJxT4wqRcTHQ3op6F7JPPs4E8aXvaRRl5X9BMQ=; b=QJrfR3yOjkZRaww1V17xrqUr4UqYhV5ASZrYiHWtPgQ9dV+cWbnHIkaajEHVlGiDE9 7TqQCMklsz7B8zFR5kBm6Wqn6YOQXMJqefR3wPtA/fzT9qpLH0blzDjt1kILy/P+KlNy xCLxdZ8dytKrgyGB5AUkVAJExdpJr6KaDcKktMpCo7PTJgvGvsdEpaVPyCmhdlx+APff H1Z+0i47nseWf5rPNtYZdW8SpKK8J+ngrq5x3Yt8qom/gOEC/jRn38dONw4mw0UpmnYV EVFhZNzj4VidTAlULOA9AnZ84VrMzU6Temh4gIs5NKeOJEQ0E0xJjPaCnmRW1WwXRK4j SoIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EJmy4ifs; 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 f25-v6si12851635pgb.170.2018.10.16.00.11.32; Tue, 16 Oct 2018 00:11:49 -0700 (PDT) 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=EJmy4ifs; 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 S1727761AbeJPPAL (ORCPT + 99 others); Tue, 16 Oct 2018 11:00:11 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43870 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727447AbeJPPAL (ORCPT ); Tue, 16 Oct 2018 11:00:11 -0400 Received: by mail-qk1-f194.google.com with SMTP id 12-v6so13464999qkj.10 for ; Tue, 16 Oct 2018 00:11:09 -0700 (PDT) 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=/MC/TFJxT4wqRcTHQ3op6F7JPPs4E8aXvaRRl5X9BMQ=; b=EJmy4ifstZJCusc14jPOh3BMhlPvJZJ1hYP9IdQNTOijjjzpCFxFg6JKFiiRcRrGMd +MojfCRoQv1FAHsCGZgDvL5WVHlwbrYAD8+/I4hTCvJXhdJmtyibv393N6mFpu+sI6nF OwGFWpuUvEqTj6ifGQstTATUVxJOYEDBMAjVU= 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=/MC/TFJxT4wqRcTHQ3op6F7JPPs4E8aXvaRRl5X9BMQ=; b=Ai556KRFa47OsFrwhmX7PsQ3mv8LzGMqZTaO3kIvmtfs0t38VmS7fFheIj9Yf/jbC+ sKo4Lt5DVYYOuCsrPqiOI4ImLQ6UnioLwspJ+6AFoiRVmHmmVwQaGjL/6NcYcYb14Eb/ 1BHeStPgAkqVHEkrgYWp9soFAs1/7FUW+XdSU/7WyLGqDg9yhGJl2l8QtfaP2dggH+Jb BbGyEMiZY/oKzyrBDKSdy5BrzdNxW4OvIbts/p7cvBA+ptEN3euxuD/hZWWCuTt1T8bJ tk9+wj0/R2Qg+WF7+cfE6RqHLelv1faLqFu5YqpYy73SyrnQSGhpwovjl4wS5sKuw104 WPYg== X-Gm-Message-State: ABuFfoj9ReFbp4NjlyzQFlr84aoFgo4Jstwb22NP/fDD5LoRZiQ7Auml sYLHznnkE5bL15rkkKZrp4cG/IoxNWo7HsxrlviAHg== X-Received: by 2002:a37:5185:: with SMTP id f127-v6mr19362564qkb.44.1539673869537; Tue, 16 Oct 2018 00:11:09 -0700 (PDT) MIME-Version: 1.0 References: <20181012125412.21324-1-linus.walleij@linaro.org> <20181012142612.GJ7677@w540> <20181012164424.GE2340@sirena.org.uk> <2849502.hPNvL6TNkA@avalon> In-Reply-To: <2849502.hPNvL6TNkA@avalon> From: Linus Walleij Date: Tue, 16 Oct 2018 09:10:56 +0200 Message-ID: Subject: Re: [PATCH v2] regulator/gpio: Allow nonexclusive GPIO access To: Laurent Pinchart Cc: Mark Brown , jacopo , Liam Girdwood , "linux-kernel@vger.kernel.org" , Marek Szyprowski , Jon Hunter , Cheng-Yi Chiang 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 Tue, Oct 16, 2018 at 1:08 AM Laurent Pinchart wrote: > I've seen other boards where two components sharing a reset signal have an > active low reset for one, and an active high reset for the other one. Only one > of the two can be out of reset at a time. That's probably considered as > "clever" by the hardware engineers, but is awful to support for us. Haha what a feat. If/when we run into that we simply invent a new flag like GPIOD_ACTIVE_AMBIGUOUS. > The core issue in my opinion is that we need code to handle this, and since > the removal of board files there is no place anymore for such code. Board > drivers exist in drivers/staging/board/, but that's hardly a solution moving > forward (the TODO file explicitly states that removal of that code is the end > goal). Yeah I kind of already concluded that I need to pull the multiple user reference counting out of the regulator core and take it over to the GPIO subsystem so I'm going to attempt that for the next kernel cycle. It's a neat feature anyways. Yours, Linus Walleij