mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
mhi: core: remove unused timesync device
Remove the unused timesync MHI device as we use the controller device for timesync related activity instead. Change-Id: If2bb5937cbf468d8778b89549afdb1d0a9af7782 Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
This commit is contained in:
parent
440b0124f5
commit
6bc53ff9fa
3 changed files with 0 additions and 44 deletions
|
|
@ -1779,10 +1779,6 @@ static int mhi_driver_remove(struct device *dev)
|
|||
mutex_unlock(&mhi_chan->mutex);
|
||||
}
|
||||
|
||||
|
||||
if (mhi_cntrl->tsync_dev == mhi_dev)
|
||||
mhi_cntrl->tsync_dev = NULL;
|
||||
|
||||
/* relinquish any pending votes for device */
|
||||
while (atomic_read(&mhi_dev->dev_vote))
|
||||
mhi_device_put(mhi_dev, MHI_VOTE_DEVICE);
|
||||
|
|
|
|||
|
|
@ -850,38 +850,6 @@ int mhi_create_timesync_sysfs(struct mhi_controller *mhi_cntrl)
|
|||
&mhi_tsync_group);
|
||||
}
|
||||
|
||||
static void mhi_create_time_sync_dev(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
struct mhi_device *mhi_dev;
|
||||
int ret;
|
||||
|
||||
if (!MHI_IN_MISSION_MODE(mhi_cntrl->ee))
|
||||
return;
|
||||
|
||||
mhi_dev = mhi_alloc_device(mhi_cntrl);
|
||||
if (!mhi_dev)
|
||||
return;
|
||||
|
||||
mhi_dev->dev_type = MHI_TIMESYNC_TYPE;
|
||||
mhi_dev->chan_name = "TIME_SYNC";
|
||||
dev_set_name(&mhi_dev->dev, "%04x_%02u.%02u.%02u_%s", mhi_dev->dev_id,
|
||||
mhi_dev->domain, mhi_dev->bus, mhi_dev->slot,
|
||||
mhi_dev->chan_name);
|
||||
|
||||
/* add if there is a matching DT node */
|
||||
mhi_assign_of_node(mhi_cntrl, mhi_dev);
|
||||
|
||||
ret = device_add(&mhi_dev->dev);
|
||||
if (ret) {
|
||||
MHI_ERR("Failed to register dev for chan:%s\n",
|
||||
mhi_dev->chan_name);
|
||||
mhi_dealloc_device(mhi_cntrl, mhi_dev);
|
||||
return;
|
||||
}
|
||||
|
||||
mhi_cntrl->tsync_dev = mhi_dev;
|
||||
}
|
||||
|
||||
/* bind mhi channels into mhi devices */
|
||||
void mhi_create_devices(struct mhi_controller *mhi_cntrl)
|
||||
{
|
||||
|
|
@ -890,13 +858,6 @@ void mhi_create_devices(struct mhi_controller *mhi_cntrl)
|
|||
struct mhi_device *mhi_dev;
|
||||
int ret;
|
||||
|
||||
/*
|
||||
* we need to create time sync device before creating other
|
||||
* devices, because client may try to capture time during
|
||||
* clint probe.
|
||||
*/
|
||||
mhi_create_time_sync_dev(mhi_cntrl);
|
||||
|
||||
mhi_chan = mhi_cntrl->mhi_chan;
|
||||
for (i = 0; i < mhi_cntrl->max_chan; i++, mhi_chan++) {
|
||||
if (!mhi_chan->configured || mhi_chan->mhi_dev ||
|
||||
|
|
|
|||
|
|
@ -388,7 +388,6 @@ struct mhi_controller {
|
|||
|
||||
/* supports time sync feature */
|
||||
struct mhi_timesync *mhi_tsync;
|
||||
struct mhi_device *tsync_dev;
|
||||
u64 local_timer_freq;
|
||||
u64 remote_timer_freq;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue