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

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

Merge "mhi: core: update debugfs entries to include new entries"

parents db689e48 bd1d0b1b
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -2094,18 +2094,22 @@ static void __mhi_unprepare_channel(struct mhi_controller *mhi_cntrl,
int mhi_debugfs_mhi_states_show(struct seq_file *m, void *d)
{
	struct mhi_controller *mhi_cntrl = m->private;
	struct mhi_link_info *cur_info = &mhi_cntrl->mhi_link_info;

	seq_printf(m,
		   "[%llu ns]: pm_state:%s dev_state:%s EE:%s M0:%u M2:%u M3:%u M3_Fast:%u wake:%d dev_wake:%u alloc_size:%u pending_pkts:%u\n",
		   "[%llu ns]: pm_state:%s dev_state:%s EE:%s M0:%u M2:%u M3:%u M3_Fast:%u wake:%d ignore_override:%d dev_wake:%u alloc_size:%u pending_pkts:%u last_requested_bw:GEN%dx%d\n",
		   sched_clock(),
		   to_mhi_pm_state_str(mhi_cntrl->pm_state),
		   TO_MHI_STATE_STR(mhi_cntrl->dev_state),
		   TO_MHI_EXEC_STR(mhi_cntrl->ee),
		   mhi_cntrl->M0, mhi_cntrl->M2, mhi_cntrl->M3,
		   mhi_cntrl->M3_FAST, mhi_cntrl->wake_set,
		   mhi_cntrl->ignore_override,
		   atomic_read(&mhi_cntrl->dev_wake),
		   atomic_read(&mhi_cntrl->alloc_size),
		   atomic_read(&mhi_cntrl->pending_pkts));
		   atomic_read(&mhi_cntrl->pending_pkts),
		   cur_info->target_link_speed,
		   cur_info->target_link_width);
	return 0;
}

@@ -2221,7 +2225,7 @@ int mhi_debugfs_mhi_vote_show(struct seq_file *m, void *d)

	mhi_dev = mhi_cntrl->mhi_dev;

	seq_printf(m, "At %llu ns:\n", sched_clock());
	seq_printf(m, "[%llu ns]:\n", sched_clock());
	seq_printf(m, "%s: device:%u, bus:%u\n", mhi_dev->chan_name,
		   atomic_read(&mhi_dev->dev_vote),
		   atomic_read(&mhi_dev->bus_vote));