Commit 98132d8
scsi: pm8001: Set up tags before using them
The current code is buggy in that the tags are set up after they are needed
in pm80xx_chip_init() -> pm80xx_set_sas_protocol_timer_config(). The tag
depth is earlier read in pm80xx_chip_init() -> read_main_config_table().
Add a post init callback to do the pm80xx work which needs to be done after
reading the tags. I don't see a better way to do this.
Link: https://lore.kernel.org/r/1654879602-33497-3-git-send-email-john.garry@huawei.com
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 35a7e9d commit 98132d8
File tree
4 files changed
+24
-11
lines changed- drivers/scsi/pm8001
4 files changed
+24
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
702 | 706 | | |
703 | 707 | | |
704 | 708 | | |
| |||
4947 | 4951 | | |
4948 | 4952 | | |
4949 | 4953 | | |
| 4954 | + | |
4950 | 4955 | | |
4951 | 4956 | | |
4952 | 4957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | | - | |
| 1122 | + | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
| 1126 | + | |
| 1127 | + | |
1126 | 1128 | | |
1127 | 1129 | | |
1128 | 1130 | | |
| |||
1172 | 1174 | | |
1173 | 1175 | | |
1174 | 1176 | | |
1175 | | - | |
1176 | | - | |
1177 | 1177 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
| 1178 | + | |
1181 | 1179 | | |
1182 | | - | |
| 1180 | + | |
| 1181 | + | |
1183 | 1182 | | |
1184 | 1183 | | |
| 1184 | + | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
| 1207 | + | |
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1472 | 1477 | | |
1473 | | - | |
| 1478 | + | |
1474 | 1479 | | |
1475 | 1480 | | |
1476 | 1481 | | |
| 1482 | + | |
| 1483 | + | |
1477 | 1484 | | |
1478 | 1485 | | |
1479 | 1486 | | |
| |||
1485 | 1492 | | |
1486 | 1493 | | |
1487 | 1494 | | |
1488 | | - | |
1489 | 1495 | | |
1490 | 1496 | | |
1491 | 1497 | | |
| |||
5007 | 5013 | | |
5008 | 5014 | | |
5009 | 5015 | | |
| 5016 | + | |
5010 | 5017 | | |
5011 | 5018 | | |
5012 | 5019 | | |
| |||
0 commit comments