mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
muc_uart: add muc debug msg
Add message type for debug messages from the muc. Print the payload to dmesg when it arrives. Change-Id: I133609c9ff678ed385ab8ff773648a635a24c178 Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1302761 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
ca50551fda
commit
12d1da775c
2 changed files with 10 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ struct mmi_uart_pb_hdr_t {
|
|||
#define BOOT_MODE 0x0007
|
||||
#define MUC_FW_VERSION 0x0008
|
||||
#define MUC_SET_GPIO 0x0009
|
||||
#define MUC_DEBUG_MSG 0x0010
|
||||
|
||||
/* MUC gpios */
|
||||
#define MUC_GPIO_1 35
|
||||
|
|
|
|||
|
|
@ -1164,6 +1164,15 @@ static void muc_uart_handle_message(struct mod_muc_data_t *mm_data,
|
|||
muc_uart_send(mm_data, hdr->cmd|MSG_ACK_MASK, NULL, 0);
|
||||
break;
|
||||
}
|
||||
case MUC_DEBUG_MSG: {
|
||||
if (payload_len) {
|
||||
/* Ensure null terminated */
|
||||
payload[payload_len - 1] = '\0';
|
||||
MUC_LOG("muc_dbg_msg: %s\n", (char *)payload);
|
||||
}
|
||||
muc_uart_send(mm_data, hdr->cmd|MSG_ACK_MASK, NULL, 0);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (hdr->cmd & MSG_ACK_MASK)
|
||||
clear_wait_for_ack(mm_data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue