Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2571602imb; Mon, 4 Mar 2019 08:25:56 -0800 (PST) X-Google-Smtp-Source: APXvYqx/OBXuMdN74FMWHxVdVyBOuV6Pmjg0rFCk/P0ya9Sao66H5AL4Q8spPoSXuHQb6sOFaDXs X-Received: by 2002:a17:902:6b81:: with SMTP id p1mr5215342plk.106.1551716756654; Mon, 04 Mar 2019 08:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551716756; cv=none; d=google.com; s=arc-20160816; b=GLwMBGlqPUnxcvoCYhDdXdoWa4jVrsPjSvQePh1/sj8Qljc8c2pm2Q7AbB9eeG5eLI avl9j3oAHt0BWetQWaTempi/hxdqzQGDpsOebMKFy5dERhMUppw2nbGfrCNWlQT//ZvW h+AEER1+S1AM97JrK+7EmJkWC2xYVk2FZLUKfsSSDMVzzHEV1BPSdxcbr9a1q0UYFGiY mXzKTZNCz2GA5tGy+lEA/MKgWCYgD8pJrlA3+7G8KPOwIB5SJTFWhFEP57IMiegOlK4M jzkvaGkj6Q6cMpll/gdg8dzRzGiIdDfvCTpGdOvSNVkNVZYDeKvnzeq3SHwmhVzy890O fkQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yTnTWpeeE+CiV9lF7EKLxXS6uvkQq6oVoshcbDcQFHE=; b=fEN/laFNh1x0RCfm4bv05JXZul5yNSceH3wYDnF+2E3KkiURReMvIPZU0O4WsdIHcz YPatqfPBiyjAMtBA1Fx7R20rBuxFP3rFpHgtE6FLJb9vbJNINlJ++B68mrZKVXqkGqUR csj7mddayLdv/xWejhQ/t0ZtSEKGTYayKbN9WgrWFcp7l9OCRymNBs7kBkwNvvZlDxQk UJZBEXDZSuItA7X6rhE8oPf4RoB5azwf6oQfiujac5av+vvBHK0UZkuakd6UOz23cFLn 5+PcOQ/cXMGe4bXGrqhyAm8spDrIW9oR/1p3ONobhvtROjNbfSEp2/OyytbwI7ZfKLDD Yq+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aIwaJLX8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si2172990plx.125.2019.03.04.08.25.41; Mon, 04 Mar 2019 08:25:56 -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=@gmail.com header.s=20161025 header.b=aIwaJLX8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727269AbfCDQZO (ORCPT + 99 others); Mon, 4 Mar 2019 11:25:14 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:38345 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbfCDQZO (ORCPT ); Mon, 4 Mar 2019 11:25:14 -0500 Received: by mail-oi1-f195.google.com with SMTP id q81so4290658oic.5; Mon, 04 Mar 2019 08:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yTnTWpeeE+CiV9lF7EKLxXS6uvkQq6oVoshcbDcQFHE=; b=aIwaJLX8fAJARmQAXKN+Bt026UwSWI0hT4PfxUBE9vM0XHl5WUdnES5ij/+/67qDht neLoWMziY9HEnAetneJSvwPVVnD/NkGt+1KGmopv4lJw0mv3C1Vm05cBaGjgUVKES3BA cq478rdxNjbXBirYSbAYOvZvNfLsgWetZrEfYlJ/Ys+iNr2Laqy3Sl6LfgQdWV53LmNU +L4mbvMqxHXzI6xiVqvqynngAUNRRPVXj525zv+PfOouLwhUm/cjhtO8r6HMAEv9KHJ2 s4b6ojkEJzZ6uz4P8M2hhTXZxP6VqkJA/M3JQqU3prSQAindqQhLZuY5DyBiOcGfGpmb 9KzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yTnTWpeeE+CiV9lF7EKLxXS6uvkQq6oVoshcbDcQFHE=; b=Bo4LphJil1dUhjSc2lDMIW/b1Ex07GPsLrY+XxXRPy0ZRx/nf2smkz5ty8Dxmkdbri oHOv04hI+zqe9nArn4MI+2TBYbIIY6Hb1NtmJTIPOVwpxrV/lli0n21jNrof4ZmjsSG8 mi25/dKuelPdWqQUjxEwGStV1y2nuJ8dKxI2Ua95bYzuHzQQ3j1Az6DebLe4etUCSIIA OM+WLvd5LBUZccD7K+V4QRKVpKXpqEIqzPQMOMYRBZhBzQ7Au9ERq0k9byWHZ3XFBUd5 1UBjL4I1VPAfIonBWpO5f/GJscL+VLbgEeioZeaAWvhtDDIFgUnf1Q3RMs8QFDCavjqz xiTw== X-Gm-Message-State: AHQUAubiwPXNv/aRctHTe5HQjwopEbb4IKNdtZPnv2kRW6kwerVrbASG C/ha74kTKGLFG+Olp4Qwe2yEaVVSutfa3i/5ZdqH4jTz X-Received: by 2002:aca:3142:: with SMTP id x63mr11980855oix.92.1551716712873; Mon, 04 Mar 2019 08:25:12 -0800 (PST) MIME-Version: 1.0 References: <42dbbd7568e4216a320c6fd617bd91c1ee045af0.1551037168.git.bobbyeshleman@gmail.com> <20190303143813.3b5a3f22@archlinux> In-Reply-To: <20190303143813.3b5a3f22@archlinux> From: Sven Van Asbroeck Date: Mon, 4 Mar 2019 11:25:01 -0500 Message-ID: Subject: Re: [PATCH v2 1/3] iio: light: Add driver for ap3216c To: Jonathan Cameron Cc: Robert Eshleman , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Linux Kernel Mailing List , linux-iio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :(