Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6906560imb; Sat, 9 Mar 2019 09:34:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzK0bvV1cieU4ClO5Brx97qzo2q9vNA1WL52VquDLyoddRWAn4wiN8yEFeZs8Tz715yHhhm X-Received: by 2002:a63:83:: with SMTP id 125mr22548346pga.403.1552152869414; Sat, 09 Mar 2019 09:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552152869; cv=none; d=google.com; s=arc-20160816; b=UUZcJoKhAHbic5syjVr+XUBAm/CvZ9FF1Q8xjqpzZjm3IgS55T3y2eJOiOnCM4LXuo fv4JrKS3auFXPcZebTddTpMps0kJ5KcVrNNCYfMIqEl+ZIkj9rLg+cKIN/dy8O23hsM+ gADD8oddForDcEkR5mVrAUCdmouD+1KrE7Pd1ufpMFB5NMTkty1A9QU4UlCdAjVXxsLh cf5UFfprHbj5ZVpk3aHBIv3Crizyxt1BK57xfyQK33bilnh3LhIpDsxnU/CQCC83szaR o/VkoCRz1heKAHLre3pXnWRA5cAgcpIVm4OTAn9rwbygvM4KWxie2Tr0HO4NWeocy/pY yH9w== 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=kdDZUvReuUhL7V78NfiAAKu1sOifJJfuk6LoA/WYZB8=; b=b9WZC1jA4P6ZYkxYyKGyMXz2sBXZoA5QY6fHpVrE+GlFqlfACyUGM+V5dgbVXmAxvU oZYLxRHeJY9gIftcMbAK6sY3hrNf99ilLO1FzHJ91Jo/6D1rPZzFgzsiHy3ceCjwX/Mt Z8oNqEkwZVpAWQ9ZQpM4WJCk1Clq7aK+FoMX8omtcTf9jsy7HIuTyX+Ba0xaSPpH312r As3uU9AiHsuZ/+lssxSXUZhmkntmcerIpPv22HS1nIQwGJyFlXjfKg4lmsz2DO8h7ESJ aeB/K5YMSer+4yseqF3Ik+dt6OzQQbXUmLb7MC3gky8kS12n1fhRk0g27EDR5tHWl1t5 EN5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D9qGCnEt; 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 n7si961796pgd.81.2019.03.09.09.34.14; Sat, 09 Mar 2019 09:34:29 -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=D9qGCnEt; 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 S1726506AbfCIRdw (ORCPT + 99 others); Sat, 9 Mar 2019 12:33:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:51264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfCIRdv (ORCPT ); Sat, 9 Mar 2019 12:33:51 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (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 5945920652; Sat, 9 Mar 2019 17:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552152831; bh=u7uVZo5ivGnFwM+oBBJ+0qPmbgn2hj8QK9Zj2CRoG5Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D9qGCnEtaDm1wY/M4dxJuR0Cpb4BgM+wR10rnAhjGKEz5zGDjPPYoCFkZn35zcbJK DmUXsHIwywReCRuUse8J7iN3w6iaks6k+1//NeQzAzidM5JLK2ssXigLEBz4TWL/t2 YBrkvaXMJKwdTCsBEoOf59R2ayU859ZibbY9B72U= Date: Sat, 9 Mar 2019 17:33:46 +0000 From: Jonathan Cameron To: Sven Van Asbroeck Cc: Robert Eshleman , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Linux Kernel Mailing List , linux-iio@vger.kernel.org Subject: Re: [PATCH v2 1/3] iio: light: Add driver for ap3216c Message-ID: <20190309173346.2a1ea4f8@archlinux> In-Reply-To: References: <42dbbd7568e4216a320c6fd617bd91c1ee045af0.1551037168.git.bobbyeshleman@gmail.com> <20190303143813.3b5a3f22@archlinux> X-Mailer: Claws Mail 3.17.3 (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, 4 Mar 2019 11:25:01 -0500 Sven Van Asbroeck wrote: > On Sun, Mar 3, 2019 at 9:38 AM Jonathan Cameron wrote: > > > > Hmm. Just been thinking a bit about the events on here and wondered > > if it is possible to mask them through careful use of the threshold > > values - i.e. can we stop the hardware generating the interrupts for > > the ones we don't want. It would be unusual for hardware to be > > designed where this wasn't possible. > > Excellent point! People with power / battery constraints take a dim view of > receiving interrupts when no-one wants them. So disabling them in h/w > is definitely the way to go, if possible. > > And yes, this also makes a non-issue of thresh_en visibility concerns, if any. > > > > > Alternatively if you have a scope or equivalent to verify if it is doing > > these as a multi byte read and working that would be even better. > > It is not uncommon for hardware to implement fairly standard i2c features > > like this and not document them because they weren't what the test code > > the docs writer got given does! (may not be true here of course) > > Or alternatively, the current chip rev supports undocumented multi-reads, > and the next revision silently drops support, thereby breaking the driver... > Been there, done that, got the T-shirt :( Indeed it's a risk. Sadly hardware guys never have a 'we mustn't break software' rule like we do for userspace! Jonathan