Set the default IPC logging level to minimal logging in
case client driver does not specify ipc logging level.
Change-Id: I83174225b4eb7ae72cb16bc8f6dcf9659bc1342e
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
BGRA4444, defined currently as fourcc "BA12" in rotator driver,
is already assigned to existing format V4L2_PIX_FMT_SGRBG12 as
defined in videodev2.h. Change BGRA4444 to new fourcc definition
"bA12" to avoid collision.
CRs-Fixed: 1054825
Change-Id: I8b28dd3827cc9b540eef5955bbf9dbe77ce91f4b
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Focaltech touchscreen ICs may use different chip IDs for same module.
Add support to ignore ID check for such cases.
This patch is propagated from msm-3.10 kernel
'commit d6e831bdf2af ("input: touchscreen: add option to ignore
Focaltech family-id check")'
Also fix the checkpatch errors.
Change-Id: I0fe8da6a5e687317b4878b59ac5d1a4a4b620e1d
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
There is no need to send ABS_MT_PRESSURE event when contact is
removed from touchscreen, this redundant event will confuse some
APP and cause malfunction.
This patch is propagated from msm-3.18 kernel
'commit 75184ddcf2d1 ("input: touchscreen: remove PRESSURE event
from ft5x06 driver")'
CRs-Fixed: 537993
Change-Id: Ie2aef79f99cb80c10706f832cfab583ba742fdf1
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Upgrade firmware on the controller only when a new
version of firmware is available.
This patch is propagated from msm-3.18 kernel
'commit 88d102ef081f ("input: ft5x06_ts: Upgrade
firmware based on version")'
Change-Id: I4cf75b3c5efb90f151da09ed73b1ba62b9b5bb1c
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
To support all models supported by focaltech push necessary
parameters to platform data.
This patch is propagated from msm-3.18 kernel
'commit 473f8cd84f93 ("input: ft5x06_ts: Parse board specific
parameters from pdata")'
Also fix the below checkpatch warnings on 3.18 Kernel.
WARNING: Possible unnecessary 'out of memory' message
+ if (!data) {
+ dev_err(&client->dev, "Not enough memory\n");
WARNING: Possible unnecessary 'out of memory' message
+ if (!data->ts_info) {
+ dev_err(&client->dev, "Not enough memory\n");
Change-Id: I00b0e8ba7cfc8d8fbd48aa910bd3d0010283ed00
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Focaltech 6x06 controller series uses a different reset
register compared to earlier supported controllers. Use
appropriate reset registers based on controller's id.
This patch is propagated from 3.18 kernel
'commit 88dd4c27a3f6 ("input: ft5x06_ts: Add firmware
upgrade support for ft6x06")'
Change-Id: Ia72fa9c256f9e6e2db79388b0152f4d6724ec457
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Focaltech controllers can reports the number of touch points by read
"TD_STATUS" register. Read this register to avoid always looping
through maximum number of touches supported.
This patch is propagated from 3.18 kernel
'commit 4c142d16fced ("input: touchpanel: fix the number of touch
events detection")'
Change-Id: I8ab111b56b2074cb52cb021d37e9e6505c8b7c72
Signed-off-by: Figo Wang <figow@codeaurora.org>
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Disable/enable the regulators in suspend/resume to
have better power savings.
This patch is propagated from 3.18 kernel
'commit 550c106ea1a3 ("input: ft5x06_ts: Disable
regulators in suspend")'
Change-Id: I8aa7e941f20040955d6cc177e70ed38dbd28af8c
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Handle error if i2c read fails and undo other
probe initializations.
This patch is propagated from 3.18 kernel
'commit 0123456789ab ("input: ft5x06_ts: Handle error if
i2c read fails")'
Change-Id: I26180b057b45f4dad123dd3581e5c5f2b33a32aa
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Release all the touches before going to suspend to avoid
sticky touches and correct multitouch ID error.
This patch is propagated from 3.18 kernel 'commit 8a123ff1f64b
("input: touchpanel: Release all touches during suspend")'
Change-Id: I5dd84d44478291e16fd577aad5cf06503e44fbde
Signed-off-by: Figo Wang <figow@codeaurora.org>
Add a debugfs entry to display information about controller to the user.
Also have cleared the checkpatch errors on 3.18
This patch is propagated from 3.18 kernel 'commit 71e8bfde1da8 ("input:
ft5x06_ts: Add debugfs entry for dump info")'
Change-Id: I075501fefe1984533139ecca65af92f3c0ab8b97
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Correct the return value of it7260_ts_chip_low_power_mode function
in ITE tech touch driver.
This is a propagation patch from 3.18 kernel 'commit b1e998b971d9
("input: touchscreen: correct the return value in ITE tech touch driver")'
CRs-Fixed: 1020680
Change-Id: Iaaeb4ae22fadefd976906fdf8a995cd7cfe12d33
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Send WAKEUP event properly in ITE Tech touch driver when device
is in suspend mode.
The driver maintins a boolean state for sending the WAKEUP event.
When user taps the screen for touch-to-wake feature, the irq
handler for ITE Tech touch driver is scheduled after the ITE tech
resume function. Due to this the boolean state gets reset.
So this change handles this use case properly.
This is a propagation patch from 3.18 kernel 'commit 25af9ff9bc39
("input: touchscreen: send WAKEUP event properly in ITE Tech driver")'
CRs-Fixed: 1020680
Change-Id: Ifc1d00a42ecffe7aad65d99dadcdf170c56129a7
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Focaltech touchscreen chips can use MT protocol B
because they can assign unique id to ABS_MT_TRACKING_ID
from finger id provided by hardware.
This patch is propagated from 3.18 kernel
'commit 836a4745d978 ("input: ft5x06_ts: Add support
for protocol B")'
Change-Id: I7f236d819eb805934e12faedaf84407b9de95c0e
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
When NFC is not enabled, IRQ will be disabled and
then if we do suspend/resume wake up functionality
won't be enabled at suspend but we try to disable
the same at resume and cause irq warning.
Fix warning trace in below cases :
1) NFC enabled in makefile, but manually turned off in
settings menu (NFC driver is enabled and hw is present).
2) NFC is not enabled in makefile
(NFC driver is enabled and hw is present).
Change-Id: I0fd76809cd949d88ae7b820c37f0a9f349abb090
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
Enabling SW overhead statistic collection for SDE rotator. SW overhead
is defined as time between buffer queueing and HW flush.
CRs-Fixed: 1054205
Change-Id: I7f09dafa8c2d0f1940c76913ae842835059122f4
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
Add support to control Spread Spectrum Clocking (SSC) in the
DSI PLL on msmcobalt.
CRs-Fixed: 1036187
Change-Id: I158670185976801970d54bec4bc42014b1b28b96
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
There is no need to send hibern8 enter/exit during clk gate/ungate
when auto hibern8 is supported as that would be handled by the
controller, thus remove UFSHCD_CAP_HIBERN8_WITH_CLK_GATING cap.
Change-Id: Ica50975082b5071fafaa6a318c38e97afb7ba700
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Because of CBCR update, mdss driver needs to control mdss axi clock
state of memory core and periphery control when branch clock is off.
Since mdss does not have retention requirement for axi, both memory core
and periphery control can be turned off to conserve power when mdss
axi clock is off.
CRs-Fixed: 1044375
Change-Id: Ia609549304be97cdaeff0f30ff0ca8ad5e22af75
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Allow GSI interrupt to wake up AP.
This change will prevent a data stall in case
AP is in power collapse and IPA has data available
to AP.
Change-Id: I6457d1e348cd8e7a9075396e02061843f0ac9abc
CRs-Fixed: 1012036
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Hide kernel pointers from unprivileged ussers by using %pK format-
specifier instead of %p. This respects the kptr_restrict sysctl
setting which is by default on. So by default %pK will print zeroes
as address. echo 1 to kptr_restrict to print proper kernel addresses.
CRs-Fixed: 987018
Change-Id: I4772257a557c6730ecc0624cbc8e5614e893e9fd
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
Add support for specifying the size of LAN RX buffer pool.
Once this specified in dtsi, it will override the default value.
Change-Id: I60ff9ecf7e27aa9cd20dbc693e2ac392c401dfb9
CRs-Fixed: 1050748
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Fix potential NULL deference when SMMU is available.
Change-Id: I3454612cb8473e94ceb8163eca018d2489bff0c5
CRs-Fixed: 1052523
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>