Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2C73024A078 for ; Sun, 14 Jun 2026 06:05:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781417122; cv=none; b=oRgZzxyZkwfdv20+9Gmnqxoc7QvgnENrJplWApWQQ8P6Row7VhigONi+4C7jFRC8vvLtF0yljDlDHTbRTChXhnT2gJzwV7x+HYAQ8KXYL/EVvRFURSMHhZne8Z1OJekEaBhqF7b2Phpaprpti438eLNzx0+eGJ4vIJ0cxAUFgJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781417122; c=relaxed/simple; bh=WRBtc3DG3tBD2BeX0YvPg6qJeEBck/4kuhgafEYTqkI=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=BRqHacLimpQ8bcjhnUwMBC+TloFKxvzb4E7EON0tFybyHnkBsB3vGXcrYM05+Ve2OdZVWi+izfy02skn1qU8dsUWoNScCJ9TKVHOdxsol8oXY+7Nt6Qe8kwcy87PPjk6jXaheVHFp/oysJs0qf5KVYZDv6wPVDJrcdhCjEab7ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VRjPrKcm; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VRjPrKcm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33B871F000E9; Sun, 14 Jun 2026 06:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781417120; bh=BIEUjk39cXeks7GNqQu1Q7Hd3wY7xIvgvfg5wREZI5k=; h=Subject:To:From:Date; b=VRjPrKcm4mHGhd3dISlN0bYEB87EnTQrA3SMxWrhUFZTMTaTfkKdJ+0Vx3zmRpmxW WfzBZYZqBNv6+fjYBeEX+HfiM1KOXS7d3qnVRJDozr1wuptkSfsJV2MFkaejIKZkfq mFZciK5H7jM6wbh9OTvEmyFKi9N8jCMWbdY0efSQ= Subject: patch "iio: light: al3010: read both ALS ADC registers again" added to char-misc-next To: grandmaster@al2klimov.de,Stable@vger.kernel.org,jic23@kernel.org From: Date: Sun, 14 Jun 2026 08:03:37 +0200 Message-ID: <2026061436-power-scarcity-f5e0@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit This is a note to let you know that I've just added the patch titled iio: light: al3010: read both ALS ADC registers again to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. From ee78fae068f52a5582aaf448d9414f826855c106 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Sat, 23 May 2026 13:44:57 +0200 Subject: iio: light: al3010: read both ALS ADC registers again al3010_read_raw() used to read two adjacent registers until the driver was modernized using the regmap framework. That cleanup accidentally replaced the 16-bit word read with a single byte read. I'm reverting latter. Fixes: 0e5e21e23dd6 ("iio: light: al3010: Implement regmap support") Signed-off-by: Alexander A. Klimov Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/light/al3010.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/al3010.c b/drivers/iio/light/al3010.c index 0932fa2b49fa..6af7b5f14a31 100644 --- a/drivers/iio/light/al3010.c +++ b/drivers/iio/light/al3010.c @@ -111,7 +111,8 @@ static int al3010_read_raw(struct iio_dev *indio_dev, int *val2, long mask) { struct al3010_data *data = iio_priv(indio_dev); - int ret, gain, raw; + int ret, gain; + __le16 raw; switch (mask) { case IIO_CHAN_INFO_RAW: @@ -120,11 +121,12 @@ static int al3010_read_raw(struct iio_dev *indio_dev, * - low byte of output is stored at AL3010_REG_DATA_LOW * - high byte of output is stored at AL3010_REG_DATA_LOW + 1 */ - ret = regmap_read(data->regmap, AL3010_REG_DATA_LOW, &raw); + ret = regmap_bulk_read(data->regmap, AL3010_REG_DATA_LOW, + &raw, sizeof(raw)); if (ret) return ret; - *val = raw; + *val = le16_to_cpu(raw); return IIO_VAL_INT; case IIO_CHAN_INFO_SCALE: -- 2.54.0