Loading drivers/esoc/esoc-mdm-4x.c +8 −3 Original line number Diff line number Diff line /* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, 2017-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 @@ -230,10 +230,15 @@ static int mdm_cmd_exe(enum esoc_cmd cmd, struct esoc_clink *esoc) } msleep(100); } if (status_down) if (status_down) { dev_dbg(dev, "shutdown successful\n"); else esoc_clink_queue_request(ESOC_REQ_SHUTDOWN, esoc); } else { dev_err(mdm->dev, "graceful poff ipc fail\n"); graceful_shutdown = false; goto force_poff; } break; force_poff: case ESOC_FORCE_PWR_OFF: if (!graceful_shutdown) { Loading drivers/esoc/esoc-mdm-pon.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, 2017-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 @@ -55,7 +55,7 @@ static int mdm9x55_toggle_soft_reset(struct mdm_ctrl *mdm, bool atomic) if (!atomic) usleep_range(reset_time_us, reset_time_us + 100000); else mdelay(mdm->reset_time_ms); mdelay(DEF_MDM9X55_RESET_TIME); gpio_direction_output(MDM_GPIO(mdm, AP2MDM_SOFT_RESET), soft_reset_direction_de_assert); return 0; Loading Loading
drivers/esoc/esoc-mdm-4x.c +8 −3 Original line number Diff line number Diff line /* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, 2017-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 @@ -230,10 +230,15 @@ static int mdm_cmd_exe(enum esoc_cmd cmd, struct esoc_clink *esoc) } msleep(100); } if (status_down) if (status_down) { dev_dbg(dev, "shutdown successful\n"); else esoc_clink_queue_request(ESOC_REQ_SHUTDOWN, esoc); } else { dev_err(mdm->dev, "graceful poff ipc fail\n"); graceful_shutdown = false; goto force_poff; } break; force_poff: case ESOC_FORCE_PWR_OFF: if (!graceful_shutdown) { Loading
drivers/esoc/esoc-mdm-pon.c +2 −2 Original line number Diff line number Diff line /* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2014-2015, 2017-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 @@ -55,7 +55,7 @@ static int mdm9x55_toggle_soft_reset(struct mdm_ctrl *mdm, bool atomic) if (!atomic) usleep_range(reset_time_us, reset_time_us + 100000); else mdelay(mdm->reset_time_ms); mdelay(DEF_MDM9X55_RESET_TIME); gpio_direction_output(MDM_GPIO(mdm, AP2MDM_SOFT_RESET), soft_reset_direction_de_assert); return 0; Loading