Commit graph

585265 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
427a991945 soc: qcom: qpnp-haptic: Remove use-play-irq and use-sc-irq flags
Remove use_play_irq and use_sc_irq flags as they are not really
needed. Interrupts can be obtained and registered always. Keep
the play interrupt enabled only for buffer mode.

Change-Id: Ie530819ed18b048d43d59dd7a0dc5f73cc3a9b70
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-20 18:11:53 -07:00
Subbaraman Narayanamurthy
c8eb719755 soc: qcom: qpnp-haptic: Overhaul the driver
Currently, the driver does read-modify-write to registers in so
many places. It would be better to have a masked_write API to do
this. This also needs a change in the mask definitions used in
all places where these writes are made. Also, create separate
functions that deals with a particular configuration so that they
can be reused later.

Change-Id: Ice07297b1542640e82c7adc12d323258440edb77
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-20 18:09:39 -07:00
Subbaraman Narayanamurthy
d7d3139eb5 soc: qcom: qpnp-haptic: Fix read/write APIs
Fix the order of parameters passed into read/write APIs to make
it more readable. While at it, add a pr_fmt() to the driver to
get better log information. Also, change all dev_* APIs to pr_*
APIs for better logging.

Change-Id: Ib19f48ddbaeeb3af483ac472dabb44558a6b9e43
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-16 20:46:05 -07:00
Subbaraman Narayanamurthy
34d5b6df83 soc: qcom: qpnp-haptic: Fix reading MISC_TRIM_ERROR_RC19P2_CLK register
Currently MISC_TRIM_ERROR_RC19P2_CLK register is hardcoded to
read the trim error in 19.2 MHz RC clock. However, this can be
located differently in some PMICs. Add support to read it from
misc device as this register cannot be directly accessed from
haptics driver.

Specify the MISC peripheral and the clock trim error register in
haptics for pmi8998 and pm660 so that haptics initial drive code
can be adjusted based on error code properly.

Change-Id: I04d8dbac0f943c65272531647c54d3c1495331e7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-16 20:44:19 -07:00
Subbaraman Narayanamurthy
122836477b misc: qpnp-misc: change the initcall level for qpnp-misc driver
Change the initcall level of qpnp-misc driver from module_init()
to subsys_initcall() so that the misc devices can be available
earlier. This helps the clients to access the registers under
misc peripheral sooner without a probe deferral.

Change-Id: Ie5df2cb9cf6842c59ec6f00ac9123994111f207b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-16 11:56:59 -07:00
Linux Build Service Account
89bfd053bf Merge "ARM: dts: msm: Fix RPM_AGGR2_NOC_CLK name change for SDM660/SDM630" 2017-03-13 11:50:11 -07:00
Linux Build Service Account
e713a39c4a Merge "HID: Remove playstation4 as special driver" 2017-03-13 11:50:10 -07:00
Linux Build Service Account
b585578838 Merge "regulator: core: Fix voltage change propagations to supply regulators" 2017-03-13 11:50:09 -07:00
Linux Build Service Account
f7aa606b1e Merge "ARM: dts: msm: add rm67195 panel driver for SDM630/SDM660 PM660A QRD" 2017-03-13 11:50:06 -07:00
Linux Build Service Account
b283538d68 Merge "msm: mdss: Add support to update backlight when display commit" 2017-03-13 11:50:05 -07:00
Linux Build Service Account
8d7423e396 Merge "msm: mdss: Disable secure session after Flush for video mode panels" 2017-03-13 11:50:04 -07:00
Linux Build Service Account
ba87e6c3e7 Merge "msm: mdss: fix conditional check for panel LP configuration" 2017-03-13 11:50:02 -07:00
Linux Build Service Account
1dbf7874c4 Merge "msm: mdss: Validate cursor image size" 2017-03-13 11:50:01 -07:00
Linux Build Service Account
df8ad3b00f Merge "ARM: dts: msm: add voter clock to anoc2_smmu on sdm660/630" 2017-03-13 11:50:00 -07:00
Linux Build Service Account
824290abe3 Merge "ath10k: Fix TCP TX throttling issue" 2017-03-13 11:50:00 -07:00
Linux Build Service Account
2811cf73a4 Merge "ath10k: Increase the ring size of the CE4 ring" 2017-03-13 11:49:59 -07:00
Linux Build Service Account
e1e5132824 Merge "msm: camera: Remove exit on error conditions for smmu apis" 2017-03-13 11:49:58 -07:00
Linux Build Service Account
b09bf7ca5d Merge "input: touchscreen: remove gt9xx goodix touch driver" 2017-03-13 11:49:58 -07:00
Linux Build Service Account
c705131473 Merge "ARM: dts: msm: removed gpu_dl and wcss tpdm, tpda and funnels for sdm660" 2017-03-13 11:49:56 -07:00
Linux Build Service Account
24a830c773 Merge "mmc: card: block: check the user controlled parameters to avoid overflow" 2017-03-13 11:49:55 -07:00
Hemant Gupta
7a160be0dc HID: Remove playstation4 as special driver
Playstation4 needs to be removed as having special hid driver
and needs to be used as generic hid driver because special
hid driver support is not working well.

CRs-Fixed: 2014640
Change-Id: Ibf053717adf043274ad3c4f889e5a88abf17e387
Signed-off-by: Hemant Gupta <hemantg@codeaurora.org>
2017-03-12 22:33:25 -07:00
Utkarsh Saxena
284c4e80bd ARM: dts: msm: Fix RPM_AGGR2_NOC_CLK name change for SDM660/SDM630
RPM_AGGR2_NOC_CLK is separated out to allow individual voters
could vote on these clocks and voter clock would aggregate the
clock rates.

Change-Id: Ib15499a0025c422786b432a1e98380ce86692e7b
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-03-13 10:58:50 +05:30
Charan Teja Reddy
b8c9470476 ARM: dts: msm: add voter clock to anoc2_smmu on sdm660/630
Add the proper aggr2_noc voter clock, AGGR2_NOC_SMMU_CLK, for correct
operation of anoc2 SMMU.

Change-Id: I8e9a5a455626f73ea15fbe16dd63b8fc8b26c4f0
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-03-12 22:22:38 -07:00
Tirupathi Reddy
f02b26a729 regulator: core: Fix voltage change propagations to supply regulators
Some regulators support get_voltage and some support get_voltage_sel
operations. Do voltage change propagation only when the current
regulator has a minimum dropout voltage specified or if the current
regulator lacks both get_voltage and get_voltage_sel operations.

CRs-Fixed: 2018399
Change-Id: I24cc880d6a61c2cb489897d39a1b63199749c98d
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-03-13 10:07:25 +05:30
Dany Rybnikov
9f07864f81 msm: camera: Remove exit on error conditions for smmu apis
The msm_camera_tz_set_mode is called for TA notification
and if the notification fails the flow should still proceed
without return.
This change prevents a fault caused by vfe remaining in
secure mode as the detach was not called in case of
notification failure.

CRs-Fixed: 2011627
Change-Id: Iefcfd72c8e2d96aba2daf2bed8d271edee0cc8c1
Signed-off-by: Dany Rybnikov <danyr@codeaurora.org>
2017-03-12 01:34:27 -08:00
Linux Build Service Account
51740526b9 Merge "msm: camera: isp: support LPM on dualcamera" 2017-03-11 10:08:13 -08:00
Linux Build Service Account
7ea0306f70 Merge "defconfig: msm: Enable camera for SDM660 32bit variant" 2017-03-11 10:08:12 -08:00
Linux Build Service Account
23bb0f5efd Merge "msm: camera: Bound check for num_of_stream." 2017-03-11 10:08:10 -08:00
Linux Build Service Account
a2adda724d Merge "msm: camera: Prevent info leak in kernel driver." 2017-03-11 10:08:10 -08:00
Linux Build Service Account
e35eb8badb Merge "msm: camera: isp: fix for enqueue buffer failure" 2017-03-11 10:08:09 -08:00
Linux Build Service Account
9c2eff9b87 Merge "qcom: smb138x: Reduce die temperature samples for initial readings" 2017-03-10 20:14:37 -08:00
Linux Build Service Account
8dd0576877 Merge "qcom: qpnp-smb2: update POWER_SUPPLY_PROP_CHARGER_TEMP read logic" 2017-03-10 20:14:36 -08:00
Linux Build Service Account
da248ad284 Merge "defconfig: msm: Enable RCU_STALL_WATCHDOG_BITE flag" 2017-03-10 20:14:35 -08:00
Linux Build Service Account
3c49ad5543 Merge "ARM: dts: msm: Enable continuous splash on sdm630" 2017-03-10 20:14:35 -08:00
Linux Build Service Account
3bb80849e2 Merge "ARM: dts: msm: Allow modem MBA to be loaded in carveout for MSM8998" 2017-03-10 20:14:33 -08:00
Linux Build Service Account
25c8a028f5 Merge "Perf: arm64: Use all 6 counters in tracecounters" 2017-03-10 20:14:32 -08:00
Linux Build Service Account
1f02bcefe4 Merge "ARM: dts: msm: Add VFE efuse support for SDM630" 2017-03-10 11:05:11 -08:00
Linux Build Service Account
4f0f7a3d7d Merge "ARM: dts: msm: set pm660 L6/L9/L19 to not follow HW_EN1 for wcn3990" 2017-03-10 11:05:10 -08:00
Linux Build Service Account
b7207bf00e Merge "rcu: Induce msm watchdog bite for rcu stalls" 2017-03-10 11:05:09 -08:00
Linux Build Service Account
ddf1974359 Merge "cnss_prealloc: Update pre-alloc table" 2017-03-10 11:05:08 -08:00
Linux Build Service Account
bff9fbab18 Merge "ARM: dts: msm: use updated clock handle to USB dt node on sdm660" 2017-03-10 11:05:07 -08:00
Linux Build Service Account
4c2c203412 Merge "msm: wlan: Define CFG80211_CONNECT_TIMEOUT_REASON_CODE" 2017-03-10 11:05:05 -08:00
Venu Yeshala
1d1da6b2fc ARM: dts: msm: Add VFE efuse support for SDM630
Add efuse register to be read for VFE dual camera limitation.

Change-Id: I1562b4555aadd0fde8f644cc3aa61e9d45f98ef0
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
2017-03-10 05:33:00 -08:00
Shantanu Jain
768090d4d7 input: touchscreen: remove gt9xx goodix touch driver
Remove gt9xx goodix touch driver from the kernel code
as it has never been used in any of the recent platforms.

Change-Id: If9ebe97dee81d7a95a64c560b605c2e1d02b837c
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2017-03-10 17:41:42 +05:30
Linux Build Service Account
b8c4038d14 Merge "msm: mdss: Handling possible integer overflow" 2017-03-10 02:07:17 -08:00
Linux Build Service Account
0799e92cbd Merge "msm: vidc: Fix masking of QP values for different codecs in driver" 2017-03-10 02:07:16 -08:00
Linux Build Service Account
81de7e7c6e Merge "msm: media: Allocate extra memory for YUV buffers" 2017-03-10 02:07:15 -08:00
Linux Build Service Account
55de912103 Merge "arm64: Update correct config option for TLB handler" 2017-03-10 02:07:14 -08:00
Linux Build Service Account
3760a82752 Merge "msm: gsi: increase stop command timeout" 2017-03-10 02:07:13 -08:00
Linux Build Service Account
e2d2d61a3e Merge "ARM: dts: msm: Enable the GPU QTimer access" 2017-03-10 02:07:12 -08:00