Skip to content

Commit 89d7c30

Browse files
hoshinolinajannau
authored andcommitted
soc: apple: rtkit: Log failure to send messages
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 9464d8a commit 89d7c30

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

drivers/soc/apple/rtkit.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,18 @@ int apple_rtkit_send_message(struct apple_rtkit *rtk, u8 ep, u64 message,
596596
.msg1 = ep,
597597
};
598598

599-
if (rtk->crashed)
599+
if (rtk->crashed) {
600+
dev_warn(rtk->dev,
601+
"RTKit: Device is crashed, cannot send message\n");
600602
return -EINVAL;
603+
}
604+
601605
if (ep >= APPLE_RTKIT_APP_ENDPOINT_START &&
602-
!apple_rtkit_is_running(rtk))
606+
!apple_rtkit_is_running(rtk)) {
607+
dev_warn(rtk->dev,
608+
"RTKit: Endpoint 0x%02x is not running, cannot send message\n", ep);
603609
return -EINVAL;
610+
}
604611

605612
/*
606613
* The message will be sent with a MMIO write. We need the barrier

0 commit comments

Comments
 (0)