Re: [PATCH v3] i2c: ls2x: Fix frequency division register access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Binbin,

On Thu, Feb 20, 2025 at 08:56:12PM +0800, Binbin Zhou wrote:
> According to the chip manual, the I2C register access type of
> Loongson-2K2000/LS7A is "B", so we can only access registers in byte
> form (readb()/writeb()).
> 
> Although Loongson-2K0500/Loongson-2K1000 do not have similar
> constraints, register accesses in byte form also behave correctly.
> 
> Also, in hardware, the frequency division registers are defined as two
> separate registers (high 8-bit and low 8-bit), so we just access them
> directly as bytes.
> 
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 015e61f0bffd ("i2c: ls2x: Add driver for Loongson-2K/LS7A I2C controller")
> Co-developed-by: Hongliang Wang <wanghongliang@xxxxxxxxxxx>
> Signed-off-by: Hongliang Wang <wanghongliang@xxxxxxxxxxx>
> Signed-off-by: Binbin Zhou <zhoubinbin@xxxxxxxxxxx>
> Reviewed-by: Andy Shevchenko <andy@xxxxxxxxxx>

merged to i2c/i2c-host-fixes.

Thanks Andy for the review!

Andi




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux