Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp442181pxf; Wed, 7 Apr 2021 03:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFdZBNhIO7dfk23GoGKO7/yyXepdMV+AMyGZ4QdTckbWaMLibOcLi1uOlghmZJ2ihJL0aL X-Received: by 2002:a17:907:1692:: with SMTP id hc18mr2850498ejc.265.1617791375696; Wed, 07 Apr 2021 03:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617791375; cv=none; d=google.com; s=arc-20160816; b=v7RA8z6dqwdrCgKr3jo/stYmcFBmka7RBWOL/ddEY7XccFaJ0OC3DyODinAaOyJrdS +FNammObTz+3DHrzxXy0wyxBmiibP91dl/8eJ+9xAtz43bIHW49vSUdZPSvsDFAozpeW rDHnn06g8k34p0aO0v7j0VGagdE8sEnwFvzr0UT/6ac2dYAbefvcZlBWqx14n9NShJyN VBD7ja0BarF/GRC2ulecq2DjF+QZlnFaWDkFVmSvBpimoyf8dZQpynL2/bYuNDEXnKpV bK3ZO64zytb7S8tK4ixgtwXG+ofko9mMiQz5hthZyPdy41QvCZN+M3duXHL2+jZfTuPQ 0oQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=e9XCrHRbPqjp2SIACD271qp9C9m0DUNFOwKAi0QKpXs=; b=c2fjBUx6WnLkQ2GJGlqS81v8QmLuTs6lqLGSaNKee21TKp0Y9by5P0x6i8OkqzEnyY TvtyBmSRrq82V8ESon8Lbra64zyaw6/3cCkTysvEXtzKvesxVoLPQXCjxhKzIf47mckh TUGPKx8+/6qviVy9YG7YQp3ATtJ8tAU9S/vDUqTZbSjqwutO0swbyzz3C5Bssz12ORYJ i7D2sCp9z4svPtrdwl2xIsr9uQMW+snKh/OcxbZS/fNLUGX2pS8dn8XJ6DNl7+X4nDUd vOLL5Alnhw+5GhMnKiQWv+N5hO9xK1upSw/z1x3klUc0H1AGW03YIVgvJDqUnskfLVC2 uAbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YBZah0We; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id lx16si18616404ejb.344.2021.04.07.03.29.12; Wed, 07 Apr 2021 03:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YBZah0We; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S239782AbhDFRaC (ORCPT + 99 others); Tue, 6 Apr 2021 13:30:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232752AbhDFRaB (ORCPT ); Tue, 6 Apr 2021 13:30:01 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5738AC06174A; Tue, 6 Apr 2021 10:29:52 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id i81so15916937oif.6; Tue, 06 Apr 2021 10:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e9XCrHRbPqjp2SIACD271qp9C9m0DUNFOwKAi0QKpXs=; b=YBZah0WeABNCYq0ebm/I87ZFpbg0mlsv9pTMX6nhWLnrxZgASf89DWi7GzZlKD2svc BTTN01jmIvz6EI6EZygJ/3n79A8xrD3wBk02eJduiV6a5gJT8VLsoZZoWDoWQDWZxJCi z69rT/QA30kbdV4PchR3sj0XyKsqYjdneHxAaRj4Rv8WYywFUli5wHvegPOsbDs4KUGi MrawLcKd21iWytX7uPzpgdt9Sr9oOCszLnq71v5x0uBhLhDpyFjfoy6NTAoxFeL3RoHx wG1IQzGYERVPErQhJee16HLqo3lNgHXO8/7PTfysJe+EZ1NTLxpDW/GskLhCfK3Gg4tO 1f8w== 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=e9XCrHRbPqjp2SIACD271qp9C9m0DUNFOwKAi0QKpXs=; b=MmWNG9LiMzOb7rQu1P9Bnh5DNowTYpzBLv56be4CQDdAQaDUbi1nPCNqYxJlYHuyAc xHjq0iwz1c3pHL7X/jdyMq69oq1CGAfgKNWtabyi8mwul86xqP792mBkxT/HjDw99Sy2 14k58GxvZ/vlynULbeaK+dIfDyNfnWbIyn2fWSKNat83sblYiF2dAb+EhIY3tw5+CUdU 7Ex5psL1ScxViEZMFBRmnvA3+o6DCEwy0ra6nt8N2xAxj6Q1MDj3C+cgAMYLyhSJmOu/ 6iSXkDhiOQK91jRZNp1IMxhBlVubCtA2NIU0rwyZytPmZKhgdkGbIr++hhLSJiHElSOm WRYA== X-Gm-Message-State: AOAM530QqpkIe53nkhjYdNXKONQxF94ScPWtsg7RMAwI/agYucXqrMDY PMTxN/7PdI3TelvgKWz/mwqXFw1EnSdM16CEvmQ= X-Received: by 2002:aca:fc11:: with SMTP id a17mr4067194oii.68.1617730191812; Tue, 06 Apr 2021 10:29:51 -0700 (PDT) MIME-Version: 1.0 References: <20210401212148.47033-1-jim2101024@gmail.com> <20210401212148.47033-4-jim2101024@gmail.com> <20210406163439.GL6443@sirena.org.uk> <20210406172320.GO6443@sirena.org.uk> In-Reply-To: <20210406172320.GO6443@sirena.org.uk> From: Jim Quinlan Date: Tue, 6 Apr 2021 13:29:40 -0400 Message-ID: Subject: Re: [PATCH v4 3/6] PCI: brcmstb: Add control of slot0 device voltage regulators To: Mark Brown Cc: linux-pci , Nicolas Saenz Julienne , Rob Herring , bcm-kernel-feedback-list , Jim Quinlan , Lorenzo Pieralisi , Bjorn Helgaas , Florian Fainelli , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 6, 2021 at 1:23 PM Mark Brown wrote: > > On Tue, Apr 06, 2021 at 12:59:16PM -0400, Jim Quinlan wrote: > > On Tue, Apr 6, 2021 at 12:34 PM Mark Brown wrote: > > > On Thu, Apr 01, 2021 at 05:21:43PM -0400, Jim Quinlan wrote: > > > > This is broken, the driver knows which supplies are expected, the device > > > can't function without these supplies so the driver should just > > > unconditionally request them like any other supply. > > > Some boards require the regulators, some do not. So the driver is > > No, some boards have the supplies described in firmware and some do not. True. > > > only sure what the names may be if they are present. If I put these > > names in my struct regulator_bulk_data array and do a > > devm_regulator_bulk_get(), I will get the following for the boards > > that do not need the regulators (e.g. the RPi SOC): > > > > [ 6.823820] brcm-pcie xxx.pcie: supply vpcie12v-supply not found, > > using dummy regulator > > [ 6.832265] brcm-pcie xxx.pcie: supply vpcie3v3-supply not found, > > using dummy regulator > > Sure, those are just warnings. > > > IIRC you consider this a debug feature? Be that as it may, these > > lines will confuse our customers and I'd like that they not be printed > > if possible. > > You can stop the warnings by updating your firmware to more completely > describe the system - ideally all the supplies in the system would be > described for future proofing. Or if this is a custom software stack > just delete whatever error checking and warnings you like. The warnings > are there in case we've not got something mapped properly (eg, if there > were a typo in a property name) and things stop working, it's not great > to just ignore errors. A lot of this is really not under our control. > > > So I ask you to allow the code as is. If you still insist, I will > > change and resubmit. > > Remove it, conditional code like this is just as bad in this driver as > it is in every other one. I will remove this and resubmit. Thanks, Jim Quinlan Broadcom STB