Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0603143 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: Notify all mhi client's for PCIe link down recovery"

parents e96fabc2 9b4eddb8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. */

#include <linux/debugfs.h>
#include <linux/delay.h>
@@ -1061,8 +1061,8 @@ void mhi_control_error(struct mhi_controller *mhi_cntrl)
				sfr_info->buf_addr);
	}

	/* link is not down if device is in RDDM */
	transition_state = (mhi_cntrl->ee == MHI_EE_RDDM) ?
	/* link is not down if device supports RDDM */
	transition_state = (mhi_cntrl->rddm_supported) ?
		MHI_PM_DEVICE_ERR_DETECT : MHI_PM_LD_ERR_FATAL_DETECT;

	write_lock_irq(&mhi_cntrl->pm_lock);