Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp420379ybl; Sat, 18 Jan 2020 03:21:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzdWcCsKYRr68QPCbAF0+fS7DXWpGXmztRUmsdafNxb3tQhYSvNUO0nesjZh7m1dFQeWSz5 X-Received: by 2002:aca:4106:: with SMTP id o6mr6760305oia.173.1579346478514; Sat, 18 Jan 2020 03:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579346478; cv=none; d=google.com; s=arc-20160816; b=RPd82H9/PvNPrxuACMJm59RyX9E/mCi/Wqr1V08LV8D/7JIpzkVck3o3psfpvgIQrP VCpZUMhiRm3QwuXHDLC0ln/goS95BuN4BqP/LSN6/tMIHb3MJ9V9K5aEJryNIEvR7UB2 xV3SGTdbk0NKn/t7tRyvH1shOk2d+cyH+U8m0Fo+/6ww+p0UqeZypKamT0XzG1Bf3bB5 LC5r2BZNN/GEQJbXgSLb2spMfixkOOTSQyonZoBsrObR9m/jzpDILKJ55bwoQZXhhZ9U jGaKZvmEebLJazOVhuqaAC66Zx3/Oadbxmx45+D+NYa7uVxCCTbhTgDrfetuI08mj6mt tACQ== 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; bh=/prLHyFIWWWBAQ/Yct6bsddT8646706yS5tasphAS8U=; b=UMg2jL0IScFC3Y0m7cNmETOv16sE+e4qWnTc//uaovcd1Cv1laNUZP4HdUKv4UDqpd E/JjM0jOI3BBvJtWkmThMhUmenCvROgADGfMg88kj4D9vCmZheJDOB99wCExLwJGHYSc n4YTPMa7QmZ9MOhSTPV1HFrm3Qbqk14aYTl19euxaUgoCEwpF7COL4uMShIFeHhaA9Tv OVrNEHk6HsohM1C8p5YH6SNMlIXQNNp8Z4AgNC5D2/OD3IVxGMxOr8uWVAwE+s82NA+o kP31zsCufGBaogbPaarwgy+/Tw28ZnMe0OqiwwBG0aH/GhrfXlV5Onv9oTgzw4/hAW1z Jv8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ro3xRUe6; 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 l189si15631484oih.166.2020.01.18.03.21.06; Sat, 18 Jan 2020 03:21:18 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ro3xRUe6; 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 S1727118AbgARLUM (ORCPT + 99 others); Sat, 18 Jan 2020 06:20:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:40158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbgARLUM (ORCPT ); Sat, 18 Jan 2020 06:20:12 -0500 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 3DB482468B; Sat, 18 Jan 2020 11:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579346411; bh=eb/ffuQCnjGU8Wnjpp4BEJc6hOcGxDzaA3lFz2VXzuY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ro3xRUe6E3TqNVbU1xEWJG3JiNL1787H9YjtyPYRUv3whVCKfq5Zy5ZbdpNkRlWeg sFpv49Y2EZ/BwfgPbNv7jGLJiNC403AlPA3Sg03TCPDi/iN5+Im8Lo6zowUzL455Rq 8tLrMY+W3G87wHQ6HHYCmOj6mtRF16hZAPQKe/yw= Date: Sat, 18 Jan 2020 11:20:07 +0000 From: Jonathan Cameron To: Alexandru Tachici Cc: , Subject: Re: [PATCH 2/2 V3] iio: adc: ad7124: Set IRQ type to falling Message-ID: <20200118112007.43ab1f13@archlinux> In-Reply-To: <20200113102653.20900-3-alexandru.tachici@analog.com> References: <20200111112317.1cf2d878@archlinux> <20200113102653.20900-1-alexandru.tachici@analog.com> <20200113102653.20900-3-alexandru.tachici@analog.com> X-Mailer: Claws Mail 3.17.4 (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 Mon, 13 Jan 2020 12:26:53 +0200 Alexandru Tachici wrote: > Ad7124 data-sheet specifies that the falling edge > of the DOUT line should be used for an interrupt. > The current irq flag (IRQF_TRIGGER_LOW) used will > cause unwanted behaviour. When enabling the interrupt > it will fire once because the DOUT line is already low. > This will make the driver to read an unfinished conversion > from the chip. > > This patch sets the irq type to the one specified in > the data-sheet. > > Signed-off-by: Alexandru Tachici Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/adc/ad7124.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c > index 9531d8a6cb27..9113f6d36ad4 100644 > --- a/drivers/iio/adc/ad7124.c > +++ b/drivers/iio/adc/ad7124.c > @@ -223,7 +223,7 @@ static const struct ad_sigma_delta_info ad7124_sigma_delta_info = { > .addr_shift = 0, > .read_mask = BIT(6), > .data_reg = AD7124_DATA, > - .irq_flags = IRQF_TRIGGER_LOW, > + .irq_flags = IRQF_TRIGGER_FALLING, > }; > > static int ad7124_set_channel_odr(struct ad7124_state *st,