Loading drivers/char/diag/diagfwd_mhi.c +5 −1 Original line number Diff line number Diff line Loading @@ -320,6 +320,8 @@ static int __mhi_open(struct diag_mhi_info *mhi_info, int open_flag) static int mhi_open(int id) { int err = 0; if (id < 0 || id >= NUM_MHI_DEV) { pr_err("diag: In %s, invalid index %d\n", __func__, id); return -EINVAL; Loading @@ -330,7 +332,9 @@ static int mhi_open(int id) * explicitly by Diag. Open both the read and write channels (denoted by * OPEN_CHANNELS flag) */ __mhi_open(&diag_mhi[id], OPEN_CHANNELS); err = __mhi_open(&diag_mhi[id], OPEN_CHANNELS); if (err) return err; diag_remote_dev_open(diag_mhi[id].dev_id); queue_work(diag_mhi[id].mhi_wq, &(diag_mhi[id].read_work)); Loading Loading
drivers/char/diag/diagfwd_mhi.c +5 −1 Original line number Diff line number Diff line Loading @@ -320,6 +320,8 @@ static int __mhi_open(struct diag_mhi_info *mhi_info, int open_flag) static int mhi_open(int id) { int err = 0; if (id < 0 || id >= NUM_MHI_DEV) { pr_err("diag: In %s, invalid index %d\n", __func__, id); return -EINVAL; Loading @@ -330,7 +332,9 @@ static int mhi_open(int id) * explicitly by Diag. Open both the read and write channels (denoted by * OPEN_CHANNELS flag) */ __mhi_open(&diag_mhi[id], OPEN_CHANNELS); err = __mhi_open(&diag_mhi[id], OPEN_CHANNELS); if (err) return err; diag_remote_dev_open(diag_mhi[id].dev_id); queue_work(diag_mhi[id].mhi_wq, &(diag_mhi[id].read_work)); Loading