Re: [PATCH net v3] octeon_ep: initialise control mbox tasks before using APIs

From: Michal Schmidt
Date: Wed Dec 06 2023 - 08:56:10 EST


On Wed, Dec 6, 2023 at 2:52 PM Shinas Rasheed <srasheed@xxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxx>
> ---
> V3:
> - Included Fixes line in commit log.
> - Corrected typo in print statement.
>
> V2: https://lore.kernel.org/all/20231205130625.2586755-1-srasheed@xxxxxxxxxxx/
> - Updated changelog.
> - Handled error return for octep_ctrl_net_get_info
>
> V1: https://lore.kernel.org/all/20231202150807.2571103-1-srasheed@xxxxxxxxxxx/
>
> .../ethernet/marvell/octeon_ep/octep_main.c | 22 +++++++++++--------
> 1 file changed, 13 insertions(+), 9 deletions(-)

Good timing. I was just going to write to you about the typo :)
Looks good now.

Reviewed-by: Michal Schmidt <mschmidt@xxxxxxxxxx>