[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <xvercm2x7t7pnlkjlfouobjgotnsona55z7uxwzmbjia64boe4@g4pvesirt5im>
Date: Mon, 30 Dec 2024 03:03:13 +0100
From: Andi Shyti <andi.shyti@...nel.org>
To: Atharva Tiwari <evepolonium@...il.com>
Cc: Jean Delvare <jdelvare@...e.com>, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: amd756: Fix endianness handling for word data
Hi Atharva,
On Fri, Dec 27, 2024 at 06:52:49PM +0530, Atharva Tiwari wrote:
> Ensure correct handling of "endianness"
> for word-sized data in amd756_access
>
> - Convert word data into little-endian using cpu_to_le16
> - Convert word data from little-endian
> to cpu native format using le16_to_cpu
>
> This fixes poteential issues on big-endian systems and
> ensure proper byte ordering for SMBus word transacitions
>
> Signed-off-by: Atharva Tiwari <evepolonium@...il.com>
merged to i2c/i2c-host.
Thanks,
Andi
Powered by blists - more mailing lists