[PATCH 06/11] bus: mhi: host: pci: Add overflow disable flag for QDU100 H/W channels

From: Sivareddy Surasani
Date: Thu Dec 11 2025 - 03:10:40 EST


From: Vivek Pernamitta <vivek.pernamitta@xxxxxxxxxxxxxxxx>

Add overflow disable flag for QDU100 H/W channels.

Signed-off-by: Vivek Pernamitta <vivek.pernamitta@xxxxxxxxxxxxxxxx>
Signed-off-by: Sivareddy Surasani <sivareddy.surasani@xxxxxxxxxxxxxxxx>
---
drivers/bus/mhi/host/pci_generic.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
index bb3c5350a462..814f8fdae378 100644
--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -94,6 +94,22 @@ struct mhi_pci_dev_info {
.doorbell_mode_switch = false, \
}

+#define MHI_CHANNEL_CONFIG_DL_OVF_DISABLE(ch_num, ch_name, el_count, ev_ring) \
+ { \
+ .num = ch_num, \
+ .name = ch_name, \
+ .num_elements = el_count, \
+ .event_ring = ev_ring, \
+ .dir = DMA_FROM_DEVICE, \
+ .ee_mask = BIT(MHI_EE_AMSS), \
+ .pollcfg = 0, \
+ .ovf_disable = true, \
+ .doorbell = MHI_DB_BRST_DISABLE, \
+ .lpm_notify = false, \
+ .offload_channel = false, \
+ .doorbell_mode_switch = false, \
+ }
+
#define MHI_CHANNEL_CONFIG_DL_AUTOQUEUE(ch_num, ch_name, el_count, ev_ring) \
{ \
.num = ch_num, \
@@ -295,9 +311,9 @@ static const struct mhi_channel_config mhi_qcom_qdu100_channels[] = {
static const struct mhi_channel_config mhi_qcom_qdu100_vf_channels[] = {
/* HW channels */
MHI_CHANNEL_CONFIG_UL(104, "IP_HW1", 2048, 1),
- MHI_CHANNEL_CONFIG_DL(105, "IP_HW1", 2048, 2),
+ MHI_CHANNEL_CONFIG_DL_OVF_DISABLE(105, "IP_HW1", 2048, 2),
MHI_CHANNEL_CONFIG_UL(106, "IP_HW2", 2048, 3),
- MHI_CHANNEL_CONFIG_DL(107, "IP_HW2", 2048, 4),
+ MHI_CHANNEL_CONFIG_DL_OVF_DISABLE(107, "IP_HW2", 2048, 4),
};

static struct mhi_event_config mhi_qcom_qdu100_events[] = {

--
2.34.1