]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: Fix sleep in atomic context when updating MAC table
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Tue, 25 Jan 2022 11:48:16 +0000 (12:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jan 2022 15:45:49 +0000 (15:45 +0000)
commit75853f8ef07ad77363c8d6f96af3806a6ba0d524
tree65c03dbb4b1a1c317c6f5d479dd8c90608962958
parent30be524b0004c32fa5444d4f2feb00fcb1d4da2e
net: lan966x: Fix sleep in atomic context when updating MAC table

The function lan966x_mac_wait_for_completion is used to poll the status
of the MAC table using the function readx_poll_timeout. The problem with
this function is that is called also from atomic context. Therefore
update the function to use readx_poll_timeout_atomic.

Fixes: 178db1b95c6dac ("net: lan966x: add mactable support")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_mac.c