From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D000E1F958; Mon, 4 Dec 2023 11:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YLM5rjvN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DF42C433C7; Mon, 4 Dec 2023 11:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701688411; bh=2XwAfycpniLMpRRkj1AgYd2OQFR+IEoJXGRydmgWEi4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YLM5rjvN1jPGsWFMxXxmje2pnLmddvDWNL6ATspD1unuAomA9abDtfaqjvT6qmAcM EPHHtHaSq50ecLXorduQaxF8XHDYdIZR7FF4z4mNGXe794BjxhwwbqyCumx2G5Kgba BZjTgV/JX5aR0LztCWkDttofFGGpPGRDh34RxjhAL5ac8a82DbvkgWY2hG6jCUT+ld Zh3l0AJwIjcAH7ymezzVabhjcHGebkwEJvtpQWeU/AAay3YJUoRr1zRDAtYAFVPBlx 5C7alsiZntbDpHB3CRKoWcpikSYTyj7RYJ3WZRavmND4RNh9wj5fnvRrzH+BNBCHYW ZAND8adsPKi2Q== Date: Mon, 4 Dec 2023 11:13:17 +0000 From: Jonathan Cameron To: Marek Vasut Cc: Jonathan Cameron , linux-iio@vger.kernel.org, Andy Shevchenko , Matti Vaittinen , Alexander Stein , Andre Werner , Bjorn Helgaas , Conor Dooley , Fabio Estevam , Guenter Roeck , Krzysztof Kozlowski , Lars-Peter Clausen , Luca Ceresoli , Mark Brown , Naresh Solanki , Patrick Rudolph , Rob Herring , Stefan Windfeldt-Prytz , Vincent Tremblay , devicetree@vger.kernel.org Subject: Re: [PATCH v5 2/2] iio: light: isl76682: Add ISL76682 driver Message-ID: <20231204111317.22c679ed@jic23-huawei> In-Reply-To: <00a21ed4-18b5-4aca-8dd6-628d475664e7@denx.de> References: <20231125222738.97875-1-marex@denx.de> <20231125222738.97875-2-marex@denx.de> <20231126181655.4e1040f9@jic23-huawei> <9e73c450-2380-459a-9b41-a1b88f89548c@denx.de> <20231201181721.0000445c@Huawei.com> <00a21ed4-18b5-4aca-8dd6-628d475664e7@denx.de> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 2 Dec 2023 07:48:12 +0100 Marek Vasut wrote: > On 12/1/23 19:17, Jonathan Cameron wrote: > > On Sun, 26 Nov 2023 23:09:36 +0100 > > Marek Vasut wrote: > > > >> On 11/26/23 19:16, Jonathan Cameron wrote: > >>> On Sat, 25 Nov 2023 23:26:23 +0100 > >>> Marek Vasut wrote: > >>> > >>>> The ISL76682 is very basic ALS which only supports ALS or IR mode > >>>> in four ranges, 1k/4k/16k/64k LUX. There is no IRQ support or any > >>>> other fancy functionality. > >>>> > >>>> Reviewed-by: Andy Shevchenko > >>>> Reviewed-by: Matti Vaittinen > >>>> Signed-off-by: Marek Vasut > >>> > >>> Hi Marek, > >>> > >>> One last question + a comment in general. Act on that if you like. > >>> > >>> Thanks, > >>> > >>> Jonathan > >>> > >>> > >>>> +static int integration_time_available[] = { 0, ISL76682_INT_TIME_US }; > >>> > >>> Why have an available attribute for a single value. Is it useful for anything? > >> > >> To report it to userspace, iio-sensor-proxy uses that to control the ALS > >> poll interval . > > > > It should use integration_time, not the associated available attribute. > > So, what should I do with this feedback ? > > I did send the V6 already, so shall I change anything in V7 ? I'll reply there. Just noticed some other oddities around available.