Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by Wanquan Zhong
Tue, 17 Nov 2026 09:13
[PATCH v7 1/2] bus: mhi: pci_generic: add Rolling Wireless RW135R-GL and RW151 support
Author: Wanquan Zhong
Date: Tue, 17 Nov 2026 09:13
Date: Tue, 17 Nov 2026 09:13
219 lines
17596 bytes
17596 bytes
Add MHI PCIe device configuration for Rolling Wireless modules:
- RW135R-GL (Qualcomm sdx35): SAHARA, DIAG, MBIM, DUN, FIREHOSE, ADB,
NMEA and IP_HW0
- RW151 (Qualcomm sdx75): MBIM-based config for most SKUs
- RW151 SP (2099:1502): QMI on channels 14/15 instead of MBIM
Register PCI_DEVICE_SUB entries per chipset:
- RW135R-GL on QCOM 0x011a (sdx35): sub-vendor 0x2099, sub-device
0x1300/0x1301
- RW151 on QCOM 0x0309 (sdx75): sub-vendor 0x2099, sub-device
0x1500/0x1501/0x1502; HP OEM sub-vendor 0x103c, sub-device
0x8fb8/0x8fb4
Use Rolling-specific EDL firmware paths under qcom/sdx35/rolling/ and
qcom/sdx75/rolling/.
Tested suspend-to-RAM (mem) on Rolling RW135R-GL and RW151 hardware: MHI
resumes cleanly and MBIM/wwan function after wake. Hibernate (disk) could
not be tested on this platform (/sys/power/state lacks "disk", ENODEV).
Tested-on: Rolling RW135R-GL hardware (MHI probe, MBIM, DIAG, ADB,
suspend-to-RAM)
Tested-on: Rolling RW151 hardware (MHI probe, MBIM, DIAG, ADB,
suspend-to-RAM)
Signed-off-by: Wanquan Zhong <zwq2226404116@163.com>
---
Changes in v7:
- Standalone series on mhi-next (v6 not merged); includes full v6 content
- Add mhi_rolling_rw151_sp_* for 2099:1502 (QMI instead of MBIM)
Changes in v6:
- Full RW135R/RW151 channel config and PCI IDs; no_m3 dropped; MBIM ring 32
drivers/bus/mhi/host/pci_generic.c | 152 +++++++++++++++++++++++++++++
1 file changed, 152 insertions(+)
diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
index b636e2c23b4d..ce9a1205c2e9 100644
--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -948,6 +948,137 @@ static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = {
.sideband_wake = true,
};
+static const struct mhi_channel_config mhi_rolling_rw135r_channels[] = {
+ MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
+ MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
+ MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
+ MHI_CHANNEL_CONFIG_UL(12, "MBIM", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
+ MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
+ MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
+ MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
+ MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
+};
+
+static struct mhi_event_config mhi_rolling_rw135r_events[] = {
+ MHI_EVENT_CONFIG_CTRL(0, 128),
+ MHI_EVENT_CONFIG_DATA(1, 128),
+ MHI_EVENT_CONFIG_HW_DATA(2, 1024, 100),
+ MHI_EVENT_CONFIG_HW_DATA(3, 2048, 101),
+};
+
+static const struct mhi_controller_config modem_rolling_rw135r_config = {
+ .max_channels = 128,
+ .timeout_ms = 8000,
+ .num_channels = ARRAY_SIZE(mhi_rolling_rw135r_channels),
+ .ch_cfg = mhi_rolling_rw135r_channels,
+ .num_events = ARRAY_SIZE(mhi_rolling_rw135r_events),
+ .event_cfg = mhi_rolling_rw135r_events,
+};
+
+static const struct mhi_pci_dev_info mhi_rolling_rw135r_info = {
+ .name = "rolling-rw135r",
+ .edl = "qcom/sdx35/rolling/prog_firehose_ddr.elf",
+ .config = &modem_rolling_rw135r_config,
+ .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
+ .dma_data_width = 32,
+ .mru_default = 32768,
+ .sideband_wake = false,
+ .edl_trigger = true,
+};
+
+static const struct mhi_channel_config mhi_rolling_rw151_channels[] = {
+ MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
+ MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
+ MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
+ MHI_CHANNEL_CONFIG_UL(12, "MBIM", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
+ MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
+ MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
+ MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
+ MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
+};
+
+static const struct mhi_channel_config mhi_rolling_rw151_sp_channels[] = {
+ MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
+ MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
+ MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
+ MHI_CHANNEL_CONFIG_UL(14, "QMI", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(15, "QMI", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
+ MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
+ MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
+ MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
+ MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
+ MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
+ MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
+};
+
+static struct mhi_event_config mhi_rolling_rw151_events[] = {
+ MHI_EVENT_CONFIG_CTRL(0, 128),
+ MHI_EVENT_CONFIG_DATA(1, 128),
+ MHI_EVENT_CONFIG_HW_DATA(2, 1024, 100),
+ MHI_EVENT_CONFIG_HW_DATA(3, 2048, 101),
+};
+
+static const struct mhi_controller_config modem_rolling_rw151_config = {
+ .max_channels = 128,
+ .timeout_ms = 8000,
+ .num_channels = ARRAY_SIZE(mhi_rolling_rw151_channels),
+ .ch_cfg = mhi_rolling_rw151_channels,
+ .num_events = ARRAY_SIZE(mhi_rolling_rw151_events),
+ .event_cfg = mhi_rolling_rw151_events,
+};
+
+static const struct mhi_controller_config modem_rolling_rw151_sp_config = {
+ .max_channels = 128,
+ .timeout_ms = 8000,
+ .num_channels = ARRAY_SIZE(mhi_rolling_rw151_sp_channels),
+ .ch_cfg = mhi_rolling_rw151_sp_channels,
+ .num_events = ARRAY_SIZE(mhi_rolling_rw151_events),
+ .event_cfg = mhi_rolling_rw151_events,
+};
+
+static const struct mhi_pci_dev_info mhi_rolling_rw151_info = {
+ .name = "rolling-rw151",
+ .edl = "qcom/sdx75/rolling/prog_firehose_lite.elf",
+ .config = &modem_rolling_rw151_config,
+ .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
+ .dma_data_width = 32,
+ .mru_default = 32768,
+ .sideband_wake = false,
+ .edl_trigger = true,
+};
+
+static const struct mhi_pci_dev_info mhi_rolling_rw151_sp_info = {
+ .name = "rolling-rw151",
+ .edl = "qcom/sdx75/rolling/prog_firehose_lite.elf",
+ .config = &modem_rolling_rw151_sp_config,
+ .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
+ .dma_data_width = 32,
+ .mru_default = 32768,
+ .sideband_wake = false,
+ .edl_trigger = true,
+};
+
/* Keep the list sorted based on the PID. New VID should be added as the last entry */
static const struct pci_device_id mhi_pci_id_table[] = {
{PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0116),
@@ -961,6 +1092,12 @@ static const struct pci_device_id mhi_pci_id_table[] = {
/* Telit FE912C04 (sdx35) */
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x1c5d, 0x2045),
.driver_data = (kernel_ulong_t) &mhi_telit_fe912c04_info },
+ /* Rolling RW135R-GL (sdx35) */
+ { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x2099, 0x1300),
+ .driver_data = (kernel_ulong_t) &mhi_rolling_rw135r_info },
+ /* Rolling RW135R-GL (sdx35) */
+ { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x2099, 0x1301),
+ .driver_data = (kernel_ulong_t) &mhi_rolling_rw135r_info },
{ PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x011a),
.driver_data = (kernel_ulong_t) &mhi_qcom_sdx35_info },
{ PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304),
@@ -995,6 +1132,21 @@ static const struct pci_device_id mhi_pci_id_table[] = {
/* Telit FE990B40 (sdx72) */
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x1c5d, 0x2025),
.driver_data = (kernel_ulong_t) &mhi_telit_fe990b40_info },
+ /* Rolling RW151 (sdx75) */
+ { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x2099, 0x1500),
+ .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
+ /* Rolling RW151 (sdx75) */
+ { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x2099, 0x1501),
+ .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
+ /* Rolling RW151 (sdx75) */
+ { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x2099, 0x1502),
+ .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_sp_info },
+ /* Rolling RW151 (sdx75) */
+ { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x103c, 0x8fb8),
+ .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
+ /* Rolling RW151 (sdx75) */
+ { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x103c, 0x8fb4),
+ .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
{ PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0309),
.driver_data = (kernel_ulong_t) &mhi_qcom_sdx75_info },
/* QDU100, x100-DU */
--
2.53.0
Re: [PATCH v7 1/2] bus: mhi: pci_generic: add Rolling Wireless RW135R-GL and RW151 support
Author: Loic Poulain
Date: Tue, 17 Nov 2026 13:03
Date: Tue, 17 Nov 2026 13:03
248 lines
26944 bytes
26944 bytes
On Tue, Nov 17, 2026 at 10:14 AM Wanquan Zhong <zwq2226404116@163.com> wrote:
>
> Add MHI PCIe device configuration for Rolling Wireless modules:
>
> - RW135R-GL (Qualcomm sdx35): SAHARA, DIAG, MBIM, DUN, FIREHOSE, ADB,
> NMEA and IP_HW0
> - RW151 (Qualcomm sdx75): MBIM-based config for most SKUs
> - RW151 SP (2099:1502): QMI on channels 14/15 instead of MBIM
>
> Register PCI_DEVICE_SUB entries per chipset:
>
> - RW135R-GL on QCOM 0x011a (sdx35): sub-vendor 0x2099, sub-device
> 0x1300/0x1301
> - RW151 on QCOM 0x0309 (sdx75): sub-vendor 0x2099, sub-device
> 0x1500/0x1501/0x1502; HP OEM sub-vendor 0x103c, sub-device
> 0x8fb8/0x8fb4
>
> Use Rolling-specific EDL firmware paths under qcom/sdx35/rolling/ and
> qcom/sdx75/rolling/.
>
> Tested suspend-to-RAM (mem) on Rolling RW135R-GL and RW151 hardware: MHI
> resumes cleanly and MBIM/wwan function after wake. Hibernate (disk) could
> not be tested on this platform (/sys/power/state lacks "disk", ENODEV).
>
> Tested-on: Rolling RW135R-GL hardware (MHI probe, MBIM, DIAG, ADB,
> suspend-to-RAM)
> Tested-on: Rolling RW151 hardware (MHI probe, MBIM, DIAG, ADB,
> suspend-to-RAM)
>
> Signed-off-by: Wanquan Zhong <zwq2226404116@163.com>
> ---
> Changes in v7:
> - Standalone series on mhi-next (v6 not merged); includes full v6 content
> - Add mhi_rolling_rw151_sp_* for 2099:1502 (QMI instead of MBIM)
>
> Changes in v6:
> - Full RW135R/RW151 channel config and PCI IDs; no_m3 dropped; MBIM ring 32
>
> drivers/bus/mhi/host/pci_generic.c | 152 +++++++++++++++++++++++++++++
> 1 file changed, 152 insertions(+)
>
> diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
> index b636e2c23b4d..ce9a1205c2e9 100644
> --- a/drivers/bus/mhi/host/pci_generic.c
> +++ b/drivers/bus/mhi/host/pci_generic.c
> @@ -948,6 +948,137 @@ static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = {
> .sideband_wake = true,
> };
>
> +static const struct mhi_channel_config mhi_rolling_rw135r_channels[] = {
> + MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
> + MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
> + MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
> + MHI_CHANNEL_CONFIG_UL(12, "MBIM", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
> + MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
> + MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
> + MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
> + MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
> +};
> +
> +static struct mhi_event_config mhi_rolling_rw135r_events[] = {
> + MHI_EVENT_CONFIG_CTRL(0, 128),
> + MHI_EVENT_CONFIG_DATA(1, 128),
> + MHI_EVENT_CONFIG_HW_DATA(2, 1024, 100),
> + MHI_EVENT_CONFIG_HW_DATA(3, 2048, 101),
> +};
> +
> +static const struct mhi_controller_config modem_rolling_rw135r_config = {
> + .max_channels = 128,
> + .timeout_ms = 8000,
> + .num_channels = ARRAY_SIZE(mhi_rolling_rw135r_channels),
> + .ch_cfg = mhi_rolling_rw135r_channels,
> + .num_events = ARRAY_SIZE(mhi_rolling_rw135r_events),
> + .event_cfg = mhi_rolling_rw135r_events,
> +};
> +
> +static const struct mhi_pci_dev_info mhi_rolling_rw135r_info = {
> + .name = "rolling-rw135r",
> + .edl = "qcom/sdx35/rolling/prog_firehose_ddr.elf",
> + .config = &modem_rolling_rw135r_config,
> + .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
> + .dma_data_width = 32,
> + .mru_default = 32768,
> + .sideband_wake = false,
> + .edl_trigger = true,
> +};
> +
> +static const struct mhi_channel_config mhi_rolling_rw151_channels[] = {
> + MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
> + MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
> + MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
> + MHI_CHANNEL_CONFIG_UL(12, "MBIM", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
> + MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
> + MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
> + MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
> + MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
> +};
mhi_rolling_rw135r_channels[] and mhi_rolling_rw151_channels[] are
identical? why duplicating them? same for event configs.
> +
> +static const struct mhi_channel_config mhi_rolling_rw151_sp_channels[] = {
> + MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
> + MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
> + MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
> + MHI_CHANNEL_CONFIG_UL(14, "QMI", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(15, "QMI", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
> + MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
> + MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
> + MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
> + MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
> + MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
> + MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
> +};
> +
> +static struct mhi_event_config mhi_rolling_rw151_events[] = {
> + MHI_EVENT_CONFIG_CTRL(0, 128),
> + MHI_EVENT_CONFIG_DATA(1, 128),
> + MHI_EVENT_CONFIG_HW_DATA(2, 1024, 100),
> + MHI_EVENT_CONFIG_HW_DATA(3, 2048, 101),
> +};
> +
> +static const struct mhi_controller_config modem_rolling_rw151_config = {
> + .max_channels = 128,
> + .timeout_ms = 8000,
> + .num_channels = ARRAY_SIZE(mhi_rolling_rw151_channels),
> + .ch_cfg = mhi_rolling_rw151_channels,
> + .num_events = ARRAY_SIZE(mhi_rolling_rw151_events),
> + .event_cfg = mhi_rolling_rw151_events,
> +};
> +
> +static const struct mhi_controller_config modem_rolling_rw151_sp_config = {
> + .max_channels = 128,
> + .timeout_ms = 8000,
> + .num_channels = ARRAY_SIZE(mhi_rolling_rw151_sp_channels),
> + .ch_cfg = mhi_rolling_rw151_sp_channels,
> + .num_events = ARRAY_SIZE(mhi_rolling_rw151_events),
> + .event_cfg = mhi_rolling_rw151_events,
> +};
> +
> +static const struct mhi_pci_dev_info mhi_rolling_rw151_info = {
> + .name = "rolling-rw151",
> + .edl = "qcom/sdx75/rolling/prog_firehose_lite.elf",
> + .config = &modem_rolling_rw151_config,
> + .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
> + .dma_data_width = 32,
> + .mru_default = 32768,
> + .sideband_wake = false,
> + .edl_trigger = true,
> +};
> +
> +static const struct mhi_pci_dev_info mhi_rolling_rw151_sp_info = {
> + .name = "rolling-rw151",
> + .edl = "qcom/sdx75/rolling/prog_firehose_lite.elf",
> + .config = &modem_rolling_rw151_sp_config,
> + .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
> + .dma_data_width = 32,
> + .mru_default = 32768,
> + .sideband_wake = false,
> + .edl_trigger = true,
> +};
> +
> /* Keep the list sorted based on the PID. New VID should be added as the last entry */
> static const struct pci_device_id mhi_pci_id_table[] = {
> {PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0116),
> @@ -961,6 +1092,12 @@ static const struct pci_device_id mhi_pci_id_table[] = {
> /* Telit FE912C04 (sdx35) */
> { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x1c5d, 0x2045),
> .driver_data = (kernel_ulong_t) &mhi_telit_fe912c04_info },
> + /* Rolling RW135R-GL (sdx35) */
> + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x2099, 0x1300),
> + .driver_data = (kernel_ulong_t) &mhi_rolling_rw135r_info },
> + /* Rolling RW135R-GL (sdx35) */
> + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x2099, 0x1301),
> + .driver_data = (kernel_ulong_t) &mhi_rolling_rw135r_info },
> { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x011a),
> .driver_data = (kernel_ulong_t) &mhi_qcom_sdx35_info },
> { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304),
> @@ -995,6 +1132,21 @@ static const struct pci_device_id mhi_pci_id_table[] = {
> /* Telit FE990B40 (sdx72) */
> { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x1c5d, 0x2025),
> .driver_data = (kernel_ulong_t) &mhi_telit_fe990b40_info },
> + /* Rolling RW151 (sdx75) */
> + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x2099, 0x1500),
> + .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
> + /* Rolling RW151 (sdx75) */
> + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x2099, 0x1501),
> + .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
> + /* Rolling RW151 (sdx75) */
> + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x2099, 0x1502),
> + .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_sp_info },
> + /* Rolling RW151 (sdx75) */
> + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x103c, 0x8fb8),
> + .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
> + /* Rolling RW151 (sdx75) */
> + { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0309, 0x103c, 0x8fb4),
> + .driver_data = (kernel_ulong_t) &mhi_rolling_rw151_info },
> { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0309),
> .driver_data = (kernel_ulong_t) &mhi_qcom_sdx75_info },
> /* QDU100, x100-DU */
> --
> 2.53.0
>
Re: [PATCH v7 1/2] bus: mhi: pci_generic: add Rolling Wireless RW135R-GL and RW151 support
Author: Manivannan Sadhasivam
Date: Wed, 02 Dec 2026 04:49
Date: Wed, 02 Dec 2026 04:49
123 lines
14452 bytes
14452 bytes
On 2026-11-17 14:03 +0100, Loic Poulain wrote:
> On Tue, Nov 17, 2026 at 10:14 AM Wanquan Zhong <zwq2226404116@163.com> wrote:
> >
> > Add MHI PCIe device configuration for Rolling Wireless modules:
> >
> > - RW135R-GL (Qualcomm sdx35): SAHARA, DIAG, MBIM, DUN, FIREHOSE, ADB,
> > NMEA and IP_HW0
> > - RW151 (Qualcomm sdx75): MBIM-based config for most SKUs
> > - RW151 SP (2099:1502): QMI on channels 14/15 instead of MBIM
> >
> > Register PCI_DEVICE_SUB entries per chipset:
> >
> > - RW135R-GL on QCOM 0x011a (sdx35): sub-vendor 0x2099, sub-device
> > 0x1300/0x1301
> > - RW151 on QCOM 0x0309 (sdx75): sub-vendor 0x2099, sub-device
> > 0x1500/0x1501/0x1502; HP OEM sub-vendor 0x103c, sub-device
> > 0x8fb8/0x8fb4
> >
> > Use Rolling-specific EDL firmware paths under qcom/sdx35/rolling/ and
> > qcom/sdx75/rolling/.
> >
> > Tested suspend-to-RAM (mem) on Rolling RW135R-GL and RW151 hardware: MHI
> > resumes cleanly and MBIM/wwan function after wake. Hibernate (disk) could
> > not be tested on this platform (/sys/power/state lacks "disk", ENODEV).
> >
> > Tested-on: Rolling RW135R-GL hardware (MHI probe, MBIM, DIAG, ADB,
> > suspend-to-RAM)
> > Tested-on: Rolling RW151 hardware (MHI probe, MBIM, DIAG, ADB,
> > suspend-to-RAM)
> >
> > Signed-off-by: Wanquan Zhong <zwq2226404116@163.com>
> > ---
> > Changes in v7:
> > - Standalone series on mhi-next (v6 not merged); includes full v6 content
> > - Add mhi_rolling_rw151_sp_* for 2099:1502 (QMI instead of MBIM)
> >
> > Changes in v6:
> > - Full RW135R/RW151 channel config and PCI IDs; no_m3 dropped; MBIM ring 32
> >
> > drivers/bus/mhi/host/pci_generic.c | 152 +++++++++++++++++++++++++++++
> > 1 file changed, 152 insertions(+)
> >
> > diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
> > index b636e2c23b4d..ce9a1205c2e9 100644
> > --- a/drivers/bus/mhi/host/pci_generic.c
> > +++ b/drivers/bus/mhi/host/pci_generic.c
> > @@ -948,6 +948,137 @@ static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = {
> > .sideband_wake = true,
> > };
> >
> > +static const struct mhi_channel_config mhi_rolling_rw135r_channels[] = {
> > + MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
> > + MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
> > + MHI_CHANNEL_CONFIG_UL(12, "MBIM", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
> > + MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
> > + MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
> > +};
> > +
> > +static struct mhi_event_config mhi_rolling_rw135r_events[] = {
> > + MHI_EVENT_CONFIG_CTRL(0, 128),
> > + MHI_EVENT_CONFIG_DATA(1, 128),
> > + MHI_EVENT_CONFIG_HW_DATA(2, 1024, 100),
> > + MHI_EVENT_CONFIG_HW_DATA(3, 2048, 101),
> > +};
> > +
> > +static const struct mhi_controller_config modem_rolling_rw135r_config = {
> > + .max_channels = 128,
> > + .timeout_ms = 8000,
> > + .num_channels = ARRAY_SIZE(mhi_rolling_rw135r_channels),
> > + .ch_cfg = mhi_rolling_rw135r_channels,
> > + .num_events = ARRAY_SIZE(mhi_rolling_rw135r_events),
> > + .event_cfg = mhi_rolling_rw135r_events,
> > +};
> > +
> > +static const struct mhi_pci_dev_info mhi_rolling_rw135r_info = {
> > + .name = "rolling-rw135r",
> > + .edl = "qcom/sdx35/rolling/prog_firehose_ddr.elf",
> > + .config = &modem_rolling_rw135r_config,
> > + .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
> > + .dma_data_width = 32,
> > + .mru_default = 32768,
> > + .sideband_wake = false,
> > + .edl_trigger = true,
> > +};
> > +
> > +static const struct mhi_channel_config mhi_rolling_rw151_channels[] = {
> > + MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
> > + MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
> > + MHI_CHANNEL_CONFIG_UL(12, "MBIM", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(36, "ADB", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(37, "ADB", 32, 0),
> > + MHI_CHANNEL_CONFIG_UL(60, "NMEA", 32, 0),
> > + MHI_CHANNEL_CONFIG_DL(61, "NMEA", 32, 0),
> > + MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
> > + MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
> > +};
>
> mhi_rolling_rw135r_channels[] and mhi_rolling_rw151_channels[] are
> identical? why duplicating them? same for event configs.
>
Fair question. Please fix it up and send next version.
- Mani
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads