@@ -669,9 +669,9 @@ static int parse_ev_cfg(struct mhi_controller *mhi_cntrl,
goto error_ev_cfg;
if (mhi_event->db_cfg.brstmode == MHI_DB_BRST_ENABLE)
- mhi_event->db_cfg.process_db = mhi_db_brstmode;
+ mhi_event->db_cfg.ring_db = mhi_db_brstmode;
else
- mhi_event->db_cfg.process_db = mhi_db_brstmode_disable;
+ mhi_event->db_cfg.ring_db = mhi_db_brstmode_disable;
mhi_event->data_type = event_cfg->data_type;
@@ -806,9 +806,9 @@ static int parse_ch_cfg(struct mhi_controller *mhi_cntrl,
}
if (mhi_chan->db_cfg.brstmode == MHI_DB_BRST_ENABLE)
- mhi_chan->db_cfg.process_db = mhi_db_brstmode;
+ mhi_chan->db_cfg.ring_db = mhi_db_brstmode;
else
- mhi_chan->db_cfg.process_db = mhi_db_brstmode_disable;
+ mhi_chan->db_cfg.ring_db = mhi_db_brstmode_disable;
mhi_chan->configured = true;
@@ -142,7 +142,7 @@ struct db_cfg {
u32 pollcfg;
enum mhi_db_brst_mode brstmode;
dma_addr_t db_val;
- void (*process_db)(struct mhi_controller *mhi_cntrl,
+ void (*ring_db)(struct mhi_controller *mhi_cntrl,
struct db_cfg *db_cfg, void __iomem *io_addr,
dma_addr_t db_val);
};
@@ -112,7 +112,7 @@ void mhi_ring_er_db(struct mhi_event *mhi_event)
{
struct mhi_ring *ring = &mhi_event->ring;
- mhi_event->db_cfg.process_db(mhi_event->mhi_cntrl, &mhi_event->db_cfg,
+ mhi_event->db_cfg.ring_db(mhi_event->mhi_cntrl, &mhi_event->db_cfg,
ring->db_addr, le64_to_cpu(*ring->ctxt_wp));
}
@@ -141,7 +141,7 @@ void mhi_ring_chan_db(struct mhi_controller *mhi_cntrl,
dma_wmb();
*ring->ctxt_wp = cpu_to_le64(db);
- mhi_chan->db_cfg.process_db(mhi_cntrl, &mhi_chan->db_cfg,
+ mhi_chan->db_cfg.ring_db(mhi_cntrl, &mhi_chan->db_cfg,
ring->db_addr, db);
}
"process_db" might be confusing at times as it also implies that the function is used to process the doorbells from the endpoint device. So rename it to "ring_db" to make it clear that it is only used to ring doorbell to the device. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> --- drivers/bus/mhi/host/init.c | 8 ++++---- drivers/bus/mhi/host/internal.h | 2 +- drivers/bus/mhi/host/main.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-)