Skip to content

Commit 4e0d8e4

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 c0ed459 commit 4e0d8e4

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 {
@@ -975,7 +976,7 @@ int apple_rtkit_wake(struct apple_rtkit *rtk)
975976
* Use open-coded apple_rtkit_set_iop_power_state since apple_rtkit_boot
976977
* will wait for the completion anyway.
977978
*/
978-
msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_ON);
979+
msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
979980
ret = apple_rtkit_management_send(rtk, APPLE_RTKIT_MGMT_SET_IOP_PWR_STATE,
980981
msg);
981982
if (ret)

0 commit comments

Comments
 (0)