Commit f4750af
scsi: ufs: core: Initialize hba->reserved_slot earlier
Move the hba->reserved_slot and the host->can_queue assignments from
ufshcd_config_mcq() into ufshcd_alloc_mcq(). The advantages of this change
are as follows:
- It becomes easier to verify that these two parameters are updated if
hba->nutrs is updated.
- It prevents unnecessary assignments to these two parameters. While
ufshcd_config_mcq() is called during host reset, ufshcd_alloc_mcq() is
not.
Cc: Can Guo <[email protected]>
Reviewed-by: Peter Wang <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>1 parent b53eb9a commit f4750af
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8678 | 8678 | | |
8679 | 8679 | | |
8680 | 8680 | | |
| 8681 | + | |
| 8682 | + | |
| 8683 | + | |
8681 | 8684 | | |
8682 | 8685 | | |
8683 | 8686 | | |
| |||
8699 | 8702 | | |
8700 | 8703 | | |
8701 | 8704 | | |
8702 | | - | |
8703 | | - | |
8704 | | - | |
8705 | 8705 | | |
8706 | 8706 | | |
8707 | 8707 | | |
| |||
0 commit comments