During suspend, where there isn't a explicit timer requirement, suspend
driver adds a ~0ULL value to current timer value and passes it on to RPM as
the wakeup timer. However, RPM doesn't handle overflow of timer wakeups,
which could indicate that the master is requesting a wakeup in the past
and causes a crash.
Adding 1 to current wakeup times, sets the wakeup time to 0 for suspend
usecases. MPM maps a 0 wakeup time to ~0ULL which would be handled
correctly on the RPM side.
Change-Id: Ida24c83eb2f1ae94ad7168b6065db69da35c3ec9
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Girish S Ghongdemath <girishsg@codeaurora.org>
Slimbus device pointer may be null, which may lead to
null pointer dereference.
CRs-Fixed: 1054973
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Change-Id: Ica22ee19f281fa0cff7d629f396c41c935692c59
Replace the firmware update kernel thread with a workqueue.
Now the firmware upgrade procedure can be called later in
future time without blocking the registration of the
touchscreen driver. Using a kernel thread is an overhead in
the current driver as it is a one shot thread.
Change-Id: I0d4731148351652092fe7feede0b44828939d98b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Using %lu for size_t gives compilation error on 32bit system.
Replace this with %zu which should be used to print size_t on
both 32bit and 64bit machines.
Change-Id: Id8a42dec3e081187054cb2353ba3473bae9dd547
CRs-fixed: 1069970
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
cdev->config is checked for null pointer at above code, so cdev->config
might be null, fix it by adding null pointer check.
Change-Id: Ie919a2a886924f1b1e01415bfdaa53f74046f5b0
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: c526c62d565ea5a5bba9433f28756079734f430d
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Add rpm-smd node for communication with RPM subsystem over glink.
Change-Id: I95fb375500c649f3e986f0cde5a3ce6fa8ad27ad
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
It is required the buffer size to ADSP are multiple of 4kB. Update
the buffer size to be 4kB alignment before passing to ADSP.
CRs-Fixed: 1040066
Change-Id: I34f1b611000f5d9e4ae4c13a89b8571faa0f3393
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
Commit fd115e68971b ("dwc3: core: Don't perform controller and PHYs
soft reset") removed clearing DELAYP1TRANS. It is recommended to clear
DELAYP1TRANS bit with USB3PIPECTL register which controls USB
controller allowing USB QMP PHY low power transitions.
Change-Id: I54ba694f4c997bf5ecc540cee274e2cb07b77446
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Some of the usecases without compander and with
smart boost, VI sense are added in soundwire controller
driver.
Change-Id: Ia380ee6ad4584c29feb80fdc3b9247dd11e64a3e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Allow turn off touch panel power and reconfigure related GPIOs
to maximize power saving.
Change-Id: I25d7dc8abbd6dae4c54ee14f8feaf5701f64fd95
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Add virtual key support from device tree node and
corrected the sequence of virtual keys defined in
dtsi for Goodix driver.
Change-Id: Iee1db2eb07c00fd4338255b9648fac5e05aa9c6d
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Check that a valid pointer was passed in addition to non-zero
length to avoid dereferencing NULL pointers in functions
where data is copied from policy engine to the PD PHY.
Issues were identified with static analysis tool.
Change-Id: Ib42aad9e0d838eda4653e0bab9f074b3031983dd
Signed-off-by: Jack Pham <jackp@codeaurora.org>
For pre power off event, we want to check for rotator IDLE status and
generate a timeout event logging if the rotator is still in BUSY state.
For post power on event, rotator is reset to default HW state. It is
necessary to synchronize the SW timestamp with the HW register location.
CRs-Fixed: 1066270
Change-Id: I1041141b8dc80db0baec7ffe71a5c2a7b41e2cbb
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
Add fw_name sysfs entry in Goodix driver. This entry allows
user to read and write firmware name from sysfs.
Change-Id: I69585d757f1a6dc40834a99ee67c872bf6f3ea13
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Remove unnecessary, redundant and improper debug code
and replace them with standard debug calls in Goodix
driver files.
Change-Id: I763598585cee9705d6def8b7fe61d3206788912b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>