Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2515685pxu; Sun, 18 Oct 2020 05:32:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+2vo729VMbeQztLE0+nRzxBLWwmoX2OAAVAJSo51IV0cI9luA/Ha3INQU2Mx2e/ZnncIW X-Received: by 2002:a17:906:468c:: with SMTP id a12mr12285753ejr.269.1603024353740; Sun, 18 Oct 2020 05:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603024353; cv=none; d=google.com; s=arc-20160816; b=NJ+ZPWNqGEujKF7OpwfwA0F+7fyN0E4dub++VwiubJ9JHhg0cPldBbEtJ508GQEE0O 4TVQTm35udi+OxBF63WjFjUsaM//Z1vgGzPHqFRAJO8CdkEGP+SiWqyD0P2kEAs9mais 1/PABCcJZJtG2VlltpAJBxgUNbfpx697caaCBfWyxI/ja8neDZMuyEC/aHDLDjs5Aoyn 8wiQdiS2MLmg2h2wsxMwDDlxhkJjOpp44uefYGivk20T7Oi4GbfocuitiuIjaJc03YB4 PVeUWn0tRnTyA6ydFBTzw9c6twEcEtefcvJXUAGQvht155b4IrtagFKEdSEsKtqIcXLw Dkcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=RO8TIdJ+W9ckBk/NoymHqMhLvY2AxkQh/YXzWLYbEU0=; b=W/p9XllTHLkNmyrtx2q3qcHDDcTWhK+GTqVqu7vanMX8zXEI5siT0HcFnBv6nKlEMj Wt/TiMnxMJ6ZjB0yYIST9aNp4Oe4VwAok/vQtiuLQA7Bx/CBFsFe73xbQHIByB+Xn3Cz GPXs6Iqdz1KOaj2qWUaJE4eSgMfa3aMzL0EM5koNnWSVVuhdyBi6IJhxrGiGbLFAB99L gaG5xzFUhoIxWrtB296ttGHz24Lp1xjXRMaUjlNC5NSFPl+dbb7PGa08tf4sK+GkCSrG m89vhy1e33wQuXiF/WJYEX9W/YxQ5s3h1CkZ3u5FCIH1QPcZyur+fH23saXjObpAFC3c ezWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gDX7i1Dc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx5si5524818ejb.393.2020.10.18.05.32.10; Sun, 18 Oct 2020 05:32:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=gDX7i1Dc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726660AbgJRLi4 (ORCPT + 99 others); Sun, 18 Oct 2020 07:38:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:43022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbgJRLiz (ORCPT ); Sun, 18 Oct 2020 07:38:55 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C196121582; Sun, 18 Oct 2020 11:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603021134; bh=DMm9NFiMUt0qRoUMUiEFzO+bmj/oVc3DgTYc1EmVZzo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gDX7i1DcE0TtT4xm/ntMjS7Ikwylg2spXZQMHeT9Mvv+7y5zElGfbO4Jhx/Hna3SS jcvNGfQPSL7YG3ny+NwEV89+A40R1OlHI9CpzLVoUxCwjVmOmjnxEKDfHl0sbxOpct 2TtaMcJm658v+sNLu0GlPb3r+/6nhgZ/XB+E6K6Y= Date: Sun, 18 Oct 2020 12:38:50 +0100 From: Jonathan Cameron To: David Lechner Cc: linux-iio@vger.kernel.org, William Breathitt Gray , linux-kernel@vger.kernel.org Subject: Re: [PATCH] counter/ti-eqep: Fix regmap max_register Message-ID: <20201018123850.24808751@archlinux> In-Reply-To: <20201016195838.536791-1-david@lechnology.com> References: <20201016195838.536791-1-david@lechnology.com> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Oct 2020 14:58:37 -0500 David Lechner wrote: > The values given were the offset of the register after the last > register instead of the actual last register in each range. Fix > by using the correct last register of each range. > > Signed-off-by: David Lechner Fixes tag please. Thanks, Jonathan > --- > drivers/counter/ti-eqep.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/counter/ti-eqep.c b/drivers/counter/ti-eqep.c > index fe2c6bb22133..e60aec225541 100644 > --- a/drivers/counter/ti-eqep.c > +++ b/drivers/counter/ti-eqep.c > @@ -798,7 +798,7 @@ static const struct regmap_config ti_eqep_regmap32_config = { > .reg_bits = 32, > .val_bits = 32, > .reg_stride = 4, > - .max_register = 0x24, > + .max_register = QUPRD, > }; > > static const struct regmap_config ti_eqep_regmap16_config = { > @@ -806,7 +806,7 @@ static const struct regmap_config ti_eqep_regmap16_config = { > .reg_bits = 16, > .val_bits = 16, > .reg_stride = 2, > - .max_register = 0x1e, > + .max_register = QCPRDLAT, > }; > > static int ti_eqep_probe(struct platform_device *pdev)