Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp430884lqj; Sun, 2 Jun 2024 05:22:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtaqumjtUQcnzfrK1kU+DwEDZeR7xGazDPpT+RLyEY1gSZJ8QTGwh6pSDG7CQ2WzVDLSBlJS5dBKUiigAxLGc6jrrRtdPSwUclNFOgig== X-Google-Smtp-Source: AGHT+IEVn+1d3xbt4PGxuR8+KhEB7h+o4BbfLadaITWO8yltxNoGhEJIfp2bj0h4FKMQTdohgZAq X-Received: by 2002:a05:6a20:258e:b0:1af:d2f8:382a with SMTP id adf61e73a8af0-1b26f16e6d0mr8080331637.34.1717330924537; Sun, 02 Jun 2024 05:22:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717330924; cv=pass; d=google.com; s=arc-20160816; b=A7a/djNXNriEaFdeRtAr0NWxpN9kLmBvzr+8ioGxFiQ0mnqMn4kwbwKB62fsNoBTaJ CFeZc5DnVdU5unTy42hV7G/wL3hPRXhPq4gRI4WiUp9+TI/nq5F1MnTwApwoGLSmo+4h hKf0SNaHb/x7t2s4VXO489Dzr1H6yTb5eusTBN62VucCi+YYkkOuwooif9u+TM6UgwJS VHAFnuoldjPCvWdHfZoA+/5dftEBAxBSDXqYbrLmgjXJcNqeLTUpgZhxet7NnGhx41MI abuKrplZ6Npm87hr/rEPhTfNgoRKFshDFJ0jaP/EFPfIOsCC3kjz3l6mC5VzTVrgNOIl b1YQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=dTEAMDkY5wJRNMXZjg6+pIAw2xrp5B2h18YUfeTnO9s=; fh=eQyTtpjgzetjZCIeJ2dJRvAcxTjaQrm2oWiHfVMOtjw=; b=etFd8OehALA/vG2+4Mk8EH/ljqvB+BVUK/jooYyvd55SVqjQYWIgrXC801bAxIquZH kf6h+2aOF3asYAoeJBtILJSBCObCIxmgdD+zyK1Mf4igWrPG8DH8UPaMTIGJazFxZtbw C6VOGMoBtFlzSNireFBrjqaKXgGPwO0EAXKlolK+ndJzuX8FYRtx6hbCYB/BVPddxkWv icuAamVg0ZoJ5ECHjOsZ7PI1VCF89iy7uG2sY1jXE45LJ63uZr3xKpumc/7ujT2sJdiI wfO3BtufFCgEuaMrHvGd6oLxkbYhwSvHlnIZckfCa5gFshoHAQVXp6iaiXIWKGnqRtTY +5wQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BX5W5Hen; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35d694e48si5115527a12.825.2024.06.02.05.22.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 05:22:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BX5W5Hen; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 965AEB21166 for ; Sun, 2 Jun 2024 12:22:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE4813A267; Sun, 2 Jun 2024 12:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BX5W5Hen" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1273442F; Sun, 2 Jun 2024 12:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717330912; cv=none; b=Hl08Frha+7QBrUJ53pN8L6P/GPlQqpXG6pcXiX8HCpoE0tPEZTLg+EnwPAcI1NV3xGnuV+VlOfX3zp8nvJ4RCtkhsbFG6hENGGGPsiCXNhCnKHpPvKud8RlxcBddxk4FB6euJnp3APzf+zF5aP8rwWehiUZ1k/ucHd2xkFCsCSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717330912; c=relaxed/simple; bh=lvlJGVin53fnlae77bxMcOXn67Pohe2vjm+EJ3BfPM4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oxfbc3FWyyjAinZCRQY0sjQ7+2oWhTH8cUOlJEdbw9R/+YaEQIMYcOljnB2HQxOwZQTB07T53xRhOfUCDaFOaZ55UiwW7lFHbSdU5lyf0Nit54JqccMtcvDx/GZB+kuDYDx+M7CHmpofkZ1lfR7LqjiMadlK/OwKaORqMJ3NBo0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BX5W5Hen; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09512C2BBFC; Sun, 2 Jun 2024 12:21:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717330911; bh=lvlJGVin53fnlae77bxMcOXn67Pohe2vjm+EJ3BfPM4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BX5W5HenofAKkd9eAfCi7h95mfHrbaOuDP2Ka5zTZHBdgOQprKYJ5hSdeYFQbH5BM ECcsm9+StBwrGjd7iuQ8UFko6PgOQB4AQ60Sd7oSdpjB9aFrI/khJrnXt2Q4EhMw/H BEN/6Pfc1wxKKbkSxLMQ3ndCQKXmXfCHS5Tl0/7/MJDIikOddL+64KgPSQZU4+uJtN 51zfk6D/Ooz4e6sOSyZ7PUzBzfiJPp5IAC43gdwHlz6F+mX53LCnuV0EA4t3QigXHh oKrwrK15+B5XssU3HaBMAMrdpxGIstFiEWTMsgzTVBcrSj5UYFGb9hX73H1np/jFoC x1+W0la6fG8pA== Date: Sun, 2 Jun 2024 13:21:40 +0100 From: Jonathan Cameron To: Dumitru Ceclan via B4 Relay Cc: dumitru.ceclan@analog.com, Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Dumitru Ceclan Subject: Re: [PATCH v3 4/5] iio: adc: ad7173: Clear append status bit Message-ID: <20240602132140.31dbdef0@jic23-huawei> In-Reply-To: <20240530-ad7173-fixes-v3-4-b85f33079e18@analog.com> References: <20240530-ad7173-fixes-v3-0-b85f33079e18@analog.com> <20240530-ad7173-fixes-v3-4-b85f33079e18@analog.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 30 May 2024 15:07:52 +0300 Dumitru Ceclan via B4 Relay wrote: > From: Dumitru Ceclan > > The previous value of the append status bit was not cleared before > setting the new value. This caused the bit to remain set after enabling > buffered mode for multiple channels and not permit further buffered > reads from a single channel after the fact. > > Fixes: 8eb903272f75 ("iio: adc: ad7173: add AD7173 driver") > Signed-off-by: Dumitru Ceclan Applied to the fixes-togreg branch of iio.git. > --- > drivers/iio/adc/ad7173.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/adc/ad7173.c b/drivers/iio/adc/ad7173.c > index eb512878c30e..e66a137a76be 100644 > --- a/drivers/iio/adc/ad7173.c > +++ b/drivers/iio/adc/ad7173.c > @@ -543,6 +543,7 @@ static int ad7173_append_status(struct ad_sigma_delta *sd, bool append) > unsigned int interface_mode = st->interface_mode; > int ret; > > + interface_mode &= ~AD7173_INTERFACE_DATA_STAT; > interface_mode |= AD7173_INTERFACE_DATA_STAT_EN(append); > ret = ad_sd_write_reg(&st->sd, AD7173_REG_INTERFACE_MODE, 2, interface_mode); > if (ret) >