Re: [PATCH 1/3] net: marvell: prestera: fix driver reload

From: Köry Maincent
Date: Tue Mar 12 2024 - 11:27:19 EST


On Mon, 11 Mar 2024 15:51:10 +0200
Elad Nachman <enachman@xxxxxxxxxxx> wrote:

> From: Elad Nachman <enachman@xxxxxxxxxxx>
>
> Driver rmmod after insmod would fail because of
> the following issues:
>
> 1. API call to reset the switch HW and restart the
> firmware CPU firmware code loading was missing in
> driver removal code handler.
> 2. Timeout waiting for the firmware CPU firmware
> loader code to start was too small.
>
> Fix by adding API call to reset the switch HW and
> restart the firmware CPU firmware code loading when
> handling the driver removal procedure,
> increase the timeout waiting for this restart operation
> from 5 to 30 seconds.

Tested-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>

--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com