Commit 5a0be1b
authored
Fix restore_params to restore all buses in multi-link streams
The restore_params block in _sdw_prepare_stream() was restoring only
the last bus iterated when an error occurred. For multi-link streams
with multiple buses, this left other buses in a partially reconfigured
state.
Fix this by:
1. Adding bpt_hstop to sdw_bus to track the BPT stream hstop value.
2. Adding saved_params and saved_bpt_hstop to sdw_master_runtime to
store per-bus backup state.
3. Pre-saving all buses' params and bpt_hstop before the modify loop.
4. Restoring all buses from their per-bus saved state in restore_params.
Addresses review comment: #5604 (comment)1 parent 4a65266 commit 5a0be1b
3 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
1482 | | - | |
1483 | 1482 | | |
1484 | 1483 | | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
1485 | 1491 | | |
1486 | 1492 | | |
1487 | 1493 | | |
1488 | 1494 | | |
1489 | | - | |
1490 | 1495 | | |
1491 | 1496 | | |
1492 | 1497 | | |
| |||
1542 | 1547 | | |
1543 | 1548 | | |
1544 | 1549 | | |
1545 | | - | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
1546 | 1555 | | |
1547 | 1556 | | |
1548 | 1557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
1006 | 1007 | | |
1007 | 1008 | | |
1008 | 1009 | | |
| |||
1043 | 1044 | | |
1044 | 1045 | | |
1045 | 1046 | | |
| 1047 | + | |
1046 | 1048 | | |
1047 | 1049 | | |
1048 | 1050 | | |
| |||
0 commit comments