Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1253796ybf; Fri, 28 Feb 2020 17:56:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz3Ee8vMUS/Pm7cRx/5PTyBvER+9HDAOtw8DRwC6LlCfYdzyngb86I5B3tiNP6pN3YOOwM/ X-Received: by 2002:a9d:7a81:: with SMTP id l1mr5358543otn.26.1582941369359; Fri, 28 Feb 2020 17:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582941369; cv=none; d=google.com; s=arc-20160816; b=RnmQHMcc6xWZQM6VFf3HSHlNp2KeCoG1XvwgfBOC4fb1M1uFhIEsSgRXnHCXFXNqIw AzPyPopHeoJH2i6sAH69YVoPDS55bT1dzkcdNBLUsy8a7rG+zUclp49czY4/lMcBISD4 2kIHbm/CxQZ1tW6vpPTYi3TmcEJfrwRucM6JeSN8+80JhUMpBzyihM137f0hGGuMY71l J7RgguI8TLwvBjmAamHGESO/WijcPDUMEuOyDY230gbPuvYJKIX17UnTRK2TBospxE2w m3XcsRuBS2JBy+P1UCNtfJnxR5Nxx4hxeoSIFsOI6ey0vxg85wz1N7N4ggculkeVNPqH Wrlw== 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:autocrypt:from:references:cc:to:subject:dkim-signature; bh=i7Lymz3/UG6p46gG34Fh3vPe/udGkZ9zfaHdLppHN94=; b=WqHM98EVFALEoZopyOZCP5zg+ZWmxLKHaC5IITuuOHBnJftea/xi4BX3O95mB5RMve jtGJzdgJ+kyv8rNGFAZ/VUGW7BEYI2GYIElwBwre3ZOWOdxgxLdoZXZR2ZrA+jz0sJ+U 2qjQNCt8Qa303HwTlj0jP2DtgCUR54WJ/89/sxLDH/hqGhhVvNofYl26p6Kt23r912Ke GPx9pmogXbZ5WMFr6LNNWk+Kw1HHsIf/geuEHCR/cd8LtrZsnP7DiJ8rV5f++eGFeClx Fbna+tA8Lc7CpIpje3G2wbW7ddSzI/jXHLye9GRUrBbWwKa+tXpVIqynJwzSmlniZH86 zhEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LufvHVTS; 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 l74si752657oib.233.2020.02.28.17.55.56; Fri, 28 Feb 2020 17:56:09 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LufvHVTS; 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 S1726733AbgB2Bzs (ORCPT + 99 others); Fri, 28 Feb 2020 20:55:48 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46483 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbgB2Bzs (ORCPT ); Fri, 28 Feb 2020 20:55:48 -0500 Received: by mail-pf1-f195.google.com with SMTP id o24so2598109pfp.13; Fri, 28 Feb 2020 17:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=i7Lymz3/UG6p46gG34Fh3vPe/udGkZ9zfaHdLppHN94=; b=LufvHVTSOlh0C3/3G14NtjXvq7M+N6HMy7772o1pa7nHRbTNz2WxZX7biXsHow6Qxs kacX9TlgaGCG84qkqsCMb027hADZ+ByoB0DLff3O0Jgq3L4e/FPvWli2XnNltrEAFgjy u1uumTOLL8yaPHVhyQWI6/bYZZhRl0te5ol0hg3uyvW/MzkETyUC+hJ5dEYgZJLr1lcG wEPToThI6+YimypW3Tp9Dx7EPzoOEwiHhLPsTYJKqNa7OY6jfe+mJ0znjEEda68z98pq jL9GnTIhjVQ7k36rG42haSgoIadRGf8kq5NboseVJjnGhbMyq6cKwCEeaa/XHyR0G124 sM5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=i7Lymz3/UG6p46gG34Fh3vPe/udGkZ9zfaHdLppHN94=; b=jBDjHReuGDd6h7J7XmwjkOmr3SsEN8mMvwIJAhjOSzeH+uToiANqvPMkQ8d2K5C80e mxXhHXH9/RgfAKXpcL2e59zmt5Jae9qnpBZXkjw3T71aWogxpqb3+PgQc9buXUC61Bpa sFaZ+UX6pHvbObvvxoxqZIytHSuMfP6+gz/rT1JUpomXvyyvgSsoqU1x38iPBtc5bOML 11WOAS286vUAmgTLmmoub+Xe/22qpYLKiWo62D+e5O7pYpkN8HO7u16wr7znlA5DJMkg 4rsQvDlJJ93Ldh77EBFF+XQJLnW1Io3ptILxl58IeyEn0Ns9X4fsY0P3U3NN+waOJWvL dZMg== X-Gm-Message-State: APjAAAXWbsrOg+7FFKtXm1z7iaqUGW6J8azM92hOXGZplw2T2/XBwvNP tbbUhOt8Ys3AWRb3k+NUlkc3ralh X-Received: by 2002:a62:1c11:: with SMTP id c17mr7196816pfc.192.1582941346414; Fri, 28 Feb 2020 17:55:46 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id r10sm8993909pgv.25.2020.02.28.17.55.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Feb 2020 17:55:45 -0800 (PST) Subject: Re: [PATCH] hwmon: (pmbus) Add support for 2nd Gen Renesas digital multiphase To: Grant Peltier Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, adam.vaughn.xh@renesas.com, zaitsev@google.com References: <20200228212349.GA1929@raspberrypi> <20200228225848.GA14676@roeck-us.net> <20200228235206.GA3468@raspberrypi> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuLBHiEUQARAQABzTJHdWVudGVyIFJv ZWNrIChMaW51eCBhY2NvdW50KSA8bGludXhAcm9lY2stdXMubmV0PsLBgQQTAQIA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7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: <1a456016-682a-2d53-767b-fe09784883ef@roeck-us.net> Date: Fri, 28 Feb 2020 17:55:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200228235206.GA3468@raspberrypi> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/28/20 3:52 PM, Grant Peltier wrote: > Hi Guenter, > > Thank you for your expedient review. I will need to consult with my > coworkers to determine a more appropriate driver name. In the meantime I > will make the desired changes and I will also create a document for the > driver, which I will submit as a linked but separate patch. > > With regard to the part numbers, this family of parts is currently in > the process of being released and we have not yet published all of the > corresponding datasheets. However, I have been assured that all of the > parts listed are slated to have a datasheet published publicly in the near > future. > That would be great. As for the driver name, I had a look into drivers/hwmon/pmbus/isl68137.c, and I don't immediately see why the new chips would warrant a new driver. The only differences seem to be that VMON is a new command, and of course only the ISL68137 supports AVL. But then there is, for example, ISL68127, which is again quite similar. The only other difference as far as I can see is input voltage scaling, but that doesn't warrant a separate driver (and, of course, I have no means to validate if input voltage scaling is indeed different for all the new chips). Overall I would suggest to extend the isl68137 driver. I would also suggest to not add separate tables for each of the rail configurations but use the three-phase entry as starting point, copy it, and adjust its values as needed. For the multi-phase chips, I question if reporting the input voltage for each phase make sense. Is it really a different voltage ? For IIN and PIN, the question is if the registers are indeed paged, since they are not paged in the older chips. Guenter