Re: [PATCH v2] i2c: designware: Fix corrupted memory seen in the ISR

From: Wolfram Sang
Date: Tue Sep 19 2023 - 06:20:11 EST



> I also agree that a wmb() in the i2c driver is not the more elegant fix.
> For similar reasons, we hid barriers in the write*() macros, drivers
> need to stay architecture-agnostic as much as possible.

Exactly my thinking. I wanted to read this patch discussion later this
week. But from glimpsing at it so far, I already wondered why there
isn't a memory barrier in the final accessor to the register.

Attachment: signature.asc
Description: PGP signature