Messages in this thread | | | Date | Tue, 19 Sep 2023 12:19:59 +0200 | From | Wolfram Sang <> | Subject | Re: [PATCH v2] i2c: designware: Fix corrupted memory seen in the ISR |
| |
> 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.
[unhandled content-type:application/pgp-signature]
| |