Commit 37f3d75
committed
soundwire: stream: restore bus_params of each bus
Restore_params restores bus->params and bus->bpt_hstop from single
backups that are overwritten in the first master_list loop. If failure
happens later (e.g. do_bank_switch() or port prepare in the second
loop), the current bus may not match the saved snapshot, so multi-link
streams can restore the wrong state into the wrong bus and leave other
buses partially reconfigured.
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>1 parent 0388134 commit 37f3d75
1 file changed
Lines changed: 39 additions & 4 deletions
| 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 | + | |
| 1491 | + | |
| 1492 | + | |
1485 | 1493 | | |
1486 | 1494 | | |
1487 | 1495 | | |
1488 | 1496 | | |
1489 | | - | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1490 | 1507 | | |
1491 | 1508 | | |
1492 | 1509 | | |
1493 | 1510 | | |
1494 | | - | |
| 1511 | + | |
| 1512 | + | |
1495 | 1513 | | |
1496 | 1514 | | |
1497 | 1515 | | |
| |||
1539 | 1557 | | |
1540 | 1558 | | |
1541 | 1559 | | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1542 | 1566 | | |
1543 | 1567 | | |
1544 | 1568 | | |
1545 | | - | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1546 | 1581 | | |
1547 | 1582 | | |
1548 | 1583 | | |
| |||
0 commit comments