Commit 8d9da46
mlxsw: pci: Move software reset code to a separate function
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>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent bdf85f3 commit 8d9da46
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
1479 | 1487 | | |
1480 | 1488 | | |
1481 | 1489 | | |
1482 | 1490 | | |
1483 | | - | |
1484 | 1491 | | |
1485 | 1492 | | |
1486 | 1493 | | |
| |||
1491 | 1498 | | |
1492 | 1499 | | |
1493 | 1500 | | |
1494 | | - | |
1495 | | - | |
| 1501 | + | |
1496 | 1502 | | |
1497 | 1503 | | |
1498 | 1504 | | |
| |||
0 commit comments