]> www.infradead.org Git - users/dwmw2/linux.git/commit
octeon_ep: initialise control mbox tasks before using APIs
authorShinas Rasheed <srasheed@marvell.com>
Wed, 6 Dec 2023 13:52:27 +0000 (05:52 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Dec 2023 00:09:07 +0000 (16:09 -0800)
commita1664b991ac12b872be859ca03529c68c72795a2
tree9a7c10c168131329780e6aaa529a57c022913f0f
parentc12296bbecc488623b7d1932080e394d08f3226b
octeon_ep: initialise control mbox tasks before using APIs

Initialise various workqueue tasks and queue interrupt poll task
before the first invocation of any control net APIs. Since
octep_ctrl_net_get_info was called before the control net receive
work task was initialised or even the interrupt poll task was
queued, the function call wasn't returning actual firmware
info queried from Octeon.

Fixes: 8d6198a14e2b ("octeon_ep: support to fetch firmware info")
Signed-off-by: Shinas Rasheed <srasheed@marvell.com>
Reviewed-by: Michal Schmidt <mschmidt@redhat.com>
Link: https://lore.kernel.org/r/20231206135228.2591659-1-srasheed@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeon_ep/octep_main.c