Commit b4c0cab
scsi: ufs: core: Set and clear UIC Completion interrupt as needed
Currently the UIC Completion interrupt is left enabled except for when
issuing link hibernate commands, in which case the interrupt is disabled
and then re-enabled.
Instead, set and clear the interrupt enable bit as needed.
That is slightly simpler and less error prone, but also avoids side
effects of accessing the interrupt enable register after entering link
hibernation. Specifically, for some host controllers like Intel MTL,
doing so disrupts the link state transition.
Note also, the interrupt register is not read back anymore after it is
updated. No other code does that, so it is assumed to be no longer
necessary if it ever was.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20250723165856.145750-7-adrian.hunter@intel.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent c5977c4 commit b4c0cab
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2622 | 2622 | | |
2623 | 2623 | | |
2624 | 2624 | | |
| 2625 | + | |
2625 | 2626 | | |
2626 | 2627 | | |
2627 | 2628 | | |
| |||
2631 | 2632 | | |
2632 | 2633 | | |
2633 | 2634 | | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
2634 | 2639 | | |
2635 | 2640 | | |
2636 | 2641 | | |
| |||
4275 | 4280 | | |
4276 | 4281 | | |
4277 | 4282 | | |
4278 | | - | |
4279 | 4283 | | |
4280 | 4284 | | |
4281 | 4285 | | |
| |||
4286 | 4290 | | |
4287 | 4291 | | |
4288 | 4292 | | |
4289 | | - | |
4290 | | - | |
4291 | | - | |
4292 | | - | |
4293 | | - | |
4294 | | - | |
4295 | | - | |
4296 | | - | |
4297 | | - | |
| 4293 | + | |
4298 | 4294 | | |
4299 | 4295 | | |
4300 | 4296 | | |
| |||
4338 | 4334 | | |
4339 | 4335 | | |
4340 | 4336 | | |
4341 | | - | |
4342 | | - | |
4343 | 4337 | | |
4344 | 4338 | | |
4345 | 4339 | | |
| |||
0 commit comments