[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9be8369c-4e23-4fa0-bc26-b236de669c8c@t-8ch.de>
Date: Fri, 15 Dec 2023 17:20:32 +0100
From: Thomas Weißschuh <thomas@...ch.de>
To: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
Cc: jikos@...nel.org, jic23@...nel.org, lars@...afoo.de,
Basavaraj.Natikar@....com, linux-input@...r.kernel.org, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH] iio: light: hid-sensor-als: Avoid failure for
chromaticity support
On 2023-12-15 08:01:59-0800, Srinivas Pandruvada wrote:
> With the commit ee3710f39f9d ("iio: hid-sensor-als: Add light chromaticity
> support"), there is an assumption that the every HID ALS descriptor has
> support of usage ids for chromaticity support. If they are not present,
> probe fails for the driver . This breaks ALS functionality on majority of
> platforms.
>
> It is possible that chromaticity usage ids are not present. When not
> present, restrict number of IIO channels to not include support for
> chromaticity and continue.
>
> Fixes: ee3710f39f9d ("iio: hid-sensor-als: Add light chromaticity support")
> Reported-by: Thomas Weißschuh <thomas@...ch.de>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218223
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
> Cc: stable@...r.kernel.org
> ---
> drivers/iio/light/hid-sensor-als.c | 24 ++++++++++++++++--------
> 1 file changed, 16 insertions(+), 8 deletions(-)
Thanks!
Tested-by: Thomas Weißschuh <linux@...ssschuh.net> # on Framework 13 AMD
Powered by blists - more mailing lists