On 2026-11-17 14:03 +0100, Loic Poulain wrote:
> On Tue, Nov 17, 2026 at 10:14 AM Wanquan Zhong <zwq2…@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 <zwq2…@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