From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3063C433C1 for ; Tue, 30 Mar 2021 17:43:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 818DC61987 for ; Tue, 30 Mar 2021 17:43:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbhC3Rmv (ORCPT ); Tue, 30 Mar 2021 13:42:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:60994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbhC3Rmc (ORCPT ); Tue, 30 Mar 2021 13:42:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0FFD761953; Tue, 30 Mar 2021 17:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617126152; bh=GRGXjpsdSI2flci4hR1I1/0EJbwuHARdHaht1gFjlS8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W3fIdCIMBGILsyzm5FdqL/ZghdvRkkk5pSiRVs1VtB9VQsfy1x+m9Ad64CwajmKFp vsWnFacLYPuVdPRIDPKlypQGM7JtlRqUyqERSuk3rOBsA0Ayc82cIzaPLuuMXb9RER xdUgsHd9+ej1i/sk/MOq7fIpiuyfEfE6giwMX+IdSuNvR5zaHfZ+IbrWWJ2sYK6fhx FJm17Pm6hwfVlHbTYhqD+XwGmDaZ1dbLjW4yPvFNUv7eWW/NOMJnN9tufHHlYjP47Y xjmtTdIq5y3S8fp+WB6r+99IN4bNVDdPDOJIOn9FDKynkb1SAhQ3XyrNv5ejaZj4SZ f/grT1xhT+7XA== Date: Tue, 30 Mar 2021 18:42:21 +0100 From: Mark Brown To: Zev Weiss Cc: Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, Andrew Jeffery , Liam Girdwood , linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: Enabling pmbus power control Message-ID: <20210330174221.GJ4976@sirena.org.uk> References: <5105ada1-643a-8e58-a52d-d3c8dbef86b9@roeck-us.net> <20210330112254.GB4976@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Tu8ztk+XgTAiG9Id" Content-Disposition: inline In-Reply-To: X-Cookie: Memory fault - where am I? User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org --Tu8ztk+XgTAiG9Id Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 30, 2021 at 12:19:29PM -0500, Zev Weiss wrote: > On Tue, Mar 30, 2021 at 06:22:54AM CDT, Mark Brown wrote: > > On Tue, Mar 30, 2021 at 03:34:16AM -0700, Guenter Roeck wrote: > > > (and I don't know if the userspace consumer code is appropriate - you > > > might want to check with the regulator maintainer on that). > > It's not, you should never see this in a production system. > Sorry, can you clarify what exactly "this" refers to here? The userspace consumer. > > I can't really tell what the issue is here without more context, the > > global name list should not be relevant for much in a system that's well > > configured so it sounds like it's user error. > My initial attempt I guess followed the existing ltc2978 code a little too > closely and I ended up with all my lm25066 regulators registered under the > same (static) name, so when I went to attach the reg-userspace-consumer > instances to them by way of that name I got this: I don't know what you're trying to do or why, nor how you're going about achieving it so I can't really comment. Like I say anything that's instantiating a userspace consumer in upstream code is broken, it's there for test during development of regulator drivers. Whatever device is supplied by the regulator should have a driver which should control the regulator at runtime if that is needed. --Tu8ztk+XgTAiG9Id Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBjYvwACgkQJNaLcl1U h9Bxpwf/SZ+FXLhS4V+BYH5iTDeRJN66xjbkUzAPF4SaBey01AL1oKHSeeJ+/Fiq 7ekXSJcFBI1+oVjmufd8r1jEKRoOy8npWz1WVNqcjqgf+QVz1VNyfa3gB8iPnShq nHIuZAXxoHxTJHxTwq0UTu97K9FALBCavcO5mO0oUWGi8HTpQsHiCvAIYDC3yK17 /pSDqoc+zQvl4KnFAOQICd72uLhxCx8lI2NeNmjYIfohYtra1lkZ4zAY1/7RQPq7 TtJz4GM82pxFFf2XsV6Hpwyt/nB7PNEwpmKUs72hxPkO/r99mKWjzVBMqPL0a37J BDpthZPQmvwPjytwDdt9f1F7oP/0mA== =xHZf -----END PGP SIGNATURE----- --Tu8ztk+XgTAiG9Id--