Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1265250imm; Sun, 27 May 2018 02:30:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKICA6XABixp/e/itxvaq7jr9TxUpfASkAnAcjEVzZZe+GWj6VZ8AuHoMFwO+3Mdc7vg1XMm X-Received: by 2002:a62:1fd6:: with SMTP id l83-v6mr680451pfj.182.1527413449183; Sun, 27 May 2018 02:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527413449; cv=none; d=google.com; s=arc-20160816; b=Y19e99CmTRX0gq1g+NGBEMJ1y4iqOe0hMJVa4iqXw/OOyU7uGpSaFoI6WeH0D3dhEC WhTAX4eyNLIo9HKKsGIS1mqqx5z92sZ4nKel0Q/RkomkJ5lLFzsH3upzQfbNPpao/Q/+ R888caNnYa9k/NVV39IXaRLozt6Gbhcskcg9sOw3X4ZBMMOmcRPFAyZXYTVlipOOimdO xrE9gm5gKsu+Jw5u530P06ziwnE1ZuD1Frg/3TdRZnG6BRtWFgM8tl18vDjEfmIPg2+C zGVlRj4JPkv401fpsRrb2b2+0MNos6mmF+qXfnNdYQl1L4O1lIqw77xVlIxUjX9El808 CKhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=0sjrehWQXH9hBrzJo1zwYCE6WiMNN0DKnuyEyBph0ks=; b=XrkIBF1zr2DGBS/LUB/sdngVjH6JeqtTNaGyBcvz12eJ1wioiEWYlTpc332klnIo5F Ssox+Myg0D14aZv0FzAHoQzCLEIRwzX9uErONlQ3F7USH+As70OZgM9jr+ZagmkWu9BG nocmWaSkCrmZ1dDPO0c7S39PlG9hbkQG43zMaxSmHQ7D9EDTf88o89+UMVvctMvx6wVl 8CWz5uykzSM5jd+ATMgNR24LGZ73NI1w1atQC1T+33/UlA3E3gUBkTpgoZnEIWWgWrtf UqujDNY5rtPfEMVvzf4xvQGgIn1RRFrU8hdtpcmhA9OAmqWzEj61FPPEQqsBRGE+lTSW YrXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HaEuie95; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9-v6si28567097plk.61.2018.05.27.02.30.34; Sun, 27 May 2018 02:30:49 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=HaEuie95; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964989AbeE0JaJ (ORCPT + 99 others); Sun, 27 May 2018 05:30:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:33148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933214AbeE0JaH (ORCPT ); Sun, 27 May 2018 05:30:07 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (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 2E3DB20849; Sun, 27 May 2018 09:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527413406; bh=7rBqCbPFfQYaWyxVb1CGKWkCTD2kSXo+hk/gYUxPbc4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HaEuie95JjYPR/5Krs/kj3L/KD/hNNFop8+vEX0ZnFCkOXKTVmrezq/B5U6gTxuK7 NIaKrhBjQ11r70DKnD7WOrOhunDz6iu05C/8ILN3rTsXTxY78d9SAS496LHtfULy7j JLGlvwYfdUoHhDkO6DURIrU+OrQv44ZtCqvbtOqM= Date: Sun, 27 May 2018 10:30:01 +0100 From: Jonathan Cameron To: William Breathitt Gray Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] iio: 104-quad-8: Fix off-by-one error in register selection Message-ID: <20180527103001.6e649cbb@archlinux> In-Reply-To: <7c1d9be4338ab822680b9ca6ce6eb24ceba32f4e.1527193661.git.vilhelm.gray@gmail.com> References: <7c1d9be4338ab822680b9ca6ce6eb24ceba32f4e.1527193661.git.vilhelm.gray@gmail.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 May 2018 16:37:46 -0400 William Breathitt Gray wrote: > The reset flags operation is selected by bit 2 in the "Reset and Load > Signals Decoders" register, not bit 1. > > Fixes: 28e5d3bb0325 ("iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8") > Signed-off-by: William Breathitt Gray Hmm. Given timing I'm not sure on the quickest route to upstream this. Hence I'm going to take it via the togreg tree but might move it if the merge window opens before I push that tree out other than as testing. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks Jonathan > --- > drivers/iio/counter/104-quad-8.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/counter/104-quad-8.c b/drivers/iio/counter/104-quad-8.c > index b56985078d8c..4be85ec54af4 100644 > --- a/drivers/iio/counter/104-quad-8.c > +++ b/drivers/iio/counter/104-quad-8.c > @@ -138,7 +138,7 @@ static int quad8_write_raw(struct iio_dev *indio_dev, > outb(val >> (8 * i), base_offset); > > /* Reset Borrow, Carry, Compare, and Sign flags */ > - outb(0x02, base_offset + 1); > + outb(0x04, base_offset + 1); > /* Reset Error flag */ > outb(0x06, base_offset + 1); >