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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 B6773C433ED for ; Tue, 20 Apr 2021 16:40:57 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C24D613C9 for ; Tue, 20 Apr 2021 16:40:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C24D613C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FPqF33GGXz2yxB for ; Wed, 21 Apr 2021 02:40:55 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.a=rsa-sha256 header.s=thorn header.b=Sg9s9zHl; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=bewilderbeest.net (client-ip=71.19.156.171; helo=thorn.bewilderbeest.net; envelope-from=zev@bewilderbeest.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.a=rsa-sha256 header.s=thorn header.b=Sg9s9zHl; dkim-atps=neutral Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FPqDZ2bZGz2xb7 for ; Wed, 21 Apr 2021 02:40:29 +1000 (AEST) Received: from hatter.bewilderbeest.net (unknown [IPv6:2600:6c44:7f:ba20::7c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 3AEA51D2; Tue, 20 Apr 2021 09:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1618936826; bh=Tch6zNZ8+bLnr2ibPN+rNcWbhq3cKgA9oHN3Hx5qr1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sg9s9zHlsm+Q8pGm8h9JKhSGH2xykFRjB3oQUlEX/OlaCK7Nnpwcq702pnveukIlQ S3Q9AmEMx7oPGW5WpJeK7VUpSK2+Eu+OCxM81w0HMyC3ZP0tTvrj1gUV/4aq5zt4e3 gXzKPI0d1SnBnSeErn/JRKZ9kywAfJD5sW+6tDTw= Date: Tue, 20 Apr 2021 11:40:24 -0500 From: Zev Weiss To: Mark Brown Subject: Re: Enabling pmbus power control Message-ID: References: <20210330180200.GK4976@sirena.org.uk> <20210330193810.GA235990@roeck-us.net> <20210420033648.GA227111@roeck-us.net> <9639fa33-01ca-9802-e745-5e3edb81e305@roeck-us.net> <20210420161317.GE6073@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210420161317.GE6073@sirena.org.uk> X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-hwmon@vger.kernel.org, Jean Delvare , Andrew Jeffery , openbmc@lists.ozlabs.org, Liam Girdwood , linux-kernel@vger.kernel.org, Guenter Roeck Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Tue, Apr 20, 2021 at 11:13:18AM CDT, Mark Brown wrote: >On Tue, Apr 20, 2021 at 10:19:04AM -0500, Zev Weiss wrote: > >> Mark, do you have any further input on what a viable approach might look >> like? > >I already suggested writing a driver or drivers that represent the >hardware you have, that advice remains. It's hard to follow what you >were trying to say with your long mail earlier today but it seems like That email was an attempt to explain why writing a driver for the specific hardware devices we're powering seems like a poor fit to me. To summarize: - There's a wide variety of different devices potentially behind an LM25066. - A hypothetical driver for any one of them would be completely non-specific to that device and functionally identical to a driver for any other, because the only hardware it would actually be touching is the LM25066, and in ways that are again completely non-specific to anything but the LM25066 itself. >you basically don't want to use any abstraction or framework, but that's >not really suitable for upstream integration I'm not at all opposed to using a abstractions or frameworks (I'd very much like to do so in fact). The problem is that I've thus far been unable to determine exactly what the appropriate one is. >other hardware that looks similar to the end user should look similar >in the kernel too. Agreed -- hence my disinclination to write drivers artificially specific to whatever is behind the LM25066. What it looks like to the end user, and I'd hope evetually the kernel as well, is a simple power switch and nothing more. Zev