add Rolling Wireless RW135R-GL and RW151 MHI support
Subsystems (5)
v7 cover add Rolling Wireless RW135R-GL and RW151 MHI support
v6 was not merged on mhi-next. This v7 series is standalone again on current mhi-next and includes the full v6 Rolling config plus the RW151 SKU update below.
Patch 1/2: device config and PCI IDs. Patch 2/2: ADB wwan_ctrl (split as before).
---
Changes in v7:
- Resubmit standalone series (v6 had no maintainer reply / not merged)
- Add RW151 SP config for 2099:1502: QMI 14/15 instead of MBIM 12/13
- Use 163.com for From and Signed-off-by (same as send-email identity)
Changes in v6:
- Resend as standalone 2-patch series against mhi-next
- Include full RW135R-GL/RW151 config; split ADB to patch 2/2
- Drop no_m3; RW151 MBIM ring 32; SAHARA SBL; NMEA on 60/61; all PCI IDs
v6: https://lore.kernel.org/mhi/[email protected]/
Wanquan Zhong (2):
bus: mhi: pci_generic: add Rolling Wireless RW135R-GL and RW151
support
net: wwan: mhi_wwan_ctrl: add ADB channel support
drivers/bus/mhi/host/pci_generic.c | 152 +++++++++++++++++++++++++++++ drivers/net/wwan/mhi_wwan_ctrl.c | 1 + 2 files changed, 153 insertions(+)
Signature · 1 line
2.53.0
PATCH v7 1/2 bus: mhi: pci_generic: add Rolling Wireless RW135R-GL and RW151 support
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)
---
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(+)
drivers/bus/mhi/host/pci_generic.c +152 -0
@@ -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 */
Signature · 1 line
2.53.0
Loic Poulain
maintainerRe: [PATCH v7 1/2] bus: mhi: pci_generic: add Rolling Wireless RW135R-GL and RW151 support
Quoted 102 lines · Wanquan Zhong
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 MBIMRegister
PCI_DEVICE_SUBentries per chipset:- RW135R-GL on QCOM
0x011a(sdx35): sub-vendor0x2099, sub-device 0x1300/0x1301
- RW151 on QCOM0x0309(sdx75): sub-vendor0x2099, sub-device 0x1500/0x1501/0x1502; HP OEM sub-vendor0x103c, sub-device 0x8fb8/0x8fb4Use 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/statelacks "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 <[email protected]>---
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_m3dropped; MBIM ring 32drivers/bus/mhi/host/pci_generic.c | 152 +++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+)drivers/bus/mhi/host/pci_generic.c +54
-0@@ -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 ),
drivers/bus/mhi/host/pci_generic.c static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = { · line 1014
Quoted 10 lines
drivers/bus/mhi/host/pci_generic.c +10
-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.
Quoted 108 lines
drivers/bus/mhi/host/pci_generic.c +88
-1+ +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
PATCH v7 2/2 net: wwan: mhi_wwan_ctrl: add ADB channel support
In reply to Wanquan ZhongBind the MHI "ADB" channel to WWAN_PORT_ADB so userspace can access the ADB port through the wwan subsystem.
---
Unchanged from v6 patch 2/2; bundled with v1/v2 historically (Loic).
drivers/net/wwan/mhi_wwan_ctrl.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wwan/mhi_wwan_ctrl.c +1 -0
@@ -263,6 +263,7 @@ static const struct mhi_device_id mhi_wwan_ctrl_match_table[] = { { .chan = "DIAG", .driver_data = WWAN_PORT_QCDM }, { .chan = "FIREHOSE", .driver_data = WWAN_PORT_FIREHOSE }, { .chan = "NMEA", .driver_data = WWAN_PORT_NMEA }, + { .chan = "ADB", .driver_data = WWAN_PORT_ADB }, {}, };MODULE_DEVICE_TABLE (mhi, mhi_wwan_ctrl_match_table);
Signature · 1 line
2.53.0
Re: [PATCH v7 2/2] net: wwan: mhi_wwan_ctrl: add ADB channel support
Quoted 5 lines · Wanquan Zhong
Bind the MHI "ADB" channel to
WWAN_PORT_ADBso userspace can access the ADB port through the wwan subsystem.Signed-off-by Wanquan Zhong <[email protected]>
Quoted 21 lines
---
Unchanged from v6 patch 2/2; bundled with v1/v2 historically (Loic).drivers/net/wwan/mhi_wwan_ctrl.c | 1 + 1 file changed, 1 insertion(+)drivers/net/wwan/mhi_wwan_ctrl.c +1
-1@@ -263,6 +263,7 @@ static const struct mhi_device_id mhi_wwan_ctrl_match_table[] = { { .chan = "DIAG", .driver_data = WWAN_PORT_QCDM }, { .chan = "FIREHOSE", .driver_data = WWAN_PORT_FIREHOSE }, { .chan = "NMEA", .driver_data = WWAN_PORT_NMEA }, + { .chan = "ADB", .driver_data = WWAN_PORT_ADB }, {}, };MODULE_DEVICE_TABLE (mhi, mhi_wwan_ctrl_match_table); --2.53.0