]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/qm - move the barrier before writing to the mailbox register
authorChenghai Huang <huangchenghai2@huawei.com>
Sat, 17 Jan 2026 10:18:03 +0000 (18:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 31 Jan 2026 02:52:31 +0000 (10:52 +0800)
commitebf35d8f9368816c930f5d70783a72716fab5e19
treee588d044a071ed87bc074c1e28396d34aa000b26
parent3d3135057ff567d5c09fff4c9ef6391a684e8042
crypto: hisilicon/qm - move the barrier before writing to the mailbox register

Before sending the data via the mailbox to the hardware, to ensure
that the data accessed by the hardware is the most up-to-date,
a write barrier should be added before writing to the mailbox register.
The current memory barrier is placed after writing to the register,
the barrier order should be modified to be before writing to the register.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c