Commit graph

892,893 commits

Author SHA1 Message Date
Mayank Rana
640176fca2 usb: f_gsi: Send zero length packet for MBIM/GPS on cable connect
Qmuxd bridge daemon is opening /dev/gps before USB enumerated with
USB composition having GPS interface as part of it. This daemon
performs EP_LOOKUP ioctl and encounters failure. It keeps retrying
for some iterations, and later goes into sleep and doesn't perform
any IOs. This results into no GPS related IOs between daemon and
host side QMUXD driver. Hence this change sends zero length packet
for MBIM (as QBI also faces same issue) and GPS interface when
USB cable is connected and those interfaces are part of USB
composition. Both QBI and Qmuxd bridge daemon are now wait for zero
length packet as indication for change in USB cable status, and
queries using GSI_MBIM_GPS_USB_STATUS IOCTL (newly added). Based on
this IOCTL related response, both daemons performs read/write with
created control devices.

Change-Id: Ib47443fe0e473ab4e27facb3f2927b8c13966158
Signed-off-by: Mayank Rana <[email protected]>
2020-12-08 13:56:09 -08:00
Sean Tranchetti
089ff07903 Revert "netfilter: Unlock xt_table later"
This reverts commit 24416c2917.

Change-Id: Ifa25450a29c2a2b383ab62c40c9b98a6ec6ac94f
Signed-off-by: Sean Tranchetti <[email protected]>
2020-12-08 11:53:38 -08:00
Hemant Kumar
33be9e30f1 usb: gadget: f_gsi: Add support for gps function driver
gps usb functionality is implemented using qmi packets.
User space entity sends and receives QMI packets using
misc device named /dev/gps.

Change-Id: I73af1caa9b272597909199022739390274a4b034
Signed-off-by: Hemant Kumar <[email protected]>
Signed-off-by: Elson Roy Serrao <[email protected]>
2020-12-08 10:58:33 -08:00
qctecmdr
fa889c3aae Merge "interconnect: qcom: Add interconnect provider driver for Yupik" 2020-12-08 09:27:16 -08:00
qctecmdr
9a035516a2 Merge "mhi_dev: add MHI device driver snapshot" 2020-12-08 09:27:16 -08:00
qctecmdr
3b438cfcad Merge "scsi: ufs: Correct H8_ENTER_COND_MASK" 2020-12-08 09:27:16 -08:00
qctecmdr
32f19d33cd Merge "HID: qvr: Remove device pointer on disconnect" 2020-12-08 09:27:16 -08:00
qctecmdr
388412dbd4 Merge "defconfig: Enable RTB on sdxlemur" 2020-12-08 09:27:15 -08:00
qctecmdr
1549f8a028 Merge "power: smb1398-charger: Toggle UVLO-config on USB removal and shutdown" 2020-12-08 09:27:15 -08:00
qctecmdr
89fbbd03f2 Merge "defconfig: Enable SPMI PMIC configuration for sdxnightjar" 2020-12-08 09:27:15 -08:00
qctecmdr
ead299c4a5 Merge "drivers: soc: qcom: rimps_memlat: free attribute pointer" 2020-12-08 09:27:14 -08:00
qctecmdr
d6ba2746fc Merge "msm: ADSPRPC: Handle third party applications" 2020-12-08 09:27:14 -08:00
qctecmdr
cb7b0f1e7f Merge "msm: kgsl: Don't access addr_mode_cntl registers for holi through host" 2020-12-08 09:27:14 -08:00
qctecmdr
e71fa8be05 Merge "netfilter: Changes to handle segmentation in SIP ALG" 2020-12-08 09:27:13 -08:00
Hyeongseok Kim
6ecdc84906 dm verity: skip verity work on I/O errors when system is shutting down
If emergency system shutdown is called, like by thermal shutdown,
dm device could be alive when the block device couldn't process
I/O requests anymore. In this status, the handling of I/O errors
by new dm I/O requests or by those already in-flight can lead to
a verity corruption state, which is misjudgment.
So, skip verity work for I/O error when system is shutting down.

Change-Id: I7b2e79283bb5810cefe688bf43b9ae97030ce917
Reviewed-by: Sami Tolvanen <[email protected]>
Signed-off-by: Hyeongseok Kim <[email protected]>
Patch-mainline: dm-devel @ 12/03/20, 00:46
Signed-off-by: Ravi Kumar Siddojigari <[email protected]>
2020-12-08 22:53:08 +05:30
Anirudh Ghayal
5bf4724a10 power: qti_battery_charger: Add a shutdown notification
Notify charger-firmware of a shutdown event.

Change-Id: I291c9230bb7fb5df414db8f80bfb17a50c8fc7c1
Signed-off-by: Anirudh Ghayal <[email protected]>
2020-12-08 22:50:21 +05:30
qctecmdr
d073975204 Merge "gki: Set GKI_VERSION to 4271ad6" 2020-12-08 09:13:49 -08:00
Ravi Kumar Siddojigari
2a92b87a13 Revert "dm verity: correcting logic used with corrupted_errs counter"
This reverts commit b649934e08.

Based on the upstream review comments its not advised to
ignore the block error and continue so reverting this .

Change-Id: Icf18bd5bdba96b396eee3ddff7e6d39a9bed5816
Signed-off-by: Ravi Kumar Siddojigari <[email protected]>
2020-12-08 22:32:24 +05:30
Ravikanth Tuniki
0f568f21bd defconfig: Enable Novatek NT36xxx Touch for yupik target
This change enables novatek nt36xxx config for holi target.

Change-Id: I11842aae692dd9294c314e0a7fddb1c9cf63942b
Signed-off-by: Ravikanth Tuniki <[email protected]>
2020-12-08 18:19:05 +05:30
Jagadeesh Kona
8420eade88 dt-bindings: clock: Update clock ID's of GPUCC and VideoCC for YUPIK
Cleanup the clock ID's of GPU and Video clock controllers that are
not required to be controlled from HLOS.

Change-Id: I0d5b67ddbf3f080c70ed0a1a743f3bf7afef240f
Signed-off-by: Jagadeesh Kona <[email protected]>
2020-12-08 16:35:45 +05:30
Prudhvi Yarlagadda
7cd5c82cbd serial: msm_geni_serial: Pull RFR before stop_rx for uart
Pull the RFR line before doing stop_rx in uart driver.
This is to prevent any rx data to come into the uart rx fifo when
stop_rx is being executed.
Remove the rx length zero check in
handling dma rx to prevent race conditions with EOT and DMA_DONE
interrupt bits.

Issue scenarios could be that during baud rate change/ runtime
suspend or any other place where stop_rx is used, there might
be a race between rx data entering uart rx fifo and availability
of dma buffers in uart driver. In this scenarios there will
be interrupt storm with rx water mark interrupt.

Change-Id: I92163c4997c1709269dce67a1d492533f710abfb
Signed-off-by: Prudhvi Yarlagadda <[email protected]>
2020-12-08 15:34:03 +05:30
Kavya Nunna
b4f9244322 power: smb358: Add snapshot of smb358 charger
Add snapshot of the smb358 charger as of msm-4.14
commit 790f0644f00c ("net: stmmac: Alert QTI on SDX
of host AP's SSR status"). Fix minor static analysis
tool errors.

Change-Id: I7c88f48a90cfca6c22ac4ed5289f78a32e524dc4
Signed-off-by: Kavya Nunna <[email protected]>
2020-12-08 14:51:36 +05:30
Fenglin Wu
9b308d8644 input: qcom-hv-haptics: fix out of bound of FIFO samples array
When calculating play length for FIFO play, it is out of bound
of the FIFO samples array. Fix it.

Change-Id: I8ad458802a0070f493ac53160ab90a6cf648d9e7
Signed-off-by: Fenglin Wu <[email protected]>
2020-12-08 16:49:43 +08:00
Ravikanth Tuniki
8025e451a9 input: touchscreen: nt36xxx: Add Chip id and firmware
Add novatek chip id and firmware during boot up to
enable touch.

Change-Id: I382ae51c7bb4bf270c2e01b484281fcc24270062
Signed-off-by: Ravikanth Tuniki <[email protected]>
2020-12-08 12:07:23 +05:30
Veera Vegivada
5cb24d0d31 scsi: ufs-qcom: update phy revision information
Update phy revision information before calling phy_init(),
so that phy driver can perform revision specific configurations.

Change-Id: I834306851e30a203705ad824fc142813b989abc5
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-08 11:49:40 +05:30
Veera Vegivada
5f2c404943 defconfig: gen3auto: Enable SPMI PMIC drivers
Enable MFD SPMI PMIC driver and several SPMI and PMIC drivers
which are needed to provide baseline support of PMIC peripherals.

Change-Id: Ic0b24c62bec654c61bbf0034c20d775d686eb9c4
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-08 11:42:53 +05:30
Veera Vegivada
3a9c801123 arm64: defconfig: Add mproc related defconfig for sa8155
Add mproc related defconfig for sa8155 which inlcudes
qrtr,hwspinlock,mailbox,glink,smem,smp2p,ipc irq bridge
and ipc logging related configurations.

Change-Id: I5d901e45a769df9fa81c27212890cb7f40b5728e
Signed-off-by: Arun Prakash <[email protected]>
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-08 11:41:29 +05:30
Veera Vegivada
2988031dd0 arm64: defconfig: Enable UFS controller for SA8155
Add support for UFS controller and add support for
QTI inline encryption.

Change-Id: I680c75448c0fd9b2e6c37d106075c1a39213abac
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-08 11:38:57 +05:30
Veera Vegivada
f02fd5a0d2 arm64: defconfig: Enable OSM L3 interconnect driver for SM8150
Enable interconnect L3 driver so that consumer can vote
for L3 performance points.

Change-Id: Id0ff3e976976a05fa6ff47c7ccb9e1a3a3aed2e3
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-08 11:29:44 +05:30
Veera Vegivada
4dff16696a arm64: defconfig: Enable clock controller drivers for SM8150
Enable camcc, dispcc, gpucc, npucc, scc, videocc, debugcc
and also enable cpufreq.

Change-Id: Iec12b582f68760807d0d07182229634e329f19d0
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-08 11:29:09 +05:30
Veera Vegivada
53e67930f0 arm64: defconfig: Enable SM8150 interconnect driver
Enable the SM8150 interconnect driver so that consumers are
able to obtain their path handles properly.

Change-Id: Ie099accf2dbfa587f23dd9f434bf04c7eca6b348
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-08 11:27:39 +05:30
Anirudh Ghayal
c7f8cad07f power: smb1355: Extend minoff-time and dead-time for SMB1355
To improve OVP handling increase the min-offtime and dead-time
as per hardware recommendation.

Change-Id: I28040808d6c114b718aad0e0ab63554683e7746f
Signed-off-by: Anirudh Ghayal <[email protected]>
2020-12-08 09:24:08 +05:30
Subbaraman Narayanamurthy
1ed4517548 iio: adc: qcom-spmi-adc5: add an unique irq name
Currently, interrupts of qcom-spmi-adc5 driver are registered
with name "pm-adc5". However on platforms with multiple PMICs
that can have different ADC types (adc5 or adc7), this naming
is not user friendly when looking at interrupt data. Add a name
that looks unique for different adc types so that they can be
interpreted easily.

Change-Id: Iac1080dc8e02d278b30cff0d61eca40e081bc306
Signed-off-by: Subbaraman Narayanamurthy <[email protected]>
2020-12-07 19:09:23 -08:00
Mayank Rana
06d5ffb0f1 sound: usb: Unmap secondary event ring before freeing
USB secondary event ring is being freed before it is being unmap.
Fix this by calling xhci_sec_event_ring_cleanup() after unmapping.
Also move secondary event ring cleanup and unmap related duplicate
code into one API.

Change-Id: I420f53d9e3ad6aa7b310dc354c7d35ce139afbe9
Signed-off-by: Mayank Rana <[email protected]>
2020-12-07 14:03:05 -08:00
rbandi
e84d2834a2 HID: qvr: Remove device pointer on disconnect
Make local device pointer NULL when .remove is
invoked.

Change-Id: I5bf91367b633abf79cbc60ef5bdf93cca955902c
Signed-off-by: rbandi <[email protected]>
2020-12-07 09:07:45 -08:00
Santosh Mardi
a2bf9edd8b drivers: soc: qcom: rimps_memlat: free attribute pointer
Attribute pointer used while creating the common
and monitor pmu events, needs to be freed while returning
from function.

Change-Id: I7862e8ec81754102d2700cac03bb739c9bcdf32b
Signed-off-by: Santosh Mardi <[email protected]>
2020-12-07 02:37:43 -08:00
Santosh Mardi
e68fe94391 drivers: soc: qcom: rimps_memlat: update available frequencies format
Update available freuqency output format, previously entries in the
output is separated with new line, update this format to have space
after each entry instead of new line.

Also update the available frequency node from available_freq to
available_frequencies.

Change-Id: I2b2409168713477cbc801c8837a11c5c4613e996
Signed-off-by: Santosh Mardi <[email protected]>
2020-12-07 02:37:37 -08:00
Kavya Nunna
93af365ff2 defconfig: Enable SPMI PMIC configuration for sdxnightjar
Enable SPMI PMIC defconfigs for sdxnightjar for the SPMI
devices.

Change-Id: I36f12e942f8dc980f53024b5ae3585a428ec3589
Signed-off-by: Kavya Nunna <[email protected]>
2020-12-07 12:32:17 +05:30
Hareesh Gundu
d9b978c086 msm: kgsl: Don't access addr_mode_cntl registers for holi through host
Sometimes probably crashdump timeout scenarios accessing addr_mode_cntl
registers through the host path resulting to slave timeout issue.
Hence revert this commit 'fca32c53c237("msm: kgsl: Add addr_mode_cntl
registers for legacy snapshot for holi gpu")'.

Change-Id: I771d9aecad69dd03d7e2ab771aee164c1cdfeabd
Signed-off-by: Hareesh Gundu <[email protected]>
2020-12-06 21:44:26 -08:00
Monika Singh
3ba06afa44 firmware: qcom: tzbsp_diag info not required for qsee_log
In case of Qsee_log we are not using the tzbsp_diag_buf
so there is no need to copy that.

Change-Id: Iabffd1708507e16ef8d75102637fd45bb7182549
Signed-off-by: Monika Singh <[email protected]>
2020-12-07 09:19:13 +05:30
Anirudh Ghayal
ed3ba9ec79 power: smb1398-charger: Toggle UVLO-config on USB removal and shutdown
To prevent leakage in ship-mode toggle OVP_IGNORE_UVLO after
USB-removal and during shutdown.

Change-Id: Idb482dd63d4939be5b19594385c642a61531e662
Signed-off-by: Anirudh Ghayal <[email protected]>
2020-12-06 17:33:13 +05:30
qctecmdr
33569a19db Merge "iio: adc: Add support to read ADC5 current channels" 2020-12-05 23:42:41 -08:00
qctecmdr
506ffbdc3e Merge "dt-bindings: iio: Add support to read ADC5 current channels" 2020-12-05 23:42:40 -08:00
qctecmdr
cd70e1f455 Merge "input: touchscreen: nt36xxx: Fix Propagation" 2020-12-05 23:42:40 -08:00
qctecmdr
0249e58009 Merge "sched/walt: Improve the scheduler" 2020-12-05 23:42:40 -08:00
qctecmdr
ca8993b29a Merge "block: disable multi-page bvec" 2020-12-04 22:41:50 -08:00
Bao D. Nguyen
6809250dff scsi: ufs: Correct H8_ENTER_COND_MASK
Correct the parameters passed to GENMASK macro
for H8_ENTER_COND_MASK.

Change-Id: If9997c7fb18d28aacce58697666c1c36a56b9a68
Signed-off-by: Bao D. Nguyen <[email protected]>
2020-12-04 11:31:44 -08:00
qctecmdr
2376e2a4b4 Merge "defconfig: Enable EUD on sdxlemur" 2020-12-04 11:18:01 -08:00
qctecmdr
b5aa72cc8f Merge "msm: adsprpc: Change perf module design" 2020-12-04 11:18:01 -08:00
Blagovest Kolenichev
2ae07b4ea0 Merge android11-5.4.61+ (559c23e) into msm-5.4
* refs/heads/tmp-559c23e:
  ANDROID: vmlinux.lds.h: merge compound literal sections
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: ABI: update allowed list for QCOM
  ANDROID: GKI: add allowed list for Exynosauto SoC
  ANDROID: GKI: update allowed list for Exynosauto SoC

Change-Id: Ie14c0cd26fa28df04f104ce5249e4cebc7e43083
Signed-off-by: Blagovest Kolenichev <[email protected]>
2020-12-04 11:10:37 -08:00