Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3287107ybl; Mon, 20 Jan 2020 20:40:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwI99xmM1UML2kB68hbhXTtX2DtNEU9K1P7VzVduM4VMVTZqOKs+nxis0mwCsXTIiEE7mdt X-Received: by 2002:a9d:6f82:: with SMTP id h2mr2164856otq.69.1579581647003; Mon, 20 Jan 2020 20:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579581646; cv=none; d=google.com; s=arc-20160816; b=AQE2lcgWMndrKkQgWNrbtXQnNeQ3k1qCht31UKudpGvojp5lMAM2h1vCv4Q6kAZbqz Rh0u8aBzayoWj2jpveMoLJ/1Vs3+bebt1ltHiWYmLrt7HQBVwhpzfxVlFOh0YqnuCRfS vSY3nAqZh+p8KIGDe3yNQ9rgmz4X+1KXfDAZaN4unIp+oWuAqxDQoBSwPlmZBeAAK9ve joCTxkhOrVVTZWxOcrJmIROskq4cvJPQmUZL/+g9LDNZqCoXtEBuS0yPckI6F9Y4R7HM gtT+BBMj+1ZZWhZ6wIBqJbE/dnLODZOV9HB3VKjv64Nz7OvnAiwMkBVk2Y0Nnn9MbgQm NC6Q== 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=tE6t4zYqaVXPST4AhwIQ9GsXTC/ddB8hjT5O44X4X2A=; b=r3awAQLbCe9/NPdiv9suz9h480wHOl3SxPE3tumPDilyZvd7HOxtUZsa+GCW6ZtxqQ 5cm+KJfhGFLgEMZN7oW6xvNNJSsdSLqXJEgJuSOSYdfVxgqdQfQHMT05KxxIyw+71AYC POKZbGx25aQYFGl9qzjKNIIflHZeBJDKYFPN+0hjsDbn1APbQD/fZffThkUuf5GOFB4X PWR8Eb8WE92zrsEMWFB4rKlwUADNV7nN09/+9+9FLzgeW4YAvwBgTo33W5ZVAZ/LNn6p StNCmUT9NKs29lbrxwCgE1QfDTIDc3YOMzoD06Fpx5k3FLdnGDhGKyoB9oSXbD2ID1Sa 9yjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Y437XdOv; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m26si21383571otn.307.2020.01.20.20.40.22; Mon, 20 Jan 2020 20:40:46 -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=@chromium.org header.s=google header.b=Y437XdOv; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728797AbgAUEh0 (ORCPT + 99 others); Mon, 20 Jan 2020 23:37:26 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:45868 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbgAUEh0 (ORCPT ); Mon, 20 Jan 2020 23:37:26 -0500 Received: by mail-qv1-f68.google.com with SMTP id l14so837787qvu.12 for ; Mon, 20 Jan 2020 20:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tE6t4zYqaVXPST4AhwIQ9GsXTC/ddB8hjT5O44X4X2A=; b=Y437XdOv0Hto2lq+dzGstZ/dDsYcyHpK4I+DVf73M1v48j1EjilwkEp0HlSg8Iu9gL 0tTOS38rUYrM9yCpro7VwAwprgAfaJvNt0icSyt0cimanM+SnEp2Xre2R1C/rtGm8iVZ lRVWu7xtrpg+9KP77O5tLZX+QnE1zQQIxeaZk= 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=tE6t4zYqaVXPST4AhwIQ9GsXTC/ddB8hjT5O44X4X2A=; b=VH5/wVDrQ6DpAMF0M8fVmwSaxCnFDZEGTqoOuI9dXfwgTG+5vxD8ofOrAvUro7l/xB eC5t5iY1bQFuV9j1jbvln7BSrNmRgu5H4+MsMXlfrS48um6Yy4+YGQTr1XxtDhRcREf0 x0C4rTqRK/gNkLnpyPs5+03akGCnVNl24LvTS2EGbmtxAqRLT5oKRMdwA128FU/hDXgL 4IVdSJoE0o1qh4sTLlBwDkhDQ8j5Nt/UwkqxBMFK3CQu5caG3L+Ea3Be4zYQMuSLHOsJ fOPXpPS25cv59QFwmDSpaoMIPqKzHVjzVoP0IjwfGDWCzJCpAy2AG4H6NdA7cACRt8DJ Z13g== X-Gm-Message-State: APjAAAV+X/7V8DlRvZ+qIhyZ1ESB5NuRf+O6UNrKUYdUzIAeH1POjuqe DCa/1kGc94eTs55LStVQq/WkgqK8qebEsI0M9bfkpA== X-Received: by 2002:a0c:f703:: with SMTP id w3mr3120793qvn.6.1579581445521; Mon, 20 Jan 2020 20:37:25 -0800 (PST) MIME-Version: 1.0 References: <20200114071602.47627-1-drinkcat@chromium.org> <20200114071602.47627-5-drinkcat@chromium.org> <20200114151643.GW3897@sirena.org.uk> In-Reply-To: <20200114151643.GW3897@sirena.org.uk> From: Nicolas Boichat Date: Tue, 21 Jan 2020 11:37:14 +0700 Message-ID: Subject: Re: [PATCH v3 4/7] drm/panfrost: Add support for multiple regulators To: Mark Brown Cc: Rob Herring , David Airlie , Daniel Vetter , Mark Rutland , Matthias Brugger , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Liam Girdwood , dri-devel , Devicetree List , lkml , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Hsin-Yi Wang 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, Jan 14, 2020 at 10:16 PM Mark Brown wrote: > > On Tue, Jan 14, 2020 at 03:15:59PM +0800, Nicolas Boichat wrote: > > > - I couldn't find a way to detect the number of regulators in the > > device tree, if we wanted to refuse to probe the device if there > > are too many regulators, which might be required for safety, see > > the thread on v2 [1]. > > You'd need to enumerate all the properties of the device and look > for things matching *-supply. I see ,-) I was hoping for something slightly cleaner, or maybe an existing function in the core. Steven: How strongly do you feel about this? If so I can add that check in the next revision. Also, just a heads-up, I'm out for the next 2 weeks, I'll send v4 after that. > > Reviewed-by: Mark Brown