bus: mhi: host: Remove mhi_poll() API
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 24 Feb 2023 12:01:47 +0000 (17:31 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 7 Mar 2023 16:34:45 +0000 (22:04 +0530)
mhi_poll() API is not used within the MHI stack and also not by any client
drivers in mainline. So let's remove it until any consumer is available.

Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/host/main.c
include/linux/mhi.h

index df0fbfe..4fa0969 100644 (file)
@@ -1679,18 +1679,3 @@ void mhi_unprepare_from_transfer(struct mhi_device *mhi_dev)
        }
 }
 EXPORT_SYMBOL_GPL(mhi_unprepare_from_transfer);
-
-int mhi_poll(struct mhi_device *mhi_dev, u32 budget)
-{
-       struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl;
-       struct mhi_chan *mhi_chan = mhi_dev->dl_chan;
-       struct mhi_event *mhi_event = &mhi_cntrl->mhi_event[mhi_chan->er_index];
-       int ret;
-
-       spin_lock_bh(&mhi_event->lock);
-       ret = mhi_event->process_event(mhi_cntrl, mhi_event, budget);
-       spin_unlock_bh(&mhi_event->lock);
-
-       return ret;
-}
-EXPORT_SYMBOL_GPL(mhi_poll);
index a5441ad..f6de4b6 100644 (file)
@@ -765,13 +765,6 @@ int mhi_prepare_for_transfer_autoqueue(struct mhi_device *mhi_dev);
  */
 void mhi_unprepare_from_transfer(struct mhi_device *mhi_dev);
 
-/**
- * mhi_poll - Poll for any available data in DL direction
- * @mhi_dev: Device associated with the channels
- * @budget: # of events to process
- */
-int mhi_poll(struct mhi_device *mhi_dev, u32 budget);
-
 /**
  * mhi_queue_dma - Send or receive DMA mapped buffers from client device
  *                 over MHI channel