Updated panel_event_notifier_register
and panel_event_notifier_unregister
as per kernel 5.15.
Change-Id: Icc6f78df492cb2381dfea598d8fa899ef65e48a2
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Applied all the changes from the patch.
Tested the code on target for touch to wake functionality.
Change-Id: I393b29ab570fc70c564dfc069864f1b627f5d389
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
regulator count would be increment 1 for enable() and get decrement 1
for every disable().
Change-Id: I7c40e6363e1ffba035ab4b71e780856bcabbdc87
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Add the regulator_set_load() in pt_release().
Keep both regulators by using regulator_set_load API's
should be turn off in release sequence.
Change-Id: Ie041e7f8e666d1dae1d7a4e958e92ae8dcc32699
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Calling enable_irq_wake() causes suspend_device_irqs() to treat the
given IRQ in a special way.the IRQ remains enabled, by on the first
interrupt it will be disabled, marked as pending and "suspended"
so that it will be re-enabled by resume_device_irqs()
during the subsequent system resume.
Change-Id: Id129a8b4e0eddc07000793986b119a0a7b5530ef
Signed-off-by: Srikanth Katteboina <quic_skattebo@quicinc.com>
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
enable touch to wake feature for all power modes.
Change-Id: Ic12fb06cb3d436d41f373f57eaee91c5f20a11eb
Signed-off-by: Srinu Gorle <quic_sgorle@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
Set required current loads to LDO's for active and RBSC modes.
Change-Id: Ia4f338c6ca8fdaa981cd7dda959ac887b2fd4fbc
Signed-off-by: Srinu Gorle <quic_sgorle@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
In some scenarios, back to back suspend and resume calls causing
concurrency issues. This change cancel pending queued works before
executing current task.
Change-Id: I1c0971b68a08a4c634767ea1bb6d783f495a1093
Signed-off-by: Srinu Gorle <quic_sgorle@quicinc.com>
Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
If target already in easywake on mode then power suspend is
getting skipped. Corrected state checks in power suspend to
allow suspend on top of easywake.
Change-Id: I64decc54c4b6f0d7b15a4f687bf25ceb42150549
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
Enable and disable both LDO29 and LDO21 regulators during power suspend
and resume sequence.
Change-Id: I9e5058d6191d536bc80d5b59aa23a5dac9c9babb
Signed-off-by: Sayantan Majumder <quic_smajumde@quicinc.com>
touch faststartup is consuming more than 700ms during power on,
created workqueue to handle touch firmware boot up sequence.
Change-Id: I67a288f41001052e5dcdb2ed465055b3a23d3233
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
run time suspend and rum time resume used for DRM events callbacks,
which is updating suspend and resume count incorrectly.
Added workQueue support to avoid executing logic in
DRM event callback handler.
Change-Id: I2985fb83aec5a72a0b9a604b424c4f06bfc06956
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
Enablement of Touch to Wake when contextual mode is off.
Change-Id: I94df963268daae4c50798c43fcb7c151bb2b0186
Signed-off-by: Sachin Kumar Garg <quic_sachinku@quicinc.com>
Implementation of DRM notifier callbacks and registration
of callback during touch probing.
Change-Id: I56e6d19708e207cee4d63089a73725be30f9cd84
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Enablement and disablement of GPIO pins along with LDOs
during RESUME and SUSPEND state respectively.
Change-Id: If24272ca1410ac583ba9ea6792c44459a8429334
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
driver context is freed before calling power off sequence,
which is resulting invalid memory access causing system crash.
complete power off sequence before free up driver context.
Change-Id: Ib6665d904d2747ec87a62b47cfadcb91f713ffe6
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
voltage range should fall in between regulator supported range.
updated min voltage from zero to regulator min voltage.
Change-Id: I3df1e2638d69348b0550d175063df2e3ac65cf0d
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Added regulator API's for enablement and disablement of voltages for touch
during SUSPEND and RESUME state.
Change-Id: Idcf4148d59c6fb23cc1942818585cac19834e4f9
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Inclusion of API's for enablement and disablement of voltages for touch
and enabled defconfig for Power APIs.
Change-Id: I677b05d472bb9ce4c1ffa9443dc8256721d1a502
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
This change fixes all the errors of dependent change
Change-Id: Ic52cfcf8dfbd38188573b64299f0500002579588
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>