Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2006177ybl; Sat, 11 Jan 2020 07:08:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwwFIKijTYZRqkx7qWyVZitif+P121s4PxBvZZCmTlJX+ZcyxoiTpJ4nzHY8zYmNqW3sP/u X-Received: by 2002:aca:54cc:: with SMTP id i195mr6388014oib.126.1578755335619; Sat, 11 Jan 2020 07:08:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578755335; cv=none; d=google.com; s=arc-20160816; b=Zzbo0rmpp1yZoVDkzhKyjMoArZRItQczgGIvWWw5U5oSwZnYlBGVa5cxvf86M3d9OB kRQXW3GhtzKq93k/SDQmUU+fve/+/8FMnxwE2Y0sF6C1ZE8hORAlSn7sdJXAYVeZ/f90 dV0KNZ9y0wIxmo654kQP0pqJidrP5J/kuHsQye4nmt/SJhnmFWBPsQMXEjtxefZT1fyc 52z3xTwXiF1txNMnCncLkKlkompmfObdVYxJ7y0H/QGAdfJ9Eimu+w6phhNQawR5x1ME Mf+LJnm9CSVf0O2WEX2Ou211BUIvrYiy4MT4f8+seNGc2TDnfXgGR4ofawPel/N/JGsz Yx1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hSgQxA28MKIpTt81WoVYp6c1TBIyNH7vlFWw7CEHXzM=; b=mGI2t4BgLmOfuuxdczqIjI+FRfVAGTi5kOui00F4pcO/G9sdo6rh6sp/AFPUkJgBWN r8hHDVOuGyPgMPXIQOfCcrMCQcdqb9JSQMoAxfyJ6TKNd9rLQbeHixSZc5GmoemG+NsH PN74HombAcx5cX7etTwY3bMedmVQ04X3NaQwNicYYZCh2feBujKZpurm0TIfvUmN+j0t pVIHZVO4Z7Uc7MUek22LBMGxJOSlpb7T1wx2z/ArsCBAtp0xfIwfQ29RhZQFcAO+qvK9 X6Vo1tK5AkDSzqwWM0zqNhQtt2h+Hl9A7BQsWkjsDKA8zG0wfZnF+2JfYwVSC7sr1uUj /VBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b="A1dV1/kN"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18si3844862oti.153.2020.01.11.07.08.43; Sat, 11 Jan 2020 07:08:55 -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=@rere.qmqm.pl header.s=1 header.b="A1dV1/kN"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729879AbgAKPHn (ORCPT + 99 others); Sat, 11 Jan 2020 10:07:43 -0500 Received: from rere.qmqm.pl ([91.227.64.183]:23167 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729839AbgAKPHn (ORCPT ); Sat, 11 Jan 2020 10:07:43 -0500 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 47w3B40h3Lz39; Sat, 11 Jan 2020 16:07:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1578755260; bh=2q0NAw9Nx5Ha+nFEzKlRrqZS+QI5q+qryaCdFzo7Ppk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A1dV1/kNbDB9WTdU0Errdj75ZUiFT5MCnz85Od4hd3ZKO5QSUggYWzWUhVNYPHnyP 9k5ZpUCR9o7TI14jXfJnFd3ljQ+3ZWYI1EsrB4w1qgjIOTQxj/ohJHpvtzGte64c/R fNxAzM2l1ojVPtP627MSptJlWzgJ1UdEghCc62uvKp38WzBu5xVULDylcSlmON0m6l 18czAbsVT+L3cUAOZxHT84hz9n0QNz0jLMhruXS9gAQF3o4wX9uv7dXKzdq2FcrTJ4 OMv/vJUr7SZK0P6kpvWbFYCHadLEIkp09v6gaQw15Zjz/X4myFWqXO3Yt1QXgQGAlM LZ6cbQd2U/G8Q== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.101.4 at mail Date: Sat, 11 Jan 2020 16:07:35 +0100 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Jonathan Cameron 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: <20200111150735.GA16291@qmqm.qmqm.pl> References: <20200111121047.79e16365@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200111121047.79e16365@archlinux> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 11, 2020 at 12:10:47PM +0000, Jonathan Cameron wrote: > On Mon, 06 Jan 2020 12:17:54 +0100 > Micha? Miros?aw wrote: > > > Make mpu6050 usable on platforms which provide only any-edge interrupts. > > This also covers shared interrupt case. > > So this had me confused for a bit because I assumed we were trying to make > a level interrupt providing device work with edge interrupts. Seems > device supports a pulsed mode and the driver supports this. > > 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 falling one? > > For shared case it should return that it did not handle the interrupt > to allow spurious interrupt detection to work... 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. The patch is required on platforms that support only dual-edge interrupts, like eg. AT91SAM9G45-based one I have. Best Regards, Micha? Miros?aw