From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750937AbcCABd2 (ORCPT ); Mon, 29 Feb 2016 20:33:28 -0500 Received: from mail-io0-f176.google.com ([209.85.223.176]:35194 "EHLO mail-io0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750699AbcCABd0 (ORCPT ); Mon, 29 Feb 2016 20:33:26 -0500 Date: Mon, 29 Feb 2016 19:33:03 -0600 From: Michael Welling To: Lucas De Marchi Cc: Daniel Baluta , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , lkml , linux-iio@vger.kernel.org, Lucas De Marchi , Guenter Roeck , eibach@gdsys.de Subject: Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support Message-ID: <20160301013303.GA18806@deathstar> References: <1454678238-16313-1-git-send-email-daniel.baluta@intel.com> <20160301005032.GA15476@deathstar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 29, 2016 at 10:09:10PM -0300, Lucas De Marchi wrote: > On Mon, Feb 29, 2016 at 9:50 PM, Michael Welling wrote: > > On Fri, Feb 05, 2016 at 03:17:18PM +0200, Daniel Baluta wrote: > >> The driver has sysfs readings with runtime PM support for power saving. > >> It also offers buffer support that can be used together with IIO software > >> triggers. > >> > > > > Daniel, > > > > So I noticed something yesterday while testing new boards. > > The channels are occassionally swapping when accessing data from multiple channels. > > > > I wrote a simple bash script to demonstrate. > > This happened to me in a previous version of the patch. I remember it > being fixed in the last version (or at least I could not reproduce). > I'll test again tomorrow with your script. > Just verified that it is happening to me will the latest in linux-next. root@dragonboard-410c:~# cat /proc/version Linux version 4.5.0-rc6-next-20160229+ (michael@deathstar) (gcc version 5.2.0 (GCC) ) #1 SMP PREEMPT Mon Feb 29 19:27:11 CST 2016 root@dragonboard-410c:~# ./test-analog.sh ain0 = 267 ain1 = 286 ain2 = 268 ain3 = 288 ain0 = 283 ain1 = 284 ain2 = 284 ain3 = 0 ain0 = 0 ain1 = 284 ain2 = 287 ain3 = 0 ain0 = 0 ain1 = 285 ain2 = 287 ain3 = 0 ain0 = 282 ain1 = 284 ain2 = 287 ain3 = 0 ain0 = 283 ain1 = 284 ain2 = 286 ain3 = 0 ain0 = 283 ain1 = 290 ain2 = 285 ain3 = 288 ain0 = 284 ain1 = 286 ain2 = 285 ain3 = 0 ain0 = 0 ain1 = 284 ain2 = 285 ain3 = 0 ain0 = 0 ain1 = 286 ain2 = 287 ain3 = 0 ain0 = 0 ain1 = 284 ain2 = 289 ain3 = 0 . . > Lucas De Marchi