Commit 0487fff
scsi: ufs: Fix regulator load and icc-level configuration
Currently if a regulator has "<name>-fixed-regulator" property in device
tree, it will skip current limit initialization. This lead to a zero
"max_uA" value in struct ufs_vreg.
However, "regulator_set_load" operation shall be required on regulators
which have valid current limits, otherwise a zero "max_uA" set by
"regulator_set_load" may cause unexpected behavior when this regulator is
enabled or set as high power mode.
Similarly, in device's icc_level configuration flow, the target icc_level
shall be updated if regulator also has valid current limit, otherwise a
wrong icc_level will be calculated by zero "max_uA" and thus causes
unexpected results after it is written to device.
Signed-off-by: Stanley Chu <[email protected]>
Reviewed-by: Avri Altman <[email protected]>
Acked-by: Alim Akhtar <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 3b141e8 commit 0487fff
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6294 | 6294 | | |
6295 | 6295 | | |
6296 | 6296 | | |
6297 | | - | |
| 6297 | + | |
6298 | 6298 | | |
6299 | 6299 | | |
6300 | 6300 | | |
6301 | 6301 | | |
6302 | 6302 | | |
6303 | | - | |
| 6303 | + | |
6304 | 6304 | | |
6305 | 6305 | | |
6306 | 6306 | | |
6307 | 6307 | | |
6308 | 6308 | | |
6309 | | - | |
| 6309 | + | |
6310 | 6310 | | |
6311 | 6311 | | |
6312 | 6312 | | |
| |||
7004 | 7004 | | |
7005 | 7005 | | |
7006 | 7006 | | |
| 7007 | + | |
| 7008 | + | |
| 7009 | + | |
| 7010 | + | |
| 7011 | + | |
| 7012 | + | |
| 7013 | + | |
| 7014 | + | |
| 7015 | + | |
7007 | 7016 | | |
7008 | 7017 | | |
7009 | 7018 | | |
| |||
0 commit comments