#ifdef CONFIG_CHRE_SENSORHUB_HAL
#include "main.h"
#endif
+#include "linux/dropbox.h"
#define NUM_OF_GPR (17)
#define GPR_PC_INDEX (16)
log_flush(ipc->fw_log);
}
+static void dropbox_report_event(struct contexthub_ipc_info *ipc, enum chub_err_type err)
+{
+ char dropbox_msg[256];
+
+ dev_info(ipc->dev, "%s: reporting dropbox\n", __func__);
+ snprintf(dropbox_msg, sizeof(dropbox_msg), "reason: %d", err);
+ dropbox_queue_event_text("chub_issue", dropbox_msg, strlen(dropbox_msg));
+}
void chub_dbg_dump_hw(struct contexthub_ipc_info *ipc, enum chub_err_type reason)
{
nanohub_add_dump_request(ipc->data);
#endif
+ dropbox_report_event(ipc, reason);
+
#ifdef SUPPORT_DUMP_ON_DRIVER
/* dosen't support on android-p */
if (p_dbg_dump) {