[PATCH 3/4] i2c: pasemi: Enable the unjam machine

2025-02-22 Thread Sven Peter via B4 Relay
From: Hector Martin The I2C bus can get stuck under some conditions (desync between controller and device). The pasemi controllers include an unjam feature that is enabled on reset, but was being disabled by the driver. Keep it enabled by explicitly setting the UJM bit in the CTL register. This s

[PATCH 4/4] i2c: pasemi: Log bus reset causes

2025-02-22 Thread Sven Peter via B4 Relay
From: Hector Martin This ensures we get all information we need to debug issues when users forward us their logs. Signed-off-by: Hector Martin Signed-off-by: Sven Peter --- drivers/i2c/busses/i2c-pasemi-core.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/

[PATCH 0/4] Apple/PASemi i2c error recovery fixes

2025-02-22 Thread Sven Peter via B4 Relay
Hi, This series adds a few fixes/improvements to the error recovery for Apple/PASemi i2c controllers. The patches have been in our downstream tree and were originally used to debug a rare glitch caused by clock strechting but are useful in general. We haven't seen the controller misbehave since ad

[PATCH 1/4] i2c: pasemi: Add registers bits and switch to BIT()

2025-02-22 Thread Sven Peter via B4 Relay
From: Sven Peter Add the missing register bits to the defines and also switch those to use the BIT macro which is much more readable than using hardcoded masks Co-developed-by: Hector Martin Signed-off-by: Hector Martin Signed-off-by: Sven Peter --- drivers/i2c/busses/i2c-pasemi-core.c | 40

[PATCH 2/4] i2c: pasemi: Improve error recovery

2025-02-22 Thread Sven Peter via B4 Relay
From: Hector Martin The hardware (supposedly) has a 25ms timeout for clock stretching and the driver uses 100ms which should be plenty. The error reocvery itself is however lacking. Add handling for all the missing error condition, and better recovery in pasemi_smb_clear(). Also move the timeout

Re: [PATCH v3 10/18] LoongArch: vDSO: Switch to generic storage implementation

2025-02-22 Thread Xi Ruoyao
On Tue, 2025-02-04 at 13:05 +0100, Thomas Weißschuh wrote: > The generic storage implementation provides the same features as the > custom one. However it can be shared between architectures, making > maintenance easier. > > Co-developed-by: Nam Cao > Signed-off-by: Nam Cao > Signed-off-by: Thom

Re: [PATCH v3 09/18] riscv: vdso: Switch to generic storage implementation

2025-02-22 Thread Thomas Gleixner
On Sat, Feb 22 2025 at 16:17, Xi Ruoyao wrote: > On Tue, 2025-02-04 at 13:05 +0100, Thomas Weißschuh wrote: >> The generic storage implementation provides the same features as the >> custom one. However it can be shared between architectures, making >> maintenance easier. >> >> Co-developed-by: Na

Re: [PATCH v3 09/18] riscv: vdso: Switch to generic storage implementation

2025-02-22 Thread Xi Ruoyao
On Tue, 2025-02-04 at 13:05 +0100, Thomas Weißschuh wrote: > The generic storage implementation provides the same features as the > custom one. However it can be shared between architectures, making > maintenance easier. > > Co-developed-by: Nam Cao > Signed-off-by: Nam Cao > Signed-off-by: Thom