Return-Path: Subject: Re: [PATCH v5 1/2] iio:imu: inv_mpu6050: support more interrupt types To: Jean-Baptiste Maneyrol , linux-iio@vger.kernel.org Cc: devicetree@vger.kernel.org, Jonathan Cameron References: <20180409202128.5031-1-mkelly@xevo.com> <64b0a5c7-ee8d-d1ca-b3aa-a1801f19787c@invensense.com> <6e3f08f8-ec16-e67b-c68c-7020eb660b14@xevo.com> <2ab59fc6-49c9-7426-fe95-824a165cfefa@invensense.com> <3b0b5ed8-f224-e589-ce60-e1871e76b25a@invensense.com> <67000b98-7db9-f16e-d468-bc688cc56342@xevo.com> <3941609e-c75d-2a47-8b33-a7a5e4131741@invensense.com> From: Martin Kelly Message-ID: Date: Fri, 13 Apr 2018 09:19:41 -0700 MIME-Version: 1.0 In-Reply-To: <3941609e-c75d-2a47-8b33-a7a5e4131741@invensense.com> Content-Type: text/plain; charset=utf-8; format=flowed List-ID: On 04/13/2018 02:25 AM, Jean-Baptiste Maneyrol wrote: > Hello, > > I am now able to reproduce the issue by generating kernel irq (just > plug/unplug mouse or keyboard is sufficient). > > My last modification doesn't solve anything, since event the hard irq > handler is disabled when processing another interrupt. Having a latched > interrupt and triggering by level is a workaround, but clearly not perfect. > I'm glad you can reproduce the issue now! What board are you using? My issues have been with the nanopi neo air (based on the Allwinner H3 SoC). > I think we need to work out a new solution for timestamping correctly > the data. > > JB > > I think we should try to solve the missing interrupts issue. Without solving it, the best we can do is interpolate, as I do in the other patch. That said, I think supporting more interrupt types and interpolating are good ideas regardless. Supporting more interrupt types is useful for integrating with more types of hardware, and interpolating is useful for being more robust against systems having issues, which can unexpectedly happen even if we fix the immediate issue we see here.