static void diag_smd_notify(void *ctxt, unsigned event)
{
	/*printk(KERN_INFO "%s:\n", __func__);*/
	switch (diag_smd_function_mode) {
#ifdef CONFIG_BTPORT
	case SMD_FUNC_OPEN_BT:
				/*BT DUN funciton*/
				DIAGFWD_INFO("%s:bt check me\n", __func__);
				bt_smd_diag_notify(ctxt, event);
				break;
#endif
	case SMD_FUNC_OPEN_DIAG:
				queue_work(driver->diag_wq, &(driver->diag_read_smd_work));
				break;
	case SMD_FUNC_CLOSE:
	default:
				DIAGFWD_INFO("%s:diag smd is closed \n", __func__);
				break;
	}

}
Exemple #2
0
static void diag_smd_notify(void *ctxt, unsigned event)
{
	if (diag7k_debug_mask)
		DIAG_INFO("%s event=%d(1:read 2:write) buf:%d:%d\n", __func__, event, driver->in_busy_1, driver->in_busy_2);
	switch (diag_smd_function_mode) {
#ifdef CONFIG_BTPORT
	case SMD_FUNC_OPEN_BT:
				/*BT DUN funciton*/
				DIAGFWD_INFO("%s:bt check me\n", __func__);
				bt_smd_diag_notify(ctxt, event);
				break;
#endif
	case SMD_FUNC_OPEN_DIAG:
				queue_work(driver->diag_wq, &(driver->diag_read_smd_work));
				wake_lock_timeout(&driver->wake_lock, HZ / 2);
				break;
	case SMD_FUNC_CLOSE:
	default:
				DIAGFWD_INFO("%s:diag smd is closed \n", __func__);
				break;
	}

}