Commit graph

894,770 commits

Author SHA1 Message Date
qctecmdr
bb4160a82e Merge "scsi: ufs: Add UFS3.0 in ufs HCI version check" 2020-12-31 04:41:33 -08:00
qctecmdr
19ee4e1f60 Merge "soc: qcom: socinfo: Add soc information for Monaco" 2020-12-31 04:41:33 -08:00
qctecmdr
c8a24a5ba5 Merge "msm: pcie: Return EACCESS when link access is not allowed" 2020-12-31 04:41:32 -08:00
qctecmdr
d703eb2b30 Merge "icnss2: change to avoid device crash if RF card is not present" 2020-12-31 04:41:32 -08:00
qctecmdr
fbf1700c12 Merge "soc: fix macro definitions of subsystems" 2020-12-31 04:41:31 -08:00
qctecmdr
570af260d2 Merge "pinctrl: qcom: Update GPIO to PDC map for yupik" 2020-12-31 04:41:31 -08:00
Chandana Kishori Chiluveru
e9000bd1eb usb: gsi: Fix runtime PM usage count for MBIM interface
GSI Driver get the usage count in work handler when set_alt 1 happens
and this counter will decrement in disconnect work due to cable disconnect
or in gsi_suspend for suspended state.

In this case set alt to 0 came for MBIM interface and clear the
data_interface_up flag. After that suspend happens and does not decrement
the counter in gsi_suspend. This causes a mismatch of usage count and
usb not entering to low power mode.

Fix this by checking for USB_PROT_GPS_CTRL instead of data_interface_up.

Change-Id: Iaabf3de46ed72e33980d1e3e386e8ca0ae651c74
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-31 15:07:42 +05:30
Manu Gautam
0871614c5d usb: gsi: Prevent function remote-wakeup without function suspend
Some hosts enable function remote-wakeup immediately after
enumeration. But they don't perform function_suspend before U3
and also don't disable function remote-wakeup even if entering
deep sleep state and don't intend to wakeup from USB. One of the
reason could be that they rely on device to initiate remote-wakeup
only if it function suspended. Hence, update the check to initiate
function remote-wakeup only if device is function suspended.

Change-Id: I3d6bb817d9174f94051b1e1ef74dc9c941c66f4c
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-12-31 14:33:21 +05:30
Jagadeesh Kona
327c0a3539 clk: qcom: debugcc-shima: Remove measure support for unregistered clocks
Remove debug measure support for clocks that are not registered with the
clock framework. While at it update the external clocks in debugcc to
measure only clocks.

Change-Id: Icd6d59a098d116074403d24d9bc990fdebd7bdd7
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-12-31 13:43:16 +05:30
Harsh Agarwal
430a8df3f9 usb: xhci: Increase xhci halt timeout
Currently, certain controllers with lower core clock rates, takes
more than 32ms to set the halted bit. This results in XHCI halt
timeout.
Fix this by increasing the timeout to 48ms.

Change-Id: I2f2715a11a947e01303c659e257ef0cabb311cac
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
2020-12-31 00:05:33 -08:00
Rakesh Kota
80d4f5d332 dt-bindings: clock: Add support for clock ids for sdxnightjar
Add MSS_Q6_BIMC_AXI and MSS_CFG_AHB clock IDs for GCC and clients
to be able to request for clocks from these clock controllers.

Change-Id: I2a7315d8d40348cf08515be9a43ad004f0c1d064
Signed-off-by: Rakesh Kota <kotarake@codeaurora.org>
2020-12-31 10:50:28 +05:30
Maulik Shah
204e537e66 pinctrl: qcom: Add GPIO to PDC wakeirq map for sdmshrike
Add GPIO to PDC wakeirq map.
While at this also update direct connect irq map.

Change-Id: I6c1f485f33077f95473c93b981ab7bec683ccf9f
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-12-30 20:53:07 -08:00
Paras Singh Jain
a86b4738f0 defconfig : Enabling NET and NF configs
Enable config to support basic network functionality

Acked-by: Utkal shah <c_ushah@qti.qualcomm.com>
Change-Id: Id04a561687924aafd6342a4cf833ee695609db7a
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-12-31 10:15:50 +05:30
Kiran Gunda
e69e8b1b39 leds: qpnp-flash-v2: Fix out-of-bound array access
Fix out-of-bound array access by using the right
offset-mask in getting the OTST status.

Change-Id: I89a4176251ea9157c5dd997b3c11bfcb07420a4f
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-12-30 19:54:50 -08:00
qctecmdr
b22b60a089 Merge "clk: qcom: debugcc: Add support for CPU clock measure for SDXNIGHTJAR" 2020-12-30 06:11:58 -08:00
qctecmdr
bc6a760dd4 Merge "arm64: defconfig: enable cma debugfs" 2020-12-30 06:11:58 -08:00
qctecmdr
fd3064d1d5 Merge "defconfig: gen3auto: Enable arm smmu driver for gen3auto" 2020-12-30 06:11:58 -08:00
qctecmdr
afff9567ed Merge "clk: qcom: clk-alpha-pll: Replace hw->init in PLL code" 2020-12-30 06:11:58 -08:00
qctecmdr
414ed94edd Merge "defconfig: sdxlemur: Enable R8125 driver" 2020-12-30 06:11:57 -08:00
qctecmdr
8cd8f78e23 Merge "arm64: defconfig: Add support for CAMCC for YUPIK" 2020-12-30 06:11:57 -08:00
Sandeep Singh
ac7f6bdf53 icnss2: change to avoid device crash if RF card is not present
This changes avoids device crash if Rf card is not present
in device.

Change-Id: I4b22ad0023a38e5b3ef49d6bf0e404b00c608115
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-12-30 05:26:35 -08:00
Harshal Ahire
cb979ec681 soc: fix macro definitions of subsystems
Fix subsystem macro definitions to support SSR/PDR.

Change-Id: I5ed9a8520600d68cd1b997f3cc4a22ca869a8b83
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2020-12-30 18:00:18 +05:30
Vivek Pernamitta
a8cbb6a841 msm: pcie: Return EACCESS when link access is not allowed
Return EACCESS instead of EIO when link access is not
allowed at prevent l1, so client driver will procced
based on the return value.

Change-Id: Iee3b9a65609db1272be550089948d07527c7e134
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2020-12-30 17:52:34 +05:30
Srinivasarao P
b94fb2a794 Merge android11-5.4.61+ (662e2b3) into msm-5.4
* refs/heads/tmp-662e2b3:
  ANDROID: ABI: add allowed GKI symbol for Exynosauto SoC
  ANDROID: ABI: update allowed list for exynosauto SoC
  ANDROID: ABI: add symbols of gpiod_get to unisoc
  ANDROID: usb: gadget: f_accessory: fix CTS test stuck
  ANDROID: ABI: add allowed list for Exynosauto SoC
  ANDROID: ABI: update allowed list for exynosauto SoC
  ANDROID: sched: Export sched_setattr_nocheck

Change-Id: I7e5c88e1549c83f29881eed70b410f461d26e78c
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2020-12-30 16:48:51 +05:30
Rakesh Kota
b001233870 defconfig: Enable CPU clock drivers for sdxnightjar
Enable CPU clock drivers to support cpu frequency scaling.

Change-Id: I489ae54357a7058304ef7f9309589f772462df24
Signed-off-by: Rakesh Kota <kotarake@codeaurora.org>
2020-12-30 15:30:34 +05:30
Taniya Das
86ae67086c clk: qcom: cpu-sdxnightjar: Add support for cpu clock driver
Add support for sdxnightjar CPU clock driver for
controlling cpu clocks.

Change-Id: I1fabb167a5c2d5e42d0a8baed13bc94d31ce97bf
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-12-30 15:25:47 +05:30
qctecmdr
53cbc770ba Merge "cnss2: Add new API to get QMI related timeouts" 2020-12-30 01:29:22 -08:00
qctecmdr
b31e09bdd8 Merge "cnss2: Kconfig: Add CONFIG_CNSS_WCN7850 flag" 2020-12-30 01:29:21 -08:00
qctecmdr
ed275f783d Merge "defconfig: Enable icnss2 config for Yupik" 2020-12-30 01:29:21 -08:00
qctecmdr
afaf0dd0ad Merge "i2c-msm-geni: Initialize completion variable before txfer request" 2020-12-30 01:29:21 -08:00
qctecmdr
ab416fc7c2 Merge "coresight: Add snapshot of Coresight Fuse driver" 2020-12-30 01:29:20 -08:00
qctecmdr
3572600b5b Merge "usb: dwc3-msm: Add support for snps SSPHY suspend in system suspend" 2020-12-30 01:29:20 -08:00
qctecmdr
ceec7e5038 Merge "msm: adsprpc: Copy correct size for async job" 2020-12-30 01:29:20 -08:00
Nitin Rawat
b2531733b8 scsi: ufs: Add UFS3.0 in ufs HCI version check
UFS controller in the newer target supports UFS HCI specs
version 3.0. Hence Adding UFS3.0 in UFS HCI version check
to avoid logging the error message.

Change-Id: Ibbbb482a26a3ffd50667615bf2795404381a4111
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-12-30 12:20:44 +05:30
Maria Yu
a338cd0285 arm64: defconfig: explicitly SLIMBUS_MSM_NGD as m
SLIMBUS_MSM_NGD should be m not y for the current
device to be normally boot up and function.
Explicitly mark CONFIG_SLIMBUS as m as well for
normal function.

Change-Id: I09502c2300f9ee5fe06a82146b5832a13a576cff
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
2020-12-30 14:41:24 +08:00
qctecmdr
5183288436 Merge "defconfig: Enable SOCINFO config for sdxnightjar target" 2020-12-29 19:19:54 -08:00
qctecmdr
617a6ca32e Merge "drivers: lpm-levels: Return correct value while suspend" 2020-12-29 19:19:53 -08:00
qctecmdr
1bbfb84274 Merge "Merge android11-5.4.61+ (e0b1644) into msm-5.4" 2020-12-29 19:19:53 -08:00
qctecmdr
1ac401219b Merge "interconnect: qcom: Add OSM L3 support on SCSHRIKE" 2020-12-29 19:19:53 -08:00
qctecmdr
629b150b59 Merge "icnss2: Clear SMP2P data during SSR" 2020-12-29 19:19:52 -08:00
qctecmdr
d6c74bdc8a Merge "usb: f_gsi: Increase GPS EP maxpacket size to 64bytes" 2020-12-29 19:19:52 -08:00
qctecmdr
ddd209806d Merge "usb: f_gsi: Disable function remote wake-up capability for DPL" 2020-12-29 19:19:52 -08:00
qctecmdr
aeffceb7f7 Merge "cnss2: Add config to disable time sync feature" 2020-12-29 19:19:51 -08:00
qctecmdr
d8a0d0db56 Merge "cnss2: Use proper DMA mask based on device ID" 2020-12-29 19:19:51 -08:00
Will Deacon
a9911f2a9a UPSTREAM: arm64: pgtable: Fix pte_accessible()
pte_accessible() is used by ptep_clear_flush() to figure out whether TLB
invalidation is necessary when unmapping pages for reclaim. Although our
implementation is correct according to the architecture, returning true
only for valid, young ptes in the absence of racing page-table
modifications, this is in fact flawed due to lazy invalidation of old
ptes in ptep_clear_flush_young() where we elide the expensive DSB
instruction for completing the TLB invalidation.

Rather than penalise the aging path, adjust pte_accessible() to return
true for any valid pte, even if the access flag is cleared.

Bug: 176475096
Change-Id: Ifd7919b4e9b790a94802b0115f93a9a260757036
Cc: <stable@vger.kernel.org>
Fixes: 76c714be0e ("arm64: pgtable: implement pte_accessible()")
Reported-by: Yu Zhao <yuzhao@google.com>
Acked-by: Yu Zhao <yuzhao@google.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20201120143557.6715-2-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit 07509e10dcc77627f8b6a57381e878fe269958d3)
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-12-29 10:00:50 -08:00
Odelu Kukatla
d62a124cb9 interconnect: qcom: Add interconnect stub provider driver for MONACO
Introduce interconenct stub provider driver using the interconnect
framework.

Change-Id: Ia765a1ba851856bb3709c9f12cdbd1c412beb91e
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-12-29 21:08:45 +05:30
Chandana Kishori Chiluveru
ccc0b0a122 usb: gadget: composite: Add spinlock protection for usb string descriptor
During composition switch, android driver stops data transfers first
and removes configuration before disabling the pullup. With this sequence
there is a possibility for a race where usb_remove_config is in progress
during which pullup is active and sending the setup request for strings
with zero configuration value. Hence fix the issue by adding spinlock
protection for get_sring descriptor.

Change-Id: I13c601f0e48d847b322a2761cd52268963cacf01
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-29 06:15:46 -08:00
Jagadeesh Kona
d1f568dc11 clk: qcom: Remove measure support for unregistered clocks in Lahaina
Remove debug measure support for clocks that are not registered with
the clock framework.

Change-Id: I69461a35ad219aec8d0cdd54666234ad01fbc1df
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-12-29 16:09:21 +05:30
Vivek Pernamitta
f1bdd75085 cnss2: Prevent PCIE l1 substatus at MHI fast resume
Prevent PCIE L1 substates while MHI fast resume to make
device not to enter any low power substates and allow l1
once mhi fast resume is completed.

Change-Id: Id92af704ce6f38ce13df25ef8be5d9c67b4b588a
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2020-12-29 16:08:27 +05:30
Maulik Shah
eb3485b31c pinctrl: qcom: Update GPIO to PDC map for yupik
Update GPIO to PDC as per latest HW map.

Change-Id: Ic79e0afdef2fa1c5b67709f75be9dff73e92af18
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-12-29 13:32:50 +05:30