Commit graph

895,202 commits

Author SHA1 Message Date
Pratham Pratap
d74075293e usb: core: Add 20ms of resume signalling while resuming usb device
Commit 9b04395cec ("usb: core: Reduce resume signalling time for
devices behind external hub") removed resume signalling time for
the devices which are connected behind external hub. Since the
current kernel doesn't have skip_resume handling, the devices even
connected to root hub will take this resume path while coming out
of pm_suspend, and this will lead to reset-resume as the driver is
not driving the resume signalling for 20ms.

Fix this by removing the check and drive resume signalling for all
the devices connected to the root hub.

Change-Id: Id13b0b1b55e86ee698b8ae7276b2f55e66f4155e
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-03-23 22:08:41 -07:00
Ritesh Kumar
172ca98496 input: touchscreen: nt36xxx: Avoid i2c transfer in LA during TUI
Switching between two TUI layouts, involves TUI current session
abort and start of new TUI session with next layout. In between
two layout transition, if display is touched and next TUI session
is started parallely. Ownership of register space is transferred
to Trusted VM leading to crash during i2c transfer in LA. This
change avoid i2c transfer in LA when TUI session is started.

Change-Id: I2f561fd43d3705c18f83556baac8166ede901605
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-03-24 09:59:54 +05:30
Hui Li
bb29264f35 msm: kgsl: Add hwcg table for A680
Currently A680 shares hwcg with A640, but A680
has some specific settings in GMU, which address
the MISC GPU hang issue observed on A680 when
enabled pre-emption.

Change-Id: I5b082a37ca4ec2dd92444ceaf6c6828472e8479d
Signed-off-by: Hui Li <hul@codeaurora.org>
2021-03-24 12:06:11 +08:00
Guodong Hu
b91468336f defconfig: quinvm: add CONFIG_AUDIO_QGKI CONFIG_MSM_EXT_DISPLAY
Added CONFIG_AUDIO_QGKI and CONFIG_MSM_EXT_DISPLAY.

Change-Id: I918fd8e890c5ab0a5b41353e8d6419919f9621eb
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2021-03-24 11:14:18 +08:00
Fenglin Wu
c04728a620 input: qcom-hv-haptics: Ignore checking HBoost status when SWR is playing
HBoost would be kept on when triggering a non-FIFO play with SWR playing
in the background, there is no need to wait HBoost to be ready hence bypass
the HBoost ready check in this case.

Change-Id: I68c4a97d1c5953fb5dc0dd53fa8792a02df4b3de
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2021-03-24 11:09:18 +08:00
qctecmdr
b5a3e71931 Merge "power: qti_typec_class: Add typec class support for micro USB" 2021-03-23 18:51:24 -07:00
qctecmdr
66d3ad8d91 Merge "input: touchscreen: focaltech: Skip gpio operations in SPI TUI" 2021-03-23 18:51:23 -07:00
qctecmdr
1195c537dd Merge "defconfig: Enable block encryption and fallback" 2021-03-23 18:51:23 -07:00
qctecmdr
b7d901f123 Merge "soc: qcom: hab: add send/recv total msg count" 2021-03-23 18:51:23 -07:00
qctecmdr
d570fd51fe Merge "msm: kgsl: Fix context leak in aux_command ioctl" 2021-03-23 18:51:23 -07:00
Suraj Jaiswal
b532c90034 net: stmmac: LPM link detection fix
Fix Link detection issue after suspend resume.

Change-Id: If2bd3825225bb17689709cdc226eeea827ff4bf3
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-23 10:44:39 -07:00
Suraj Jaiswal
8f1ad5f7a2 net: stmmac: disable & enable clock on suspend resume
disable all eth clocks on suspend and enable them on resume.

Change-Id: I65e80188e2cce0967b5bce8f0f5f55c842f40aa0
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-23 10:44:30 -07:00
Suraj Jaiswal
336fdc586c net: stmmac: Low power management optimization
Do not check for oldlink, always check for phydev link
when we suspend and resume the device.

Change-Id: I9cad2a1ecc3aea62b1b005ba09b3e7f21a07349f
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-23 10:43:42 -07:00
Suraj Jaiswal
c3d8f28033 net: stmmac: wol register clear
clear the wol register by reading it.

Change-Id: I4b127b569c6278680f9d8dc16b4e4c3e367c1c98
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-23 10:43:27 -07:00
Suraj Jaiswal
9ee349d108 msm: phy: Add WOL functions in micrel driver
Enable WOL functionality for magic pkt, cable plug in and out
on Micrel PHY.
Enable PME_N2 and INT_N output on the same interrupt line.

Change-Id: I6c20a8ec85a3dd8e7ec152305ffb3849cb2eab84
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-23 10:43:11 -07:00
Suraj Jaiswal
ae932a1455 net: stmmac: Add suspend resume support
Add support for low power features like suspend,
resume and wake on lan.

Change-Id: I161b1d6a00e2254cf6b855e81fab7ebd9be244d7
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-23 09:48:18 -07:00
Gauri Joshi
2b66ad4b59 msm: ep-pcie: Support 16.6 MHz Aux clock for PCIe Gen4 Controller
If the devicetree property for aux clock is present run the clock
at 16.6 MHz. Otherwise default aux clock value to 19.2 MHz.
Introduced for PCIe Gen4 support but can be used in the
future if controller needs 16.6 MHz clock support.

Change-Id: I8a4b3ab4cbd44938f1c9bf8fa91a791ba289ee10
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-03-23 09:39:58 -07:00
qctecmdr
bae21357e6 Merge "arm64: defconfig: Enable scsi generic driver on gen3auto" 2021-03-23 09:33:15 -07:00
qctecmdr
60972d0d71 Merge "defconfig: autogvm: enable configs needed for API level 30" 2021-03-23 09:33:15 -07:00
qctecmdr
1cdcba9052 Merge "firmware: qcom_scm: update dependency for QCOM_SCM_QCPE config" 2021-03-23 09:33:14 -07:00
qctecmdr
97d76b6510 Merge "drivers: soc: qcom: rimps_memlat: add NULL check for vendor ops" 2021-03-23 09:33:14 -07:00
qctecmdr
1b40281e07 Merge "arm64: defconfig: Enable Regulator QTI debug support" 2021-03-23 09:33:14 -07:00
qctecmdr
974aae1fea Merge "power: supply: qti_battery_charger: Add extcon support" 2021-03-23 09:33:13 -07:00
qctecmdr
171ecfb993 Merge "mailbox: Enable qmp mailbox on direwolf" 2021-03-23 09:33:12 -07:00
Deepak Kumar
fcbe669554 msm: kgsl: Initialize fence only if it gets refcount on timeline
kgsl_timeline_get can return NULL incase timeline pointer is NULL
or refcount on timeline already went to zero. Current code is not
checking this and going ahead with fence initialization which could
result in invalid pointer access. Fix this by ensuring fence got a
reference count on timeline before proceeding with initialization.

Change-Id: I14d1355b1ea45e854bef8acf4afef53e0f4ceefc
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-03-23 20:26:28 +05:30
Vinay Sudra
6174bd3ca7 defconfig: sdmsteppeauto: Enable ARM based SHA1
Enable ARM HW SHA1 Digest algorithm for faster
digest generation.

Change-Id: I752d54bd88031b6296cd60fa61cb9ec51f76d929
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-23 05:52:25 -07:00
Vinay Sudra
2530ebc788 soc: qcom: Add driver to print xbl log on console from fs
Add driver to capture xbl log from reserved memory region
and print on console when user requests.

Use cat /sys/module/xbl_log/xbl_log to see xbl log.

Change-Id: I5d34a4be63244f354ce70cfac8df2724b6a0537b
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-03-23 18:18:17 +05:30
Mrinmay Sarkar
298863d0fe Revert "msm: pci: Update VREG info fron DT"
This reverts commit facf1631a4.
The logic for parsing cofiguration for vregs for
PCIe is already present in msm_pcie_get_resources. Hence this
change is not required.

Change-Id: I2b60b75573dc98b1d5cd45a630f0234e4eeae4e4
Signed-off-by: Mrinmay Sarkar <msarkar@codeaurora.org>
2021-03-23 11:40:16 +05:30
Zhiqiang Tu
f5c7a39f34 defconfig: autogvm: Enable direwolf pinctrl driver
Enable direwolf pinctrl driver for automotive virtual machine
platform.

Change-Id: I2c071a1096af286287e1c997da356d08509011ef
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2021-03-23 14:06:02 +08:00
Santosh Dronamraju
bcafa784a1 defconfig: Enable block encryption and fallback
Enable block encryption and corresponding fallback
CONFIG_BLK_INLINE_ENCRYPTION=y
CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y.

Change-Id: Iebde1d8ec1150ddfe453c554f50a4c67002cbcb1
Signed-off-by: Santosh Dronamraju <sdronamr@codeaurora.org>
2021-03-23 11:12:50 +05:30
Ritesh Kumar
15ec2bf27f input: touchscreen: focaltech: Skip gpio operations in SPI TUI
Skip reset/irq gpio operations in SPI Trusted Touch.

Change-Id: Ief00045af6ddac55681814042148b416f9ffa552
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-03-22 22:30:51 -07:00
Arun Prakash
dc1f819f5b mailbox: Enable qmp mailbox on direwolf
Enable qmp mailbox on direwolf.

Change-Id: I48b8e088933af521f4bf629d2a58deb0245a44da
Signed-off-by: Arun Prakash <app@codeaurora.org>
2021-03-23 10:43:10 +05:30
qctecmdr
4dff56a429 Merge "arm: defconfig: Enable CONFIG_HID_AKSYS_QRD and CONFIG_AKSYS_QRD_FF" 2021-03-22 21:55:51 -07:00
qctecmdr
e31d7404f7 Merge "pinctrl: qcom: function group for qup11_f*,qup13_f* instances for blair" 2021-03-22 21:55:51 -07:00
Kiran Gunda
b5b08a09f7 power: qti_typec_class: Add typec class support for micro USB
Add typec class support for micro USB to show the data/power role
options in UI.

Change-Id: I83c0afa6ef9098a85d6c66e076e6a506d945c7fd
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-03-22 21:49:13 -07:00
Kiran Gunda
6e9701d99a power: supply: qti_battery_charger: Add extcon support
Add extcon support for micro USB to notify the USB driver
about the USB device and host mode.

Change-Id: If526b4476fd3c320129f3d74ed9afc185cf99538
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-03-22 21:49:05 -07:00
Singa Reddy Dasari
672ca98c18 arm64: defconfig: Enable scsi generic driver on gen3auto
Enable scsi generic driver on gen3auto to support slot switch.

Change-Id: I501b6fc83cdc57cec5ad0beb686dc6b034634a2d
Signed-off-by: Singa Reddy Dasari <singredd@codeaurora.org>
2021-03-23 10:08:43 +05:30
Singa Reddy Dasari
7be93e542b defconfig: autogvm: enable configs needed for API level 30
Enable Configs for API level 30. These are needed for android support.

Change-Id: I041b2deaf8d68a0a908252bee08efab5b5d8b76f
Signed-off-by: Singa Reddy Dasari <singredd@codeaurora.org>
2021-03-23 10:01:31 +05:30
Santosh Mardi
d1040ccec3 drivers: soc: qcom: rimps_memlat: add NULL check for vendor ops
Vendor ops will remain NULL in case of SCMI failures during
initialization.

Update store min and max functions to check for NULL before
accessing vendor ops structure.

Change-Id: I5a93a7161d8d01510f7d580c25e268fdc113df6b
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2021-03-22 21:31:17 -07:00
Rahul Sharma
4201acd054 soc: qcom: hab: add send/recv total msg count
This stat can be used to determine if there is any
message lost between hab_vchan_send and hab_vchan_recv.

Change-Id: I37be3e0a1359315e213399b9f91b18158006cd3e
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2021-03-23 12:07:29 +08:00
Naman Padhiar
0be5637d54 cnss2: Do not wait in loop if MAC is not provisioned
If "use-nv-mac" is set in device tree, CNSS driver waits for
DMS server come up during boot and asserts if it timeout.
Today, even if MAC is not programmed in device, QMI send API
returns failure but CNSS driver assuming that DMS server
is not up and waiting in a loop and finally asserts.
Break and continue if MAC is not programmed in device.

Change-Id: I8d89dbb0d47a0898a73a0c7e994d5fdc8fcceddd
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-03-22 20:07:07 -07:00
katamoni sai abhilash
e0984c780d firmware: qcom_scm: update dependency for QCOM_SCM_QCPE config
QCOM_SCM_QCPE config is dependent on HAB channel to communicate with
Backened.

Change-Id: I2c272f0ac5eea80f36596828fd08ff8932f4539b
Signed-off-by: katamoni sai abhilash <katamoni@codeaurora.org>
2021-03-22 19:24:26 -07:00
Veera Vegivada
fac59fb22f arm64: defconfig: Enable Regulator QTI debug support
Enable runtime debugfs control of regulator parameters such as enable
state, voltage, load current, and bypass state.

Change-Id: I8919c831637c1f905edc68651a2669bf344c0c64
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2021-03-23 07:48:00 +05:30
Yue Ma
87bf73007e cnss2: Use unified API to get RDDM and recovery timeouts
Get RDDM and recovery timeouts from unified cnss_get_timeout() API
for better readability.

Change-Id: I3e869aa46fb5d36335ce7fe215e5483a56093880
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-03-22 18:17:00 -07:00
qctecmdr
2b4df556b2 Merge "net: stmmac: Add multi queue support" 2021-03-22 15:08:54 -07:00
Mukesh Kumar Savaliya
0d201b55bb spi: spi-msm-geni: Don't touch GPIOs per each xfer for LA VM
This change is to fix the GPIOs being configured to sleep state
after every transfer on LA side for TVM usecase. SPI framework
calls unprepare_transfer_hardware for every message transferred,
driver tries to keep PINs to sleep state and hence it goes to GPIO
mode making LE transfer to fail.

For TVM usecases, it's expected that Client controls the SOC infra
resources including PINs, hence GPIOs must be configured to sleep
state when client ends the session. With this change, we are keeping
GPIOs in LA configured active state for the LE VM session.

Change-Id: I58c7a0b919750cf47b382eebc08f3de097cbfeef
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2021-03-22 12:32:26 -07:00
Harshdeep Dhatt
8ed160d88b msm: kgsl: Fix context leak in aux_command ioctl
Currently, after timeline drawobj creation it is not
immediately added to local drawobj list as a result
if kgsl_drawobj_add_timeline fails this drawobj is
leaked. As the timeline drawobj upon creation takes
a refcount on the context this leak also results in
context leak. Fix this by adding timeline drawobj to
local drawobj list immediately after creation.

Change-Id: I30f85506595ad7a7c54e82a7e850c96e7cdcbefd
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-03-22 09:14:04 -07:00
Suraj Jaiswal
33fdbe772f net: stmmac: Add multi queue support
Add multi queue support for PTP, AVB traffic.

Change-Id: I083fe8fa306b01da7d1baf2ef3b13c914329dd17
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-22 07:37:48 -07:00
Suraj Jaiswal
f5cfd4ff35 net: stmmac: Enable PPS0 on bootup
Enable PPS0 for 19.2 MHz frequency on initializing PTP.

Change-Id: I15d5fc2d15dd38926970ac7a61f9362604a860a8
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-22 07:37:03 -07:00
Suraj Jaiswal
66fb692b89 net: stmmac: SDx55: add pps signal and interrupts support
Add ioctl support to handle and generate pps siganal &
interrupt.Add device nodes for pps interrupts to interact
with user space.

Change-Id: I401326443e69bfd0fb37986004bdc47f41dc57b7
Acked-by: Nagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: Suraj Jaiswal <jsuraj@codeaurora.org>
2021-03-22 07:36:31 -07:00