Loading drivers/bus/mhi/core/mhi_init.c +0 −4 Original line number Diff line number Diff line Loading @@ -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); Loading drivers/bus/mhi/core/mhi_main.c +0 −39 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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 || Loading include/linux/mhi.h +0 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
drivers/bus/mhi/core/mhi_init.c +0 −4 Original line number Diff line number Diff line Loading @@ -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); Loading
drivers/bus/mhi/core/mhi_main.c +0 −39 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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 || Loading
include/linux/mhi.h +0 −1 Original line number Diff line number Diff line Loading @@ -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