Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4840226ybl; Wed, 22 Jan 2020 05:42:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwwh866IKQgN7qip4y0r4ZF9tVvOzrQbOsk0u8vHu25SfRnK8LcUQtX1AL8ORBJhpjQzIgr X-Received: by 2002:aca:5144:: with SMTP id f65mr5421111oib.5.1579700542351; Wed, 22 Jan 2020 05:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579700542; cv=none; d=google.com; s=arc-20160816; b=bJmWmPr7DT31kxPPfwN21yje/Kx/Hbp7dGRUdzHhyIH7THGSMzUbG35xfuTV3L98p3 OhJEFUQssxWZQNMH0z2+VOazjw8BWgVgWeKdotdGXP2MV4agtt5Rm+9pfqy8OaweEyz3 7sh/WabkUK62YLboSiJ+gDOOSLlldDU4oqbRtToENNYszndmpm+VflodeqQ6tzvFcaky ZyQ95aascYrBXAT9DMAlVDARJyiZD00X7HIxFNobV1QVoGXJzAr5QQKfBCiBlXOD7+y3 bmf5HXHFUeHIh9s4BTE4Dh7CUXvVshmOKfljZMiwbEuvJ3lS4kdXndjUB5NSsW9BakWP jLbg== 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; bh=1YkAsfGuQBpRvNiX4+eD+PqFpkX+8e5n7AtrRgwu+7U=; b=Q1kEzm3raoj0lChpD8k1PHIRQu5BedHT7VfVZy7w6y0kCy/Nwikd/TtxVudVvgo9r4 AfnagoBY858HYcJAUDHpjuQtOnrjOTT1FjkLrJVX5HsfKfMMto2Jn7hQpGm1Sb4T/prC ++sxBWEijGFtpVANtpChRPT3hZIfg21wzWLYsVdVh2w/rKq+hT4rW5+ZwV+uYOvdCRfG XgPu4/y9nUEupDekygSl0y9MTz4YXp49AjGuEGNxZ2XyVHSt8eYZv5uu55mHPh8g1wKv xJiviiXPalrsoLzHa9I3XoSfy5PmmrBFj+tCBcmKIPC0Hl/DhErHXe28bKfFtdEa47Jv /agg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si1573675otq.41.2020.01.22.05.42.09; Wed, 22 Jan 2020 05:42:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726780AbgAVNkE (ORCPT + 99 others); Wed, 22 Jan 2020 08:40:04 -0500 Received: from foss.arm.com ([217.140.110.172]:56732 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgAVNkE (ORCPT ); Wed, 22 Jan 2020 08:40:04 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 991D3328; Wed, 22 Jan 2020 05:40:03 -0800 (PST) Received: from [10.37.8.106] (unknown [10.37.8.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 740A23F52E; Wed, 22 Jan 2020 05:40:00 -0800 (PST) Subject: Re: [PATCH v3 4/7] drm/panfrost: Add support for multiple regulators To: Nicolas Boichat , Mark Brown Cc: Mark Rutland , Devicetree List , Tomeu Vizoso , David Airlie , lkml , Liam Girdwood , dri-devel , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Alyssa Rosenzweig , Hsin-Yi Wang , Matthias Brugger , linux-arm Mailing List References: <20200114071602.47627-1-drinkcat@chromium.org> <20200114071602.47627-5-drinkcat@chromium.org> <20200114151643.GW3897@sirena.org.uk> From: Steven Price Message-ID: <78d5d977-50d5-f28e-0c4c-fd1df9e868e9@arm.com> Date: Wed, 22 Jan 2020 13:40:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/01/2020 04:37, Nicolas Boichat wrote: > 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. I'm not that strongly bothered about it - my only worry is that there may be hardware out there that might be broken by not activating a regulator. But I don't know how common this multi-regulator design is in practise. Thanks, Steve > Also, just a heads-up, I'm out for the next 2 weeks, I'll send v4 after that. > >> >> Reviewed-by: Mark Brown > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >