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>
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>
Add meta key to set TTP offset in capture path.
Change-Id: Ieebab5eefb339a3b067a5cd95934828c4c9c150e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
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>
Fix compilation error when CONFIG_DEBUG_FS is disabled in
perf_defconfig.
Change-Id: I18a54b5b7c13661933ca5be8d94e4c3756aaea52
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
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>
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>
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>
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>
Enable Host and FW time sync feature for QCA6490.
Change-Id: I7a70f7bcbce68d6dfae05db37de883789361bb65
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
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>