Loading drivers/bus/mhi/controllers/mhi_arch_qcom.c +6 −2 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019, 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 @@ -140,10 +140,15 @@ void mhi_arch_esoc_ops_power_off(void *priv, bool mdm_state) struct mhi_dev *mhi_dev = mhi_controller_get_devdata(mhi_cntrl); MHI_LOG("Enter: mdm_crashed:%d\n", mdm_state); mutex_lock(&mhi_cntrl->pm_mutex); if (!mhi_dev->powered_on) { MHI_LOG("Not in active state\n"); mutex_unlock(&mhi_cntrl->pm_mutex); return; } mhi_dev->powered_on = false; mutex_unlock(&mhi_cntrl->pm_mutex); MHI_LOG("Triggering shutdown process\n"); mhi_power_down(mhi_cntrl, !mdm_state); Loading @@ -153,7 +158,6 @@ void mhi_arch_esoc_ops_power_off(void *priv, bool mdm_state) mhi_arch_link_off(mhi_cntrl, false); mhi_arch_iommu_deinit(mhi_cntrl); mhi_arch_pcie_deinit(mhi_cntrl); mhi_dev->powered_on = false; } static void mhi_bl_dl_cb(struct mhi_device *mhi_dev, Loading Loading
drivers/bus/mhi/controllers/mhi_arch_qcom.c +6 −2 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018-2019, 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 @@ -140,10 +140,15 @@ void mhi_arch_esoc_ops_power_off(void *priv, bool mdm_state) struct mhi_dev *mhi_dev = mhi_controller_get_devdata(mhi_cntrl); MHI_LOG("Enter: mdm_crashed:%d\n", mdm_state); mutex_lock(&mhi_cntrl->pm_mutex); if (!mhi_dev->powered_on) { MHI_LOG("Not in active state\n"); mutex_unlock(&mhi_cntrl->pm_mutex); return; } mhi_dev->powered_on = false; mutex_unlock(&mhi_cntrl->pm_mutex); MHI_LOG("Triggering shutdown process\n"); mhi_power_down(mhi_cntrl, !mdm_state); Loading @@ -153,7 +158,6 @@ void mhi_arch_esoc_ops_power_off(void *priv, bool mdm_state) mhi_arch_link_off(mhi_cntrl, false); mhi_arch_iommu_deinit(mhi_cntrl); mhi_arch_pcie_deinit(mhi_cntrl); mhi_dev->powered_on = false; } static void mhi_bl_dl_cb(struct mhi_device *mhi_dev, Loading