Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp962137ybx; Wed, 6 Nov 2019 11:02:41 -0800 (PST) X-Google-Smtp-Source: APXvYqz3X2T7ACyQCV+mA0bnhcisRftP5jNeF2ABJsEvMIWOKaBtvauqy+Jovr1TPYyEn1gqMC6I X-Received: by 2002:aa7:dd13:: with SMTP id i19mr4630582edv.240.1573066961107; Wed, 06 Nov 2019 11:02:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573066961; cv=none; d=google.com; s=arc-20160816; b=XVphBRmTiuRzr3StwRUXrtULVACsbwPVpwseg1qiXLdSFauOkahBk8b3VHi2Bq56J4 nWnSPVa9XGAzmMlzykxeOynW/P3C/NByyyV8LfFj8qyHqp4IZ2LN6FAevMvnN9++73u7 pEftUV7ipzL6atPfpMVb2uV0pzTDeo/8H+13/8tGkYW2KvGtmccVFy9X3ImYv9VsvM/M T4JxlG4ngTfpRK/aFhTnXPnH4KidJJ7zR9Om4XQmfzJtB31xKYzviPN+ZNtMBjfGJQ8A SebkIsuWnEvo2F6EAG8PNRu8gL3T4U/lrxq1fxfwED0AkBxRHgWmi3hnfs3JbWTwPxqt FJvA== 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=/2WE1xfc676Dk8t53BF0JDiopBvcMOVivE9g1K9O6Sc=; b=dUKrRgeA6881hRs1OotA6OihwEPJYXYFJ6GCX0XXkD26vUn3iDGoz6pFm2pmKgzi3w SjgmrOiUBOhPN5pMdLB1oZDGRVeifb184/Ntwrms/WyLK+GlBWiuW9thPSSq1DPA1Bzo 3fariKUzYlwJ0WPHL5pfEscnlujDPKcN9XRW7Shgdj9tfnkDwJql7MM3Nf6Gu0EIneTV SCqQBUDeVaaVUGdkz4QYLSGyvnNDoLIjKLprQ8r+XBoPv6Zj6Yx8sFmf8MwHw3ujhs2u JJtObXO4i4nOyeBrP9t6mGdPyV9ITsVbIxqcZ2NZJOAttug2fosxSK9PXp8JKtEC4UeQ iK3g== ARC-Authentication-Results: i=1; mx.google.com; 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 w25si13252061edl.418.2019.11.06.11.02.16; Wed, 06 Nov 2019 11:02:41 -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; 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 S1731608AbfKFTBY (ORCPT + 99 others); Wed, 6 Nov 2019 14:01:24 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:39600 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfKFTBY (ORCPT ); Wed, 6 Nov 2019 14:01:24 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 57FD11C0998; Wed, 6 Nov 2019 20:01:22 +0100 (CET) Date: Wed, 6 Nov 2019 20:01:21 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Thierry Reding , Linus Walleij , Sasha Levin Subject: Re: [PATCH 4.19 078/149] gpio: max77620: Use correct unit for debounce times Message-ID: <20191106190121.GA2306@amd> References: <20191104212126.090054740@linuxfoundation.org> <20191104212142.090938480@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20191104212142.090938480@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The gpiod_set_debounce() function takes the debounce time in > microseconds. Adjust the switch/case values in the MAX77620 GPIO to use > the correct unit. > +++ b/drivers/gpio/gpio-max77620.c > @@ -163,13 +163,13 @@ static int max77620_gpio_set_debounce(struct max776= 20_gpio *mgpio, > case 0: > val =3D MAX77620_CNFG_GPIO_DBNC_None; > break; > - case 1 ... 8: > + case 1000 ... 8000: > val =3D MAX77620_CNFG_GPIO_DBNC_8ms; > break; AFAICT the range should be 1 ... 8000, then 8001 ... 16000 etc below... > - case 9 ... 16: > + case 9000 ... 16000: > val =3D MAX77620_CNFG_GPIO_DBNC_16ms; > break; > - case 17 ... 32: > + case 17000 ... 32000: > val =3D MAX77620_CNFG_GPIO_DBNC_32ms; > break; > default: Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl3DGIEACgkQMOfwapXb+vKDjACdEBrHzhRnSS2tlzRywsjY1nqB AWYAn237wdZfhpbkxh6xewtJbqZA4PRp =4/4n -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--