Commit graph

810337 commits

Author SHA1 Message Date
Anirudh Ghayal
30ab6ed2a5 power: qpnp-qg: Update a specific SOC scaling condition
Allow the SOC to scale to a higher value in a specific
condition (msoc = 0), even if USB is present and we are
discharging. This typically occurs during boot-up with
charger connected at 0% SOC.

Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec6107
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-04-19 10:34:41 +05:30
Anirudh Ghayal
6fc905b6c1 power: smblite/smb5-lib.c: Report the correct battery status at SOC=0
Userspace initiates a shutdown if battery_status != charging
and SOC = 0, this is to prevent a deep-discharge of the battery
when the discharge current is higher than the charge current
at SOC = 0. Report this status from the kernel driver.

Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec6101
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-04-19 10:16:58 +05:30
qctecmdr
8280d7bde8 Merge "icnss: Add code to send hang event data in pd down" 2020-04-17 20:34:48 -07:00
qctecmdr
4b9cb0c192 Merge "clk: fix compilation when CONFIG_DEBUG_FS is disabled" 2020-04-17 20:34:48 -07:00
qctecmdr
05a4f01d19 Merge "mhi: fix compilation when CONFIG_DEBUG_FS is disabled" 2020-04-17 20:34:48 -07:00
qctecmdr
80d20206e9 Merge "uapi: sound: add new meta key to set TTP offset" 2020-04-17 20:34:47 -07:00
qctecmdr
21109cea8f Merge "msm: sps: Fix the SPS_DBG macro definitions" 2020-04-17 20:34:47 -07:00
qctecmdr
01066ca4a5 Merge "tcp: Reset tcp connections in SYN-SENT state" 2020-04-17 20:34:47 -07:00
qctecmdr
fcf4814487 Merge "cnss2: Fix a issue for WLFW QMI files" 2020-04-17 20:34:47 -07:00
qctecmdr
df227ad90b Merge "usb: gadget: f_qdss: Add ipc logging for qdss driver" 2020-04-17 20:34:46 -07:00
qctecmdr
98f2923560 Merge "msm: kgsl: Disable stall on fault for GMU context bank" 2020-04-17 20:34:46 -07:00
qctecmdr
c8a6a7968c Merge "msm: kgsl: Add CP_APRIV_CNTL and CP_SMMU_STREAM_ID regs to snapshot" 2020-04-17 20:34:46 -07:00
Surendar Karka
a05456aa3d uapi: sound: add new meta key to set TTP offset
Add meta key to set TTP offset in capture path.

Change-Id: Ieebab5eefb339a3b067a5cd95934828c4c9c150e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2020-04-16 22:41:16 -07:00
Siva Kumar Akkireddi
0c5f65eea8 msm: sps: Fix the SPS_DBG macro definitions
Fix SPS_DBG macros to pass the correct arguments to
pr_debug macros when CONFIG_DEBUG_FS is disabled.

Change-Id: Id7cb6deae9626df8a71e0a18eca37c142673aad5
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
2020-04-17 09:29:28 +05:30
Prateek Sood
eac798fb10 clk: fix compilation when CONFIG_DEBUG_FS is disabled
Fix compilation error when CONFIG_DEBUG_FS is disabled in
perf_defconfig.

Change-Id: I18a54b5b7c13661933ca5be8d94e4c3756aaea52
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-04-16 02:06:07 -07:00
qctecmdr
26526d40bc Merge "Makefile: Remove -fno-builtin cflag" 2020-04-15 19:02:09 -07:00
Neeraj Upadhyay
c7091dc811 Makefile: Remove -fno-builtin cflag
Remove -fno-builtin cflag, to fix performance regression,
observed with this flag enabled. Also, fix the compilation
errors observed after removing the flag.

Change-Id: I515a4d043639109298008f95a25d8ed70417bdd8
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-04-15 11:42:57 -07:00
qctecmdr
98389fe5bb Merge "power: smb5-lib: Report NOT_CHARGING in over voltage condition" 2020-04-15 08:40:36 -07:00
qctecmdr
b31dffb36c Merge "kernel_headers: Disable headers matching" 2020-04-15 03:56:54 -07:00
qctecmdr
a1879aa311 Merge "devfreq: update device suspended check" 2020-04-15 03:56:54 -07:00
qctecmdr
51368ae84d Merge "drivers: thermal: Avoid multiple TSENS controller re-init simultaneously" 2020-04-15 03:56:54 -07:00
qctecmdr
c15903a65f Merge "mmc: sdhci-msm: Remove mmc host NULL check" 2020-04-15 03:56:53 -07:00
Manaf Meethalavalappu Pallikunhi
243f18b81d drivers: thermal: Avoid multiple TSENS controller re-init simultaneously
If TSENS controller went to bad state while reading temperature of
a sensor, TSENS invokes controller re-init code for all controller
and then notifies the thermal framework to re-evaluate thermal for
each sensor. There is a possibility that while executing TSENS
re-init code, another sensor temperature read request can be
initiated and it could lead to another TSENS controller re-init
code execution.

Use an atomic variable to check above mentioned path and avoid
multiple TSENS re-init at same time.

Change-Id: I3321e490f0276ba4b58a778177d234abb867699b
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-04-15 13:13:16 +05:30
qctecmdr
c75974707e Merge "scsi: ufs: Fix back to back clk gate work" 2020-04-14 23:28:40 -07:00
qctecmdr
20b124853c Merge "clk: qcom: debugcc-scuba: Add clock measure support for clk" 2020-04-14 23:28:40 -07:00
qctecmdr
9ee9448255 Merge "clk: qcom: rpmcc: Add support for HWKM & PKA clock for Scuba" 2020-04-14 23:28:40 -07:00
qctecmdr
ab7968940e Merge "scsi: ufs: fix race b/w resume and err_handler" 2020-04-14 23:28:39 -07:00
qctecmdr
b915cb6dcc Merge "serial: msm_geni_serial: No need to stop_tx/rx on UART shutdown" 2020-04-14 23:28:39 -07:00
qctecmdr
f26226a900 Merge "scsi: ufs: Add states to debug host_blocked in ufs driver" 2020-04-14 23:28:38 -07:00
Santosh Mardi
fbcaaad071 devfreq: update device suspended check
Update device suspended condition check in get_freq function,
in some scenarios the device is in  suspended and if node
is null, the condition will pass and  wrongly code will
proceed to access the node pointer which is null,
update if condition for device suspended state.

Change-Id: Ia18aeaf24c788294beb30d2f9d92d0e85fe90bc6
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-04-14 22:30:06 -07:00
Sarthak Garg
7bb74cb6d8 mmc: sdhci-msm: Remove mmc host NULL check
Remove mmc host NULL check from host runtime resume function
to fix KW null pointer dereference warning, as mmc host
cannot be null.

Change-Id: I037df95be66c2fec975b82035cdc817a20e4676d
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-04-15 10:35:41 +05:30
Rishabh Bhatnagar
a9047504a1 kernel_headers: Disable headers matching
Disable matching of existing and generated gen_headers*.bp files.
This is done to allow some uapi headers to be added to camera
techpack.

Change-Id: I1b6b639015f3672a3e9daa9b2a1444e952ed4ac1
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-04-14 21:55:23 -07:00
qctecmdr
b8c686cba1 Merge "cnss2: Enable time sync feature for QCA6490" 2020-04-14 19:21:32 -07:00
qctecmdr
afef69cda8 Merge "qseecom: Invalidate the buffer after listener operation" 2020-04-14 19:21:31 -07:00
qctecmdr
79bcebb174 Merge "msm: kgsl: set bit 24 of CP_CHICKEN_DBG for A702" 2020-04-14 15:27:16 -07:00
qctecmdr
c38004a1a0 Merge "regulator: fix compilation when CONFIG_DEBUG_FS is disabled" 2020-04-14 15:27:16 -07:00
qctecmdr
f6e96a56ce Merge "cnss2: Add SRAM mem dump for debug" 2020-04-14 15:27:14 -07:00
Manikandan Mohan
5909ed29d2 cnss2: Enable time sync feature for QCA6490
Enable Host and FW time sync feature for QCA6490.

Change-Id: I7a70f7bcbce68d6dfae05db37de883789361bb65
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-04-14 14:55:27 -07:00
qctecmdr
c560be928e Merge "mmc: sdhci-msm: Pass min and max voltage values to enable regulators" 2020-04-14 07:07:19 -07:00
qctecmdr
ac1be06843 Merge "scsi: ufs: Avoid potential lrb race caused by early release of lrb_in_use" 2020-04-14 07:07:19 -07:00
qctecmdr
b21baa00fc Merge "coresight: cti: Add sys interface to show max trigger number" 2020-04-14 07:07:19 -07:00
qctecmdr
e6ef04fbf9 Merge "power: qpnp-fg-gen4: Fix encoding for Rconn" 2020-04-14 07:07:18 -07:00
qctecmdr
61842577dd Merge "power: qpnp-qg: Clear learnt capacity on loading a new profile" 2020-04-14 07:07:18 -07:00
qctecmdr
9bad04120f Merge "usb: dwc3: gadget: Clear run/stop irrespective of softconnect" 2020-04-14 07:07:17 -07:00
qctecmdr
5c81413b6e Merge "msm: kgsl: change the CGC control setting for A702 GPU" 2020-04-14 07:07:17 -07:00
qctecmdr
26abd527b6 Merge "mhi: cntrl: qcom: expand debug modes for new device bringup" 2020-04-14 07:07:17 -07:00
qctecmdr
9e97d02d64 Merge "defconfig: disable remote QDSS on kona" 2020-04-14 07:07:16 -07:00
qctecmdr
fbfc23bef1 Merge "ANDROID: selinux: modify RTM_GETLINK permission" 2020-04-14 07:07:16 -07:00
qctecmdr
48a183e88f Merge "icnss2: Correct bdf file name formation" 2020-04-14 07:07:16 -07:00
Nitin Rawat
17cf56e031 scsi: ufs: fix race b/w resume and err_handler
In some rare scenario, race condition is observed between
eh_work handler and ufshcd_resume operation.
Sequence of events:

1. SSU command is send as a part of ufshcd_resume.

2. ufshcd_rls_handler waits on pm_runtime_get_sync
   because runtime_status was RPM_RESUMING.

3. After SSU timeout, as a part of abort work, err_handler
   scccessfully runs and recovers dev state as active and
   uic link as active.
4. In ufshcd_resume, after ssu return failure,
   it moved the link state as hibern8 and disabled the
   interrupt leaving dev state as active and link as
   hibernate and hence the inconsistency.

5. Later rls_handler acquired pm_runtime_get_sync and as a part
   of power change command , uic command is sent and but since
   interrupt is disabled uic command timeout happended.

Also when start stop failed runtime_error was set to
DID_TIME_OUT >> 16. and since runtime error is only cleared
at initialization in the normal case, device can't resume
and watch dog expired happended .
scsi 0:0:0:49488: START_STOP failed for power mode: 1, result 30000.

Fix this by checking the device state and link state after
ssu return failure with reason as DID_TIME_OUT.If
current dev and link state is active, dont return
error as dev and link state is in correct state and
hence proceed with the resume.

Change-Id: I32cdcbd00cf7e39af14d44c81b181b276183f54a
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-04-14 17:30:47 +05:30