Loading drivers/char/diag/diag_mux.c +3 −1 Original line number Diff line number Diff line /* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -192,6 +192,8 @@ int diag_mux_switch_logging(int *req_mode, int *peripheral_mask) new_mask = ~(*peripheral_mask) & diag_mux->mux_mask; if (new_mask != DIAG_CON_NONE) *req_mode = DIAG_MULTI_MODE; if (new_mask == DIAG_CON_ALL) *req_mode = DIAG_MEMORY_DEVICE_MODE; break; case DIAG_MEMORY_DEVICE_MODE: new_mask = (*peripheral_mask) | diag_mux->mux_mask; Loading drivers/char/diag/diagfwd.c +4 −1 Original line number Diff line number Diff line Loading @@ -938,8 +938,11 @@ int diag_process_apps_pkt(unsigned char *buf, int len, int pid) } else { mutex_unlock(&driver->md_session_lock); if (MD_PERIPHERAL_MASK(reg_item->proc) & driver->logging_mask) driver->logging_mask) { mutex_unlock(&driver->cmd_reg_mutex); diag_send_error_rsp(buf, len); return write_len; } else write_len = diag_send_data(reg_item, buf, len); } Loading Loading
drivers/char/diag/diag_mux.c +3 −1 Original line number Diff line number Diff line /* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -192,6 +192,8 @@ int diag_mux_switch_logging(int *req_mode, int *peripheral_mask) new_mask = ~(*peripheral_mask) & diag_mux->mux_mask; if (new_mask != DIAG_CON_NONE) *req_mode = DIAG_MULTI_MODE; if (new_mask == DIAG_CON_ALL) *req_mode = DIAG_MEMORY_DEVICE_MODE; break; case DIAG_MEMORY_DEVICE_MODE: new_mask = (*peripheral_mask) | diag_mux->mux_mask; Loading
drivers/char/diag/diagfwd.c +4 −1 Original line number Diff line number Diff line Loading @@ -938,8 +938,11 @@ int diag_process_apps_pkt(unsigned char *buf, int len, int pid) } else { mutex_unlock(&driver->md_session_lock); if (MD_PERIPHERAL_MASK(reg_item->proc) & driver->logging_mask) driver->logging_mask) { mutex_unlock(&driver->cmd_reg_mutex); diag_send_error_rsp(buf, len); return write_len; } else write_len = diag_send_data(reg_item, buf, len); } Loading