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 240E033439D for ; Thu, 26 Feb 2026 23:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772149969; cv=none; b=Thw2IpjX2zQBnaVkz6OFBQI1A+bud4yZIliRVuaqTGTYubx1WnHgskBwE1m5Z1o7ZFcASO5yMz+rjkmbUj8q1ih+/nfxOjvf3ABYVTwzttGorfP5CRQrKqICkxU1eV1gdH5jBqYxlsP+J3YGtEsBQkC0adCJSnqB5fIAoR3EkWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772149969; c=relaxed/simple; bh=VTJo0t5q88oKhef3cln3YfSNHwPb9+mxWkjluavwOr4=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=NpSPlCIHRIM7+Kna4xuUg8YjE20o0VNGg+N5iID2bL2YmdNisLCR7ZlDCgcTYTtXLJRvx7mn95mlmvu11xp4hoqp8zatVusEoMSID7zEaycrSOE9QgCXR6RAHtDOF0ImQxstvLEmJAXMeyVaUPmK+dIhaNtL2xYHOxRbrPqqMU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ExAUFnqk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ExAUFnqk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7A2FC116C6; Thu, 26 Feb 2026 23:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1772149969; bh=VTJo0t5q88oKhef3cln3YfSNHwPb9+mxWkjluavwOr4=; h=Subject:To:From:Date:From; b=ExAUFnqkzRa65Zk+WB9cGXvt656Z5375pA8Ow5ASeChSTDXCBxNE6YbReEHmHWxGo QJduOd993393KyVxqfOykwCfv6wiX/w5Z3F6yNH67SOJUX0V2zmHrb8shC12tfV/iL 5V7w+QbV7FeeMqC2qkUDlEA3vv9J9d1wGMzMFxL4= Subject: patch "iio: magnetometer: tlv493d: remove erroneous shift in X-axis data" added to char-misc-linus To: antoniu.miclaus@analog.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org From: Date: Thu, 26 Feb 2026 15:52:35 -0800 Message-ID: <2026022635-anemia-gilled-316a@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: magnetometer: tlv493d: remove erroneous shift in X-axis data 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-linus 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 hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. >From 82ee91d6b15f06b6094eea2c26afe0032fe8e177 Mon Sep 17 00:00:00 2001 From: Antoniu Miclaus Date: Tue, 10 Feb 2026 18:49:50 +0200 Subject: iio: magnetometer: tlv493d: remove erroneous shift in X-axis data TLV493D_BX2_MAG_X_AXIS_LSB is defined as GENMASK(7, 4). FIELD_GET() already right-shifts bits [7:4] to [3:0], so the additional >> 4 discards most of the X-axis low nibble. The Y and Z axes correctly omit this extra shift. Remove it. Fixes: 106511d280c7 ("iio: magnetometer: add support for Infineon TLV493D 3D Magentic sensor") Signed-off-by: Antoniu Miclaus Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/magnetometer/tlv493d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/tlv493d.c b/drivers/iio/magnetometer/tlv493d.c index ec53fd40277b..e5e050af2b74 100644 --- a/drivers/iio/magnetometer/tlv493d.c +++ b/drivers/iio/magnetometer/tlv493d.c @@ -171,7 +171,7 @@ static s16 tlv493d_get_channel_data(u8 *b, enum tlv493d_channels ch) switch (ch) { case TLV493D_AXIS_X: val = FIELD_GET(TLV493D_BX_MAG_X_AXIS_MSB, b[TLV493D_RD_REG_BX]) << 4 | - FIELD_GET(TLV493D_BX2_MAG_X_AXIS_LSB, b[TLV493D_RD_REG_BX2]) >> 4; + FIELD_GET(TLV493D_BX2_MAG_X_AXIS_LSB, b[TLV493D_RD_REG_BX2]); break; case TLV493D_AXIS_Y: val = FIELD_GET(TLV493D_BY_MAG_Y_AXIS_MSB, b[TLV493D_RD_REG_BY]) << 4 | -- 2.53.0