Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4464427ybl; Mon, 13 Jan 2020 14:17:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxtu4LFUCofg6V+j+U50NRnmfRdwnoIFtgUBdlwLScs3KU7wknC8cVPcUecT5U769ZB8DVE X-Received: by 2002:a9d:6758:: with SMTP id w24mr15715987otm.155.1578953870868; Mon, 13 Jan 2020 14:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578953870; cv=none; d=google.com; s=arc-20160816; b=gn5VaFO0muldMarkKUVfPyUBWhQ6yHM+yGx8lklMaFYAG1ixFpfL+SQ47hiHi6YVwO zTTpEef+F7DsnsWNsTnmnoYMmy6S75FxNAClc2lwoCZGjBcMsOZnIbhP6Mx1IyB9iGdT ydOejYhWyx72hSlpfQD89c/mM4Kz+t7/bRJiZBBw+ZKbRfB4mV76JWV+HGtlPpDfY/97 VpkDrxW856g25oP1DdwIlDsw1P7IDpfY7bDadCi/B68rgoViVNFVJ2OUx8MTCEBtZm5g 7ETgyqGxTVEwyVDscAtT32+io5oQ89uFR/sN4oeP/vqWASNtvdJv2NN825Knxbhrp+wA WxlA== 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=0s1oTO0Ta30GMsR3hJZVOYwNUvUSy2H0aPcQwwYmVwk=; b=PzOsB9qScmYwrvP8DsyWJinyQ53Fki+8OtomNln56M9qYPz0+uzb2EA8WF/g3Fbpyq GmihS9VucntnxVC3bfgHj3R78zFXYyyBmGL7tbnWtv4L7Vj+ZkQKAQB7wAUUHu1lGChO H8dZwKgoWFyZxQerUYMjL58MvQcXYFYY/bVwbXEt2lD5p+eM2UlMPTPT6VDmRHtfa1/O fcPPDtsxcd/a1HUD/Opo4BXzfWNgLClq3KEjZhRxiS/XOMb54BLHQqRrCbCnqEREsYgq NHPld/b6mj765Jim1NfAsmJgE0EMKSniVf7OXhP9Q+q7H6O5qtUE0sVl5HrIjmKNhqN/ 8x3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Ecp1/MC7"; 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 t15si6623685oij.189.2020.01.13.14.17.38; Mon, 13 Jan 2020 14:17:50 -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="Ecp1/MC7"; 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 S1728933AbgAMWPZ (ORCPT + 99 others); Mon, 13 Jan 2020 17:15:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:52228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbgAMWPZ (ORCPT ); Mon, 13 Jan 2020 17:15:25 -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 181452072B; Mon, 13 Jan 2020 22:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578953724; bh=IM/N4j7+xe7IxMun527SYXMDUncwj/0c2VWaIWkvdzw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ecp1/MC7WbjOeY9jr9s1wNHC5S0032h4boKsI/olcYk7Ao3ycqJ2J6imsxh+kFq8S OcVdM4NnD1grSdHgOj7fne6cwEpg3Z+Xm0eJKp1FkYXyO+WfMQNs6FjXvAd5omMmTp DZYU11T2nJ7D0whLfuAO4a9B3iOI2JV+D8X4geMg= Date: Mon, 13 Jan 2020 22:15:19 +0000 From: Jonathan Cameron To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jean-Baptiste Maneyrol , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] iio: imu/mpu6050: support dual-edge IRQ Message-ID: <20200113221519.51557378@archlinux> In-Reply-To: <20200111150735.GA16291@qmqm.qmqm.pl> References: <20200111121047.79e16365@archlinux> <20200111150735.GA16291@qmqm.qmqm.pl> 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=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 11 Jan 2020 16:07:35 +0100 Micha=C5=82 Miros=C5=82aw wrote: > On Sat, Jan 11, 2020 at 12:10:47PM +0000, Jonathan Cameron wrote: > > On Mon, 06 Jan 2020 12:17:54 +0100 > > Micha=C5=82 Miros=C5=82aw wrote: > > =20 > > > Make mpu6050 usable on platforms which provide only any-edge interrup= ts. > > > This also covers shared interrupt case. =20 > >=20 > > So this had me confused for a bit because I assumed we were trying to m= ake > > a level interrupt providing device work with edge interrupts. Seems > > device supports a pulsed mode and the driver supports this. > >=20 > > Why do we want to detect on both edges? Do you have a crazy board > > with this shared and some devices using the rising edge and some the fa= lling one? > >=20 > > For shared case it should return that it did not handle the interrupt > > to allow spurious interrupt detection to work... =20 >=20 > Hmm. The shared interrupt is a red herring. I'll remove the sentence > from commitmsg as it looks like the driver needs a few more fixups > to be able to share the interrupt line. >=20 > The patch is required on platforms that support only dual-edge > interrupts, like eg. AT91SAM9G45-based one I have. Yikes. That's a new one to me. You have my sympathies. Hmm. Normally I'd just call that a broken platform and ignore it but I suppose this change isn't too harmful. I'll aim to pick up v2, with the adjusted message. If you haven't done it yet, state the example platform as well. Thanks, Jonathan >=20 > Best Regards, > Micha=C5=82 Miros=C5=82aw