]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
qca_spi: Make interrupt remembering atomic
authorStefan Wahren <wahrenst@gmx.net>
Fri, 14 Jun 2024 14:50:30 +0000 (16:50 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:16 +0000 (16:27 +0200)
commitfaa7ae6b6645c2f1766285c3c363050a7ad0c22b
tree941f80d4aac25ba5860257b84fdd5e715492d49f
parentcd2afde340d9f29b27fd868303b08813af80fab9
qca_spi: Make interrupt remembering atomic

BugLink: https://bugs.launchpad.net/bugs/2075154
[ Upstream commit 2d7198278ece01818cd95a3beffbdf8b2a353fa0 ]

The whole mechanism to remember occurred SPI interrupts is not atomic,
which could lead to unexpected behavior. So fix this by using atomic bit
operations instead.

Fixes: 291ab06ecf67 ("net: qualcomm: new Ethernet over SPI driver for QCA7000")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20240614145030.7781-1-wahrenst@gmx.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/qualcomm/qca_debug.c
drivers/net/ethernet/qualcomm/qca_spi.c
drivers/net/ethernet/qualcomm/qca_spi.h