Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp822709pxb; Thu, 17 Feb 2022 15:49:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2wGeFLqmeMgmycXP5cfmTdCmtujVmUYm72G8sA93le/I1TeHfSGF8c/HvE1Ar8y2u+6G9 X-Received: by 2002:a17:90b:ecf:b0:1b8:c0f1:3ae7 with SMTP id gz15-20020a17090b0ecf00b001b8c0f13ae7mr5546408pjb.63.1645141793897; Thu, 17 Feb 2022 15:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645141793; cv=none; d=google.com; s=arc-20160816; b=EuHwOfev1id+m+m9iLtz0w1xkPJ0tndMTKplELCQzeZA3xT+77LxUEImcixbklcdbC 4fdjoOvr/HtVdBbAGa6v/XLhokwjamzMmvswQoJAs0Pec3N/DRckYoxPiCZMpNAreOB+ P21Q9zbXmRQ+RogyE0VzuxTPq5iG3DkEgMR6x/JzBrBVUZ9UGJ8e43gg/Oo4gkCu28RV XS2upzuOtcDy0Y9yyaOWS+RJ6l4LlGBEVMEUwmgrvGLgSKHN0IxuiCI627aSTfUF9FDg UwS7cWuQ8E5bRPGzEoj/bPHYb3Rg8wfRPn5E9N57Yhx7oYB+KumepXvtfE5BY+dTA+8T IQlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=/WM3d+d6P+GlLRzeppghOHiUa2w7JBeq4LDjhr4En7U=; b=v7nuRHfibA5BuAV5mvceSOJUYP/x4PvFU+x9xpxPb2UVlXu9l/+PbOx/3aNJ3Zq97G U3jQhV4XD23FlPWeQz1N7WKZgmB12/iouKZeymlS3OAMNr3e4O3PcpGMd2mdXPW1B6ZE LiyUh8ejaT090zRMT95CSlq7nCadXQWk21Nu4MszbhQL56DM4g3lJOJ+Z2eJ5dPbGk1w 6jhuglVHwJXpOGwIT4ESiu3WNcJ0aHiSChge42xezA9R8AjebW3g0qbaeqA65EVYJCGs CYm++VUWHwRjjPS39buWYdZ3tlJEUrQ+TiNP5GN0BMKRRSy8u9SeUggAWHqTGHkpVWuh QaeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kjizsqFv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b28si10375443pgb.584.2022.02.17.15.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:49:53 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kjizsqFv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 058183DDEE; Thu, 17 Feb 2022 15:22:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245160AbiBQTZy (ORCPT + 99 others); Thu, 17 Feb 2022 14:25:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243029AbiBQTZq (ORCPT ); Thu, 17 Feb 2022 14:25:46 -0500 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2150BF94D9; Thu, 17 Feb 2022 11:25:32 -0800 (PST) Received: by mail-qv1-xf2e.google.com with SMTP id h9so10320877qvm.0; Thu, 17 Feb 2022 11:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:references:from:subject:in-reply-to:content-transfer-encoding; bh=/WM3d+d6P+GlLRzeppghOHiUa2w7JBeq4LDjhr4En7U=; b=kjizsqFv/9oBwihdSQeFIAD+OJ9Kw3pJSSfkKDQWqKKLi9nG2I14YulYAN4O2VCtQj Chx8PsBd7EJiUKe0w7cGW1IVGYU9ldkPHukNdF+nRiB7Aur+rDZf8CSMZD6wzUl2B5/Y ok91XKSgaK6PuA2nh1CbRLLEB0TWzP6QZimMBsmel0uLzllYlWBiagYS2ixCALv2BfQu HwjQakopfMvn+gpa4m5hrN38U/DAUtU4FHfL3j+tvrm5KD7oUo5cY/FGzTeM3x4/HCVt rvJjMQ1vRJ8JWTCWuNzE86PPPGn+Tc7G5csHc5wyLbEv1ByoCCjzCMry7g0CAzuVnl+d pEdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=/WM3d+d6P+GlLRzeppghOHiUa2w7JBeq4LDjhr4En7U=; b=L9bfFEJdcPK5L6VeJS9VWTVP8vA8T9ZPESKdSvFwgrCBt6rE7IWNsrTUKgZN+rvbOt +ScU897daRUuEgBnc18ej69IAB8uOrVEi2bbvJkg2981Q54MdpfLDpl3PSZLoxZZSfwi tf+ytiL/WlfL0fcvmXY91ANwR4tC3mlZCRjLNah6EPvCAb65gMUJKwHHroirDfAPc1DU v7y6+9no3DMv5UzVSb2qBzsaJxxFBvHyHeTX9MfI2kWaB3rYMzaYR6RDJ0UqMNUqWBmo ANn4BQtOhT21KA2u5ku95/p3+YZ5f9ywnrOspzYevknlsLyccroSL0o5WRBcTX9JEwLw D/Hw== X-Gm-Message-State: AOAM532R89wQZa2nPByehwwVpQ6PNFrml1w3cJWpCqFCssI7zX+0mcJ0 WhU1zT2dq98r0gn2N3eFN5U= X-Received: by 2002:ad4:58af:0:b0:42c:2c20:c717 with SMTP id ea15-20020ad458af000000b0042c2c20c717mr3393103qvb.31.1645125931270; Thu, 17 Feb 2022 11:25:31 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id z17sm24079120qta.11.2022.02.17.11.25.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Feb 2022 11:25:30 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Thu, 17 Feb 2022 11:25:28 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: sylv , Jean Delvare , Jonathan Corbet Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph , linux-doc@vger.kernel.org References: <6103836f1116a045a25919ae3e5c18dfdc485902.1645108566.git.sylv@sylv.io> <246de83631dd5e165f95904d7f1628502f030e02.camel@sylv.io> <66d4ea0b-0377-c9ae-68eb-7303c32cf87e@roeck-us.net> <7a567823d62b6ed00cbdc2ce239dc4a69e48b411.camel@sylv.io> From: Guenter Roeck Subject: Re: [PATCH v2 2/3] hwmon (xdpe12284): Add support for xdpe11280 In-Reply-To: <7a567823d62b6ed00cbdc2ce239dc4a69e48b411.camel@sylv.io> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/17/22 10:38, sylv wrote: [ ... ] >> >> That makes me wonder if the chip needs to be added to this driver in >> the first >> place, or if it could be added to pmbus.c instead. Any idea ? > > Oh, we did wrote a standalone driver too, and it works fine. > Maybe it's better to upsteam it instead. :) No, I meant if it would make sense to just add something like {"xdpe11280", (kernel_ulong_t)&pmbus_info_one }, to drivers/hwmon/pmbus/pmbus.c. You only really need a standalone driver if it does something special, such as a workaround for some register access (like the xdpe12284 driver), or if support for manufacturer specific registers is desired or needed. That would, for example, be useful if the xdpe11280 supports per-phase sensors. Thanks, Guenter