Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp532690iog; Fri, 24 Jun 2022 08:43:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sqXHLhNAE8FEnRl/uJx5GIaxc46Pt7MrfzG6IqPw6wytWGFUxQiipqSBgI7sAVAR0r7mvP X-Received: by 2002:a05:6402:4394:b0:435:db76:1812 with SMTP id o20-20020a056402439400b00435db761812mr9658768edc.103.1656085439634; Fri, 24 Jun 2022 08:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656085439; cv=none; d=google.com; s=arc-20160816; b=mXVeOCpQkO7JsmMlb+QHyCpEBS3yh7IwS88cfKAqDA91rnDMddtZFAFP+L0XVvQB8e 38YjtcFUlkkq0ZcunVIcDFuvufEqScrgEqMC2Eipf96IoNyn6WlZBnhBt/l8jx+ASDW6 gHN+50O8EOaTRwV1RMGlZmGncCYJfUKr/H6CmCwuZfB8B9hJbH47ig1DwzdlYJi57S2j Rp9tsgDyfyC4Jo4dl4DAfKmmV8swo90Q0/1gTh2jKmhR0z/+rR0xAvgGDByEirO5KMvU b7MVani4ZRJ9rM7dikgHbvCV70rSolh6Ap37IVBOZXXGYTwnfcg65P0VVoSNVe+8Lenf gEww== 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=/NhAxDf8GppUeQ5WhtNztM3l2gmysTUwnuVxRcm/SIg=; b=tF44nSQ9xEJN7fJ8ccZNPkKGeBZO0d8NWmcAoLF4fA6lGW0M8kAPD4y4lHxCbqcWUq vK8f+RBNdtEbytOrXCl4Sbu0vvbk9i+keeK2Ew/gPyDJXqru56SDWAzf782eRheNlnQ8 5KOF2lAlf8pfTCMiOyEvbXRXYqmk5ywYOhhEpDPeHYyjRJdUBEOn0ADa18APjJ619nNa 00vt/SWgKKHGRL3kNdXuCmRVSLGz+LVLuhOTf4/9m8d6bWFfZ3X6WPRXXgonD9Ow2AlX 6gIVfA9QucVukPzNrTH+U0UTsnYuJeDTI7NgI5ksjryX0EL8msaR0DnZyTIbBsb1AFUF E/sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R7Cbtu6i; 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 hq21-20020a1709073f1500b006fcad948d58si3098276ejc.822.2022.06.24.08.43.34; Fri, 24 Jun 2022 08:43:59 -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=R7Cbtu6i; 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 S232570AbiFXP3f (ORCPT + 99 others); Fri, 24 Jun 2022 11:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232517AbiFXP3d (ORCPT ); Fri, 24 Jun 2022 11:29:33 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AED529801; Fri, 24 Jun 2022 08:29:32 -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 6632866017FA; Fri, 24 Jun 2022 16:29:29 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656084570; bh=QLIJRVIptCHxe8YA2obqLBI5SkwO2iKvXB+7BviNrXI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R7Cbtu6iwOlYUJNrtTEjjeuyVABZb58IsLv6iv4aHnEjAV7+4X9OKEFgcpkT6JESk i/2VCZsY7/cbMsRcgf4dOTxx/3PSzWYVUP8jMMMQ4yyf7RCvrr+nWbUjSg7OhBBD4M Nc6GoM0YFzIqCElY4ata+my5gludPw2FJB1ZUA/coPcI/L9qfb9fjHRA22aqsTfUNA s4VQqHzTeL4lhivXY7A2kZQiaXKiXwNHDI19/JvInN+pjKDLjCqMbGOEJ2OSc5c92q uCZayN2p8ztKQ0BpwAbAbzBDwdw8Ze4K4XnBxRpsyOVsWmHb1H+SsfGgFBbv8nK9g4 lEY+rGj9GpJ4A== Date: Fri, 24 Jun 2022 11:29:26 -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 3/5] pinctrl: mediatek: add rsel setting on mt8192 Message-ID: <20220624152926.76hvymguryhfv4sq@notapiano> References: <20220624133700.15487-1-guodong.liu@mediatek.com> <20220624133700.15487-4-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-4-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, thanks for the patch. Please see comments below. On Fri, Jun 24, 2022 at 09:36:58PM +0800, Guodong Liu wrote: > 1. I2C pins's resistance value can be controlled by rsel register. > This patch provides rsel (resistance selection) setting on mt8192. > 2. Also add the missing pull type array for mt8192 to document the > pull type of each pin and prevent invalid pull type settings. > > Signed-off-by: Guodong Liu > --- > drivers/pinctrl/mediatek/pinctrl-mt8192.c | 136 ++++++++++++++++++++++ > 1 file changed, 136 insertions(+) > > diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8192.c b/drivers/pinctrl/mediatek/pinctrl-mt8192.c > index efabeb422aea..ffb0b04f0e3c 100644 > --- a/drivers/pinctrl/mediatek/pinctrl-mt8192.c > +++ b/drivers/pinctrl/mediatek/pinctrl-mt8192.c > + MTK_PULL_PU_PD_TYPE,/*100* MTK_PULL_PU_PD_TYPE,/*101*/ > + MTK_PULL_PU_PD_TYPE,/*102* MTK_PULL_PU_PD_TYPE,/*103*/ > + MTK_PULL_PU_PD_TYPE,/*104* MTK_PULL_PU_PD_TYPE,/*105*/ > + MTK_PULL_PU_PD_TYPE,/*106* MTK_PULL_PU_PD_TYPE,/*107*/ > + MTK_PULL_PU_PD_TYPE,/*108* MTK_PULL_PU_PD_TYPE,/*109*/ > + MTK_PULL_PU_PD_TYPE,/*110* MTK_PULL_PU_PD_TYPE,/*111*/ > + MTK_PULL_PU_PD_TYPE,/*112* MTK_PULL_PU_PD_TYPE,/*113*/ > + MTK_PULL_PU_PD_TYPE,/*114* MTK_PULL_PU_PD_TYPE,/*115*/ > + MTK_PULL_PU_PD_TYPE,/*116* MTK_PULL_PU_PD_TYPE,/*117*/ The comments on pins 100 - 116 are missing the closing '/', effectively commenting out pins 101 - 117 and leading to errors. Please fix this. Other than that, Reviewed-by: N?colas F. R. A. Prado Tested-by: N?colas F. R. A. Prado Thanks, N?colas