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

Wolfram Sang
2023-09-19T10:20:08Z

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]