Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2725295ybk; Tue, 12 May 2020 06:42:55 -0700 (PDT) X-Google-Smtp-Source: APiQypKtoY/xVigzcpD+2F93YUWFUWMGr6pl4ikm/HjW/nH+Jb8BdLJ9kII7sakIbLyF81EOftH7 X-Received: by 2002:a05:6402:1d23:: with SMTP id dh3mr17985675edb.349.1589290974883; Tue, 12 May 2020 06:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589290974; cv=none; d=google.com; s=arc-20160816; b=o97jFMdY9L3EmDt4kh0jAOWNpPxpNQrcbNfZlHOAnsdbJ+/p+XlK83zm5EBVWlzPhS +56GN2d/IbtiJdrX2+CrBiFuErsArrlYC2iTETUVmoPBhbClx4WBrMyY4v0jzPAN711v Sd7xl6Mk7OQLkPbko1C/oqD2Q/CnKjdsQudQdJHZs7hq8Ybx0o93vRanvNLC5JYUM18l CmacmqR/uvxP848gM/gdFQAgKEEKOY8MyEQ3FgeXY/aG8S4PJYmfn+soKq2y5UcjSzJn sKTlx0tZcZYjZRaLFyD4OoCxO3HfEUkJLhOg/OA+yhQhFEzjmX2jOtNxbvIst0jG2vRL kdtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kRLPlqHCFfcyIiS8fFcC/a2yJidDOExb4vWXW8zD9gQ=; b=tfzG3E2AKecCd1xaCc26s3zqHUv7a/+ms5FbeT1RdYQYfqP62c2KdVoxufx1/ghF1D OMtNX75rDER0PqUX5fY+s3xy9BcICQmhD8yxKGwv0ypwAZlAIzm16XsdFrEOFjtAOP5p Y83InPZ6Llio/1ssbt7mbrMbiRSXwg35pRX6Ui1I1nooryrq1gd+NjQJ19akjR+LGiQ2 le0mPSE1H53CdBKE5sFlJ2f5+eZKZ3WHLDp6TF21ZJgBUk0DCirH+ZAuns93zB8KsCP4 YSN3DstZogz5gJ7O0BfQOMJg5fRzMZEFeaNoXXxtUCrm+RZYlI0KpECQVZPJ8ZL34xuM QRNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx7si6584453ejb.526.2020.05.12.06.42.28; Tue, 12 May 2020 06:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730039AbgELNiz (ORCPT + 99 others); Tue, 12 May 2020 09:38:55 -0400 Received: from sauhun.de ([88.99.104.3]:57380 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727859AbgELNiz (ORCPT ); Tue, 12 May 2020 09:38:55 -0400 Received: from localhost (p54B332DE.dip0.t-ipconnect.de [84.179.50.222]) by pokefinder.org (Postfix) with ESMTPSA id 1A6642C1F86; Tue, 12 May 2020 15:38:53 +0200 (CEST) Date: Tue, 12 May 2020 15:38:52 +0200 From: Wolfram Sang To: qii.wang@mediatek.com Cc: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, leilk.liu@mediatek.com Subject: Re: [PATCH] i2c: mediatek: Add i2c ac-timing adjust support Message-ID: <20200512133852.GE13516@ninjato> References: <1585223676-30809-1-git-send-email-qii.wang@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="10jrOL3x2xqLmOsH" Content-Disposition: inline In-Reply-To: <1585223676-30809-1-git-send-email-qii.wang@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --10jrOL3x2xqLmOsH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Qii Wang, On Thu, Mar 26, 2020 at 07:54:36PM +0800, qii.wang@mediatek.com wrote: > From: Qii Wang >=20 > This patch adds a algorithm to calculate some ac-timing parameters > which can fully meet I2C Spec. >=20 > Signed-off-by: Qii Wang Could you rebase this on top of i2c/for-next or v5.7-rcX? Because of commit 90224e6468e1 ("i2c: drivers: Use generic definitions for bus frequencies") which was added two days before your patch was sent out. Otherwise mostly minor nits. > +static int mtk_i2c_max_step_cnt(unsigned int target_speed) > +{ > + if (target_speed > MAX_FS_MODE_SPEED) > + return MAX_HS_STEP_CNT_DIV; > + else > + return MAX_STEP_CNT_DIV; > +} Maybe ternary operator here? Your choice. And my code checkers complained: CPPCHECK drivers/i2c/busses/i2c-mt65xx.c:591:11: warning: Redundant assignment of 's= da_max' to itself. [selfAssignment] sda_max =3D sda_max; ^ drivers/i2c/busses/i2c-mt65xx.c:597:11: warning: Redundant assignment of 's= da_min' to itself. [selfAssignment] sda_min =3D sda_min; Last question: You seem to be the one doing major updates to this driver. Thanks for that! Are you maybe interested in becoming the maintainer for this driver? I think there won't be much patches to review and reports to handle but it will speed up processing for me. All the best, Wolfram --10jrOL3x2xqLmOsH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl66pugACgkQFA3kzBSg Kba3FQ//feg8sBvAPAGQ1c3TSFF7+uw13pr2B3K6UysUq9MRXolh+3dXFzkWXahk YXtv9nHURBVjj+2SnDD2ZwnD9x1UGyxPug6Sp62VJMS80rjYvsL3/8s58srZeHsI MoO68IX50ZMvaJip6LPoNk8Sw9Pl4RhK1Q6hejBsihdf27cWXt/W4jNVBlENaw5u mIhZR2faLpWYIVwI/7+tFVJWqp5fn8zh28/7YNi3B0+NJexDi+z+lRSuD17s4VV7 63S6JpAzZm9VOW8myXtcyMV+nVAyBhgxQ3O/WybHAgaceOcjZJuTYd1rYTAznZGd UAdcdrfAnQnnVnLYtFsqtCNWtqrxwvV2fktTT6O01d1YNwSvKGYD7csCo8rB4kQZ TctS7orhQi8YbhRTZAZoGmVOChgsQ/nwy3ik8BaC/vcziXkQ+OpsXsNYz23nNmvh YgugC/ueHcklhIxhinDJx4R1NSVrpuqRSFHceX/7ez64lRtAGlm7A8zdcOBy3I3j oAWgUgd0b6OLnW0j0E8rJAGQJ9ub58VLFAfaZH0GVpxtXkYQ6npgVxzjwwwj+ONX rC+pocqPujlCKBidHpJh+obmCUMlalkm3W4EMlEp1Mz/yAZ6JKDnC60YzfJtUStz GiCto6g4vEd8j+KeH0eVABf5LQoE7ia1SC3f4eg0pfU1juidIww= =LYkG -----END PGP SIGNATURE----- --10jrOL3x2xqLmOsH--