Commit f29ec85
scsi: ufs: host: mediatek: Return error directly on idle wait timeout
Optimize the recovery flow by returning an error code immediately if a
wait idle timeout occurs, rather than waiting for the link to reach the
up state. Shorten the recovery process and improve error handling
efficiency when idle state transitions fail.
Signed-off-by: Sanjeev Y <sanjeev.y@mediatek.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent f5ca8d0 commit f29ec85
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
457 | 461 | | |
458 | 462 | | |
459 | 463 | | |
| |||
1437 | 1441 | | |
1438 | 1442 | | |
1439 | 1443 | | |
1440 | | - | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
1441 | 1447 | | |
1442 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
1443 | 1451 | | |
1444 | 1452 | | |
1445 | 1453 | | |
| |||
1614 | 1622 | | |
1615 | 1623 | | |
1616 | 1624 | | |
1617 | | - | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
1618 | 1630 | | |
1619 | 1631 | | |
1620 | 1632 | | |
| |||
0 commit comments