Skip to content

Commit dd0b4bf

Browse files
committed
soc: apple: rtkit: Add APPLE_RTKIT_PWR_STATE_INIT
This state is needed to wake the dcp IOP after m1n1 shut it down. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 0a7a344 commit dd0b4bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/soc/apple/rtkit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ enum {
1212
APPLE_RTKIT_PWR_STATE_IDLE = 0x201, /* sleeping, retain state */
1313
APPLE_RTKIT_PWR_STATE_QUIESCED = 0x10, /* running but no communication */
1414
APPLE_RTKIT_PWR_STATE_ON = 0x20, /* normal operating state */
15+
APPLE_RTKIT_PWR_STATE_INIT = 0x220, /* init after starting the coproc */
1516
};
1617

1718
enum {
@@ -898,7 +899,7 @@ int apple_rtkit_wake(struct apple_rtkit *rtk)
898899
* Use open-coded apple_rtkit_set_iop_power_state since apple_rtkit_boot
899900
* will wait for the completion anyway.
900901
*/
901-
msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_ON);
902+
msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
902903
ret = apple_rtkit_management_send(rtk, APPLE_RTKIT_MGMT_SET_IOP_PWR_STATE,
903904
msg);
904905
if (ret)

0 commit comments

Comments
 (0)