On Wed, 24 Apr 2024 at 19:13, Alexandra Diupina <adiup...@astralinux.ru> wrote: > > Add a type cast and use extract64() instead of extract32() > to avoid integer overflow on addition. Fix bit fields > extraction according to documentation.
The commit message here says we make the handling of the address_extension fields match the documentation, and the version of the fixes to this function in the patch "[PATCH v2 RFC] fix host-endianness bug and prevent overflow" did that, but here we seem to have gone back to not changing the shift amounts. We also need to extract all 16 bits of the address_extension fields, not just 12, according to the datasheet. thanks -- PMM