Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp550815iog; Fri, 24 Jun 2022 09:05:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sxvSZS0lDJSUQcqJ9zCKMe6GvRsvFy0DxZv/6U0cjRNR7of5MYcjVfcYyOixjNhtscz8w5 X-Received: by 2002:a05:6402:1941:b0:435:5972:7811 with SMTP id f1-20020a056402194100b0043559727811mr18277148edz.234.1656086738871; Fri, 24 Jun 2022 09:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656086738; cv=none; d=google.com; s=arc-20160816; b=ya/1RqETWUPvaTfnbH/PXvu7mQtNaG+U2ZSuH4nQSFTWbUu91yRP8exTQbaPY/ZSPs cad/ntS3EvjEnW9zWWzGD4S1aRZ2V/aL2ywtuRDbmNzkhq37Xr/nApRkF0W59nAwVwVt lL2tAY0VM8TxwGZqG0g9FDNh8s0Osyaor9BXqvDARnik8LmCzFOrRA8mYsl9j/dMuEmF ph6rLeUjhtLI95AA7inQp9O2phuWm/pilN9W/nlsTisnzntNzELTlVmQcwW2BKYdsNgt tkQNiImnPkglhgGspYj9C2E9QiYKmucq4ECC7ixJGYMyqcIIpzaD/q2pGZQycv70waY8 9zzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tNfIZwMKHs/XoiiOx0slf44POK2mxBjIKD/crO5RjL8=; b=a3ixuPVlYd/cJYSTRiGmsLWi+Fe1pEFH2gdEQIK9YB/PmOZRGW01e4QOHAgsCSrLbB 5aTutdPoy37/jjvSgJLkskpNHZ9UH2wSg9JY+pXajteoATHT3NMBJ7TMbRCR+UOudx43 Nn0/Auh9kOVP2pdIvCPu/FVyljcou3RFuNvdxpSx5YBOIurvBb0OU0Dy9fGva+nHIkFK GpiHtwfu4wi8Tv0vIOt7ok//JttD89ZifT6BgN111uyhov/BFScPenXGz9bsFXFSB8qn bXeQsi2DFz0LPxZBOXK8qZzEZKqUom678GYJy48FrClKjaeAQxuXE4TqzTjjWHlU5nhe EA6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=RRcB9OTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a17090617d600b006e8925846cesi3302132eje.471.2022.06.24.09.05.08; Fri, 24 Jun 2022 09:05:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=RRcB9OTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbiFXPwe (ORCPT + 99 others); Fri, 24 Jun 2022 11:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbiFXPwd (ORCPT ); Fri, 24 Jun 2022 11:52:33 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F4C4E3B4; Fri, 24 Jun 2022 08:52:31 -0700 (PDT) Received: from notapiano (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7EECA66017FA; Fri, 24 Jun 2022 16:52:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656085949; bh=DgfoNJhSsryqfplIgapwVlrJl8IUXtflN7RQAeVipj8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RRcB9OTSGwTrzCzogGYid2DA7CbLSkQf0DinQj+He0ch53qch29VhNLuAvYoinfW9 OTtnD33hlk+VKIZG7Wtk2f0sJttrOgCLYU5kqkATYdDs9pnpp/nwX7+AZ+hX2fUAWD 1ssL0Hn2Fe0kVs7GLy8CNzY1I+ootvjrMHWEcGjgYar4i2HiZx4djX7SHdLkPNlTCo 3Yk2Iy5CdOJ9B3fS4IldNxuagX2/14WxtdqrDLXv8gwMW/UGkQ1z3G9Il3jItwdWMZ 3nYMAjFFh7XSHsXI1fVveaCuyrhuhxZi0Kr1e0nUbKOXLN0afb4gandBH8J9pERLXm hp/wdkGLGXC8w== Date: Fri, 24 Jun 2022 11:52:24 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Guodong Liu Cc: Linus Walleij , Rob Herring , Matthias Brugger , Sean Wang , Sean Wang , Zhiyong Tao , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v2 1/5] pinctrl: mediatek: add generic driving setup property on mt8192 Message-ID: <20220624155224.lizeca5rnruhihdn@notapiano> References: <20220624133700.15487-1-guodong.liu@mediatek.com> <20220624133700.15487-2-guodong.liu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220624133700.15487-2-guodong.liu@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Guodong, please see comments below. On Fri, Jun 24, 2022 at 09:36:56PM +0800, Guodong Liu wrote: > 1. The dt-binding expects that drive-strength arguments be passed > in mA, but the driver was expecting raw values. And that this > commit changes the driver so that it is aligned with the binding. > 2. This commit provides generic driving setup, which support > 2/4/6/8/10/12/14/16mA driving, original driver just set raw data > setup setting when use drive-strength property. This commit message is a bit confusing, I suggest using the following commit message instead: The dt-binding expects the drive-strength arguments to be passed in mA, but the driver was using callbacks that expect raw values instead. Change the callbacks for the ones that operate on mA values, so that the driver is in accordance to the dt-binding. The drive-strength property requiring values in mA is the standard and other MediaTek SoCs of the same generation already do the same, so this change avoids mt8192 having a non-standard property. There are no current upstream users of this driver, so this change doesn't cause any regression. > > Signed-off-by: Guodong Liu Reviewed-by: N?colas F. R. A. Prado Tested-by: N?colas F. R. A. Prado Thanks, N?colas