Re: [PATCH net-next 5/6] mlxsw: pci: Move software reset code to a separate function

Simon Horman
2023-03-26T14:03:31Z

On Wed, Mar 22, 2023 at 05:49:34PM +0100, Petr Machata wrote:
> From: Amit Cohen <amcohen@nvidia.com>
>
> In general, the existing flow of software reset in the driver is:
> 1. Wait for system ready status.
> 2. Send MRSR command, to start the reset.
> 3. Wait for system ready status.
>
> This flow will be extended once a new reset command is supported. As a
> preparation, move step #2 to a separate function.
>
> Signed-off-by: Amit Cohen <amcohen@nvidia.com>
> Reviewed-by: Petr Machata <petrm@nvidia.com>
> Reviewed-by: Ido Schimmel <idosch@nvidia.com>
> Signed-off-by: Petr Machata <petrm@nvidia.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>