Commit a00b799
committed
SoundWire: Allow Prepare command for Simplified_CP_SM
As defined in the MIPI SoundWire specification v1-2 for
Simplified Channel Prepare State Machine (Simplified_CP_SM):
* Figure 141 for the Simplified_CP_SM in the specification
shows the "Ready" state (NF=0, P=1) that can be reached via
"Prepare0 OR Prepare1" transitions.
* Table 115 (Stimulus to the Channel Prepare State Machine)
indicates that Prepare0 and Prepare1 are read-only/"write-ignored"
bits for Simplified_CP_SM.
In TI device implementations, we've found that some devices with
Simplified_CP_SM still benefit from receiving the Prepare command.
This patch modifies the code to:
1. Send the Prepare command to all devices, including those with
Simplified_CP_SM
2. Ignore errors returned by devices with Simplified_CP_SM that
might not support this command
This approach maintains compatibility with all devices while ensuring
proper functionality of dataport operations for devices that can
make use of the Prepare command despite using Simplified_CP_SM.
Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>1 parent 65fd664 commit a00b799
1 file changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
522 | 526 | | |
| 527 | + | |
523 | 528 | | |
524 | 529 | | |
525 | 530 | | |
| |||
538 | 543 | | |
539 | 544 | | |
540 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
541 | 551 | | |
542 | 552 | | |
543 | 553 | | |
| |||
0 commit comments