Commit a11c015
scsi: ufs: core: Move code out of ufshcd_wait_for_dev_cmd()
The ufshcd_dev_cmd_completion() call is useful for some but not for all
ufshcd_wait_for_dev_cmd() callers. Hence, remove the
ufshcd_dev_cmd_completion() call from ufshcd_wait_for_dev_cmd() and move
it past the ufshcd_issue_dev_cmd() calls where appropriate. This makes
it easier to detect timeout errors for UPIU frames submitted through the
BSG interface.
Reviewed-by: Avri Altman <avri.altman@sandisk.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251031204029.2883185-28-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 4b6c0d9 commit a11c015
1 file changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3265 | 3265 | | |
3266 | 3266 | | |
3267 | 3267 | | |
3268 | | - | |
3269 | | - | |
3270 | 3268 | | |
3271 | 3269 | | |
3272 | 3270 | | |
| |||
3376 | 3374 | | |
3377 | 3375 | | |
3378 | 3376 | | |
| 3377 | + | |
3379 | 3378 | | |
3380 | 3379 | | |
3381 | 3380 | | |
| |||
3385 | 3384 | | |
3386 | 3385 | | |
3387 | 3386 | | |
3388 | | - | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
3389 | 3392 | | |
3390 | 3393 | | |
3391 | 3394 | | |
| |||
7412 | 7415 | | |
7413 | 7416 | | |
7414 | 7417 | | |
7415 | | - | |
7416 | | - | |
7417 | | - | |
7418 | | - | |
7419 | | - | |
7420 | | - | |
| 7418 | + | |
| 7419 | + | |
| 7420 | + | |
7421 | 7421 | | |
7422 | 7422 | | |
7423 | 7423 | | |
| |||
7563 | 7563 | | |
7564 | 7564 | | |
7565 | 7565 | | |
| 7566 | + | |
| 7567 | + | |
7566 | 7568 | | |
| 7569 | + | |
7567 | 7570 | | |
7568 | 7571 | | |
7569 | 7572 | | |
| |||
0 commit comments