Skip to content

Commit 749d90f

Browse files
jannaumarcan
authored andcommitted
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 339d10d commit 749d90f

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 {
@@ -963,7 +964,7 @@ int apple_rtkit_wake(struct apple_rtkit *rtk)
963964
* Use open-coded apple_rtkit_set_iop_power_state since apple_rtkit_boot
964965
* will wait for the completion anyway.
965966
*/
966-
msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_ON);
967+
msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
967968
ret = apple_rtkit_management_send(rtk, APPLE_RTKIT_MGMT_SET_IOP_PWR_STATE,
968969
msg);
969970
if (ret)

0 commit comments

Comments
 (0)