android_kernel_motorola_sm6225/drivers
Slark Xiao 37c86f7712 USB: serial: option: add support for Cinterion MV31 with new baseline
commit 158f7585bfcea4aae0ad4128d032a80fec550df1 upstream.

Adding support for Cinterion device MV31 with Qualcomm
new baseline. Use different PIDs to separate it from
previous base line products.
All interfaces settings keep same as previous.

Below is test evidence:
T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  6 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1e2d ProdID=00b8 Rev=04.14
S:  Manufacturer=Cinterion
S:  Product=Cinterion PID 0x00B8 USB Mobile Broadband
S:  SerialNumber=90418e79
C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
I:  If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
I:  If#=0x3 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=60 Driver=option
I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1e2d ProdID=00b9 Rev=04.14
S:  Manufacturer=Cinterion
S:  Product=Cinterion PID 0x00B9 USB Mobile Broadband
S:  SerialNumber=90418e79
C:  #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=50 Driver=qmi_wwan
I:  If#=0x1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option
I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=60 Driver=option
I:  If#=0x3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option

For PID 00b8, interface 3 is GNSS port which don't use serial driver.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
Link: https://lore.kernel.org/r/20220601034740.5438-1-slark_xiao@163.com
[ johan: rename defines using a "2" infix ]
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-25 11:49:16 +02:00
..
accessibility
acpi ACPI: sysfs: Fix BERT error region memory mapping 2022-06-06 08:24:20 +02:00
amba ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" 2021-11-06 13:58:45 +01:00
android binder: fix async_free_space accounting for empty parcels 2022-01-05 12:34:59 +01:00
ata ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo() 2022-06-25 11:49:14 +02:00
atm atm: eni: Add check for dma_map_single 2022-03-23 09:10:44 +01:00
auxdisplay auxdisplay: ht16k33: Fix frame buffer device blanking 2021-11-26 11:36:15 +01:00
base x86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data 2022-06-16 13:18:52 +02:00
bcma bcma: Fix memory leak for internally-handled cores 2021-09-22 11:47:55 +02:00
block nbd: fix io hung while disconnecting device 2022-06-14 16:59:38 +02:00
bluetooth Bluetooth: hci_serdev: call init_rwsem() before p->open() 2022-04-15 14:14:47 +02:00
bus bus: ti-sysc: Fix warnings for unbind for serial 2022-06-14 16:59:33 +02:00
cdrom cdrom: gdrom: initialize global variable at init time 2021-05-26 11:48:34 +02:00
char random: credit cpu and bootloader seeds by default 2022-06-25 11:49:15 +02:00
clk clk: at91: generated: consider range when calculating best rate 2022-05-25 09:10:39 +02:00
clocksource clocksource/drivers/sp804: Avoid error on multiple instances 2022-06-14 16:59:37 +02:00
connector
cpufreq cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory 2021-10-06 15:31:21 +02:00
cpuidle cpuidle: Fix kobject memory leaks in error paths 2021-11-26 11:36:08 +01:00
crypto crypto: marvell/cesa - ECB does not IV 2022-06-14 16:59:24 +02:00
dax
dca
devfreq PM / devfreq: rk3399_dmc: Disable edev on remove() 2022-06-14 16:59:17 +02:00
dio
dma dmaengine: stm32-mdma: remove GISR1 register 2022-06-14 16:59:26 +02:00
dma-buf dma-buf/sync_file: Don't leak fences on merge failure 2021-07-28 11:13:45 +02:00
edac EDAC: Fix calculation of returned address and next offset in edac_align_ptr() 2022-02-23 11:58:40 +01:00
eisa
extcon extcon: Modify extcon device to be created after driver data is set 2022-06-14 16:59:37 +02:00
firewire firewire: core: extend card->lock in fw_core_handle_bus_reset 2022-05-12 12:20:24 +02:00
firmware firmware: dmi-sysfs: Fix memory leak in dmi_sysfs_register_handle 2022-06-14 16:59:33 +02:00
fmc
fpga fpga: machxo2-spi: Fix missing error code in machxo2_write_complete() 2021-10-06 15:31:14 +02:00
fsi fsi/sbefifo: Fix reset timeout 2021-07-20 16:15:55 +02:00
gnss
gpio gpio: mvebu/pwm: Refuse requests with inverted polarity 2022-05-25 09:10:40 +02:00
gpu drm/radeon: fix a possible null pointer dereference 2022-06-14 16:59:38 +02:00
hid HID: elan: Fix potential double free in elan_input_configured 2022-06-14 16:59:20 +02:00
hsi HSI: core: Fix return freed object in hsi_new_client 2022-01-27 09:04:24 +01:00
hv random: remove unused irq_flags argument from add_interrupt_randomness() 2022-06-25 11:49:01 +02:00
hwmon hwmon: Make chip parameter for with_info API mandatory 2022-06-14 16:59:17 +02:00
hwspinlock
hwtracing coresight: cpu-debug: Replace mutex with mutex_trylock on panic notifier 2022-06-14 16:59:32 +02:00
i2c i2c: cadence: Increase timeout per message if necessary 2022-06-14 16:59:34 +02:00
ide
idle
iio iio: dummy: iio_simple_dummy: check the return value of kstrdup() 2022-06-14 16:59:36 +02:00
infiniband RDMA/rxe: Generate a completion for unsupported/invalid opcode 2022-06-14 16:59:30 +02:00
input Input: bcm5974 - set missing URB_NO_TRANSFER_DMA_MAP urb flag 2022-06-14 16:59:39 +02:00
iommu iommu/msm: Fix an incorrect NULL check on list iterator 2022-06-14 16:59:29 +02:00
ipack ipack: ipoctal: fix module reference leak 2021-10-06 15:31:25 +02:00
irqchip irqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions 2022-06-25 11:49:16 +02:00
isdn mISDN: change function names to avoid conflicts 2022-01-11 13:58:50 +01:00
leds leds: ktd2692: Fix an error handling path 2021-07-20 16:15:57 +02:00
lightnvm lightnvm: disable the subsystem 2022-05-01 17:00:38 +02:00
macintosh macintosh/via-pmu: Fix build failure when CONFIG_INPUT is disabled 2022-06-14 16:59:18 +02:00
mailbox mailbox: forward the hrtimer if not queued and under a lock 2022-06-14 16:59:25 +02:00
mcb mcb: fix error handling in mcb_alloc_bus() 2021-10-06 15:31:12 +02:00
md md/raid0: Ignore RAID0 layout if the second zone has only one device 2022-06-14 16:59:39 +02:00
media media: coda: Add more H264 levels for CODA960 2022-06-14 16:59:28 +02:00
memory memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe 2022-04-20 09:12:48 +02:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-26 11:36:09 +01:00
message
mfd mfd: ipaq-micro: Fix error check return value of platform_get_irq() 2022-06-14 16:59:24 +02:00
misc misc: atmel-ssc: Fix IRQ check in ssc_probe 2022-06-25 11:49:15 +02:00
mmc mmc: block: Fix CQE recovery reset success 2022-06-14 16:59:39 +02:00
mtd mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N 2022-06-14 16:59:39 +02:00
mux
net net: bgmac: Fix an erroneous kfree() in bgmac_remove() 2022-06-25 11:49:16 +02:00
nfc nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred 2022-06-25 11:49:15 +02:00
ntb NTB: perf: Fix an error code in perf_setup_inbuf() 2021-09-22 11:48:13 +02:00
nubus
nvdimm
nvme nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags 2022-06-14 16:59:17 +02:00
nvmem nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells 2021-10-20 11:23:02 +02:00
of fdt: add support for rng-seed 2022-06-25 11:48:58 +02:00
opp opp: remove WARN when no valid OPPs remain 2021-09-03 09:58:01 +02:00
oprofile
parisc parisc: Fix CPU affinity for Lasi, WAX and Dino chips 2022-04-15 14:15:04 +02:00
parport parport: remove non-zero check on count 2021-09-22 11:48:08 +02:00
pci PCI: qcom: Fix unbalanced PHY init on probe errors 2022-06-14 16:59:27 +02:00
pcmcia pcmcia: db1xxx_ss: restrict to MIPS_DB1XXX boards 2022-06-14 16:59:31 +02:00
perf arm_pmu: Validate single/group leader events 2022-04-27 13:39:45 +02:00
phy phy: qcom-qmp: fix reset-controller leak on probe errors 2022-06-14 16:59:30 +02:00
pinctrl pinctrl: mvebu: Fix irq_of_parse_and_map() return value 2022-06-14 16:59:24 +02:00
platform platform/x86: samsung-laptop: Fix an unsigned comparison which can never be negative 2022-04-27 13:39:43 +02:00
pnp
power power: supply: axp20x_battery: properly report current when discharging 2022-04-15 14:15:01 +02:00
powercap
pps
ps3
ptp ptp: replace snprintf with sysfs_emit 2022-04-15 14:15:00 +02:00
pwm pwm: lp3943: Fix duty calculation in case period was clamped 2022-06-14 16:59:31 +02:00
rapidio rapidio: handle create_workqueue() failure 2021-05-26 11:48:33 +02:00
ras
regulator regulator: pfuze100: Fix refcount leak in pfuze_parse_regulators_dt 2022-06-14 16:59:22 +02:00
remoteproc remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region 2022-04-15 14:14:51 +02:00
reset reset: tegra-bpmp: Restore Handle errors in BPMP response 2022-04-27 13:39:43 +02:00
rpmsg rpmsg: qcom_smd: Fix returning 0 if irq_of_parse_and_map() fails 2022-06-14 16:59:32 +02:00
rtc rtc: mt6397: check return value after calling platform_get_resource() 2022-06-14 16:59:32 +02:00
s390 s390/lcs: fix variable dereferenced before check 2022-05-18 09:42:48 +02:00
sbus
scsi scsi: pmcraid: Fix missing resource cleanup in error case 2022-06-25 11:49:14 +02:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 11:36:21 +01:00
siox
slimbus slimbus: qcom: Fix IRQ check in qcom_slim_probe 2022-05-18 09:42:49 +02:00
sn
soc soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 16:59:32 +02:00
soundwire soundwire: stream: fix memory leak in stream config error path 2021-05-22 10:59:30 +02:00
spi spi: img-spfi: Fix pm_runtime_get_sync() error checking 2022-06-14 16:59:20 +02:00
spmi
ssb ssb: Fix error return code in ssb_bus_scan() 2021-07-20 16:15:50 +02:00
staging comedi: vmk80xx: fix expression for tx buffer size 2022-06-25 11:49:16 +02:00
target scsi: target: tcmu: Fix possible page UAF 2022-04-20 09:12:49 +02:00
tc
tee tee: fix put order in teedev_close_context() 2022-01-27 09:04:17 +01:00
thermal thermal: int340x: Increase bitmap size 2022-04-15 14:14:42 +02:00
thunderbolt thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue 2021-06-03 08:38:04 +02:00
tty tty: goldfish: Fix free_irq() on remove 2022-06-25 11:49:15 +02:00
uio
usb USB: serial: option: add support for Cinterion MV31 with new baseline 2022-06-25 11:49:16 +02:00
uwb
vfio vfio: Use config not menuconfig for VFIO_NOIOMMU 2021-09-22 11:48:01 +02:00
vhost vringh: Fix loop descriptors check in the indirect cases 2022-06-14 16:59:38 +02:00
video video: fbdev: pxa3xx-gcu: release the resources correctly in pxa3xx_gcu_probe/remove() 2022-06-14 16:59:35 +02:00
virt
virtio virtio-mmio: fix missing put_device() when vm_cmdline_parent registration failed 2022-06-25 11:49:15 +02:00
visorbus visorbus: fix error return code in visorchipset_init() 2021-07-20 16:15:55 +02:00
vlynq
vme
w1 w1: w1_therm: fixes w1_seq for ds28ea00 sensors 2022-04-15 14:15:03 +02:00
watchdog ar7: fix kernel builds for compiler test 2021-11-26 11:36:15 +01:00
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-11 10:15:13 +01:00
zorro
Kconfig
Makefile