Commit graph

575210 commits

Author SHA1 Message Date
Mayank Rana
1ed274d00a usb: gadget: f_cdev: Avoid potential NULL pointer dereference
Fix possible NULL pointer dereference issue as strrchr() API can
return NULL if there is no port_num found as part of passed string.

Change-Id: I410e58361282f175e46b68cbfaf4824e386454f8
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-23 11:40:37 -07:00
Sudheer Papothi
85a1f2a812 ASoC: wsa881x: Update device state during device probe
Device state is updated incorrectly during codec probe when
the wsa881x soundwire slave device is in suspend state, resulting
in register read/write failures. Update the device state during
device probe instead of codec probe.

Change-Id: I46afe2a08495c2ed06806b0568b1c44a6ffd947f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-09-23 11:11:25 -07:00
Harshdeep Dhatt
da71b33976 msm: kgsl: Disable rbbm countable on a540
The RBBM_ALWAYS_COUNT countable does not function properly
when top level clock gating is enabled. Return -EINVAL
when user requests this perfcounter.

CRs-Fixed: 1038778
Change-Id: I48d560ab2caa6ea467ac56bf0d323937a475cdde
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-09-23 10:08:21 -06:00
Charan Teja Reddy
1f4e80a7d2 ARM: dts: msm: add initial memory map for msmtriton
Add carve-outs, firmware regions and other cma areas as part of initial
memory map configuration for msmtriton.

Change-Id: If3f17a913aac8fb5959c919ae28973544e33444a
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2016-09-23 04:18:55 -07:00
ansharma
aba9ed2d3e leds: qpnp-flash-v2: Fix compilation issue for 32-bit kernel
Use div64_s64() instead of direct division required for 32-bit kernel
compilation.

CRs-Fixed: 1070141
Change-Id: I9f58a411c2a923c07fd27ab9dc5ac244e4b13a44
Signed-off-by: ansharma <ansharma@codeaurora.org>
2016-09-23 16:12:21 +05:30
Ashay Jaiswal
16d5da42a0 ARM: dts: msm: update regulator name for msmfalcon
Update regulator name and phandle for msmfalcon.
While at it, add buck-boost regulator.

CRs-Fixed: 1070486
Change-Id: Ia3c1beed20590e4135d58ad235ff861d47db5882
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-09-23 15:34:55 +05:30
Charan Teja Reddy
7d10527276 ARM: dts: msm: update the memory map details for msmfalcon
Update the initial memory map details for the carveout memory regions
for msmfalcon.

Change-Id: I81b7992aa1117590400050c2da7dc7c9e3903572
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2016-09-23 02:45:18 -07:00
Mahesh Sivasubramanian
95725d4dc6 drivers: cpuidle: lpm-levels: Fix wakeup time for suspend
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>
2016-09-23 00:23:29 -07:00
Shantanu Jain
43d81f370d input: touchscreen: Convert Goodix driver to dev_pm_ops
Convert Goodix driver to dev_pm_ops.
Add return type and parameters for suspend/resume for
Goodix driver.

Change-Id: I5243d9ab801f6964e675ad37c2161beda3586dfe
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-22 22:25:05 -07:00
Shantanu Jain
18850432fd input: touchscreen: Change late_init call to module_init
Change late_initcall usage in goodix driver to module_init.

Change-Id: I59681138448584fc7a04c95dc8af3d4c3d395ff0
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-22 22:24:58 -07:00
Runmin Wang
08bc9d3d60 drivers: GICv3: remove the rtb logs of gic_poke_irq
gic_poke_irq creates lots of RTB logging. Update the API to call
the no log version of write_relax.

CRs-Fixed: 1070282
Change-Id: I6924bc24fafb1685a2a157656281e7d36223257e
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-09-22 17:00:50 -07:00
Patrick Fay
54f6e4ae87 perf: Enable updating exclude_idle events at idle
Commit 573979dee2 ("perf: Add support for exclude_idle attribute")
does a register_idle_notifier call so that exclude_idle events
are updated when a CPU goes idle. This commit fixes a bug which
causes unregister_idle_notifier to be erroneously called.

Change-Id: I13dbd369c0ce137e884c156360c514df92746e39
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
2016-09-22 16:48:21 -07:00
Siddhartha Agrawal
cdf62c6db2 Revert "ARM: dts: msm: configure CX voltage levels from MDSS for msmcobalt"
This reverts 'commit 0754aea0fd ("ARM: dts: msm: configure CX voltage
levels from MDSS for msmcobalt")'.

Correctly indicating to the RPM driver when to turn off the MMSS
GDSC. 'commit f1b5dbb743b3 ("msm: mdss: control when MMSS
GDSC gets turned off")' is the correct fix for this issue.

Crs-Fixed: 1068650
Change-Id: I7eae1fbad8467e36c1a216d1ea719c6e3ed9e586
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
2016-09-22 16:29:10 -07:00
Siddhartha Agrawal
6883756a33 msm: mdss: control when MMSS GDSC gets turned off
RPM has no way to know if they have to disable the MMSS gdsc
during idle power collapse or if its a full suspend.
Setting up the RPM RAM msg to 1 going into idle power collapse
and setting it to 0 while going to full suspend.
All these states mentioned are from a display point of
view.

Crs-Fixed: 1068650
Change-Id: I0ed47e89f6a4dd332ff28e8a1203ae3bfe44e7fa
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
2016-09-22 16:20:39 -07:00
Xiaojun Sang
17d98dbde1 ASoC: wcd: add null check before pointer dereference
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
2016-09-23 00:06:45 +08:00
Shantanu Jain
3f4d270af7 input: touchscreen: Replace kernel thread with a workqueue
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>
2016-09-22 16:38:00 +05:30
Manu Gautam
d0bdc926c4 USB: gadget: f_fs: Use %zu when printing size_t
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>
2016-09-22 16:34:27 +05:30
Kuirong Wang
e079354544 ASoC: msm: add tertiary and quaternary audio PCM support
Add support for tertiary and quaternary audio PCM interface
to msm platform.

Change-Id: I985200bbff55583ac09bf7444ecbc5cf6ab7eb41
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-21 17:29:16 -07:00
Ingrid Gallardo
6863de8622 msm: mdss: fix truncation of 64 bit for clk rate
Pixel clock can have a 64 bits value; this
value is truncated in some parts of the
driver where it is handled as a 32 bits value.
This change corrects the driver to make sure we
always handle the pixel clock as a 64 bits.

Change-Id: Ia97cb849ac7ce08a5c387eb11b1b01aad36244a0
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-21 16:25:45 -07:00
Peter Chen
19e19a1710 usb: gadget: composite: fix dereference after null check coverify warning
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>
2016-09-21 14:51:35 -07:00
Raju P.L.S.S.S.N
c263667eb7 ARM: dts: msm: Add rpm-smd node for msmfalcon
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>
2016-09-21 23:04:02 +05:30
Kuirong Wang
b105c4f9de ASoC: msm: update to align afe memory mapping as multiple of 4KB
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>
2016-09-21 10:13:21 -07:00
Mayank Rana
1fdef7ce53 dwc3: core: clear DELAYP1TRANS with USB3PIPECTL register
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>
2016-09-21 09:12:06 -07:00
Laxminath Kasam
180be8b7db soundwire: Add support for usecases without compander
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>
2016-09-21 02:49:13 -07:00
Sarada Prasanna Garnayak
4d16293739 cnss: Add new case in cnss runtime PM request feature
The cnss platform driver provides wrapper API to
use the kernel runtime PM APIs in wlan host driver
for runtime power management operation.

Add flag for pm_runtime_get_noresume() API.

CRs-Fixed: 1068920
Change-Id: I36d278bf1837b2a18f74ff52b9be9b7e5a165857
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-09-21 02:37:02 -07:00
Bingzhe Cai
db3a2341f0 input: touchscreen: power off touch panel during suspend
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>
2016-09-21 01:55:22 -07:00
Shantanu Jain
7dca98d496 input: touchscreen: Add virtual key support from dtsi
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>
2016-09-21 11:05:02 +05:30
Ingrid Gallardo
82b0957a9d msm: mdss: expand vbif debug bus for msmcobalt
This change increases the test points
for vbif debug bus in msmcobalt target.

Change-Id: I07f0ef2ee8d37336047a37aa93c8b4f26d07cd72
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-20 12:54:27 -07:00
Yuanyuan Liu
2d44f9a775 icnss: Provide ICNSS support of reading SOC serial number
Provide support of reading SOC serial number. This will be used
for auto-generate WLAN MAC address.

CRs-Fixed: 1069005
Change-Id: Ie2072768b2fab3bcbdc70798897ca66614ee8a06
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-20 12:18:34 -07:00
Benjamin Chan
f1f813d214 msm: mdss: Correct error handling in MDSS driver
Fix variable initialization and NULL pointer referencing under error
condition handling in the MDSS driver.

CRs-Fixed: 1067141
Change-Id: Idd971601d5358104831784d645d84b1f9d2b631c
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-09-20 10:52:08 -07:00
Linux Build Service Account
9e2d528dc4 Merge "msm: camera: Add support for reset controller framework" 2016-09-20 10:20:44 -07:00
Linux Build Service Account
bfbc8a0dda Merge "soc: qcom: spss_utils: fix test_fuse_state_show()" 2016-09-20 10:20:44 -07:00
Linux Build Service Account
2b9c9ce4df Merge "msm: msm_bus: introduce bus topology for msmfalcon" 2016-09-20 10:20:42 -07:00
Linux Build Service Account
329685a0d5 Merge "msm: mdss: make hdcp 1.x data part of fb panel" 2016-09-20 10:20:40 -07:00
Linux Build Service Account
e687086cb2 Merge "ARM: dts: reduce on/off time for nt35597 dsc panels" 2016-09-20 10:20:39 -07:00
Linux Build Service Account
ca064b6d44 Merge "msm: mdss: dsi: Configure pll to work only in full rate mode" 2016-09-20 10:20:38 -07:00
Linux Build Service Account
53aba1677d Merge "ARM: dts: msm: add sharp 120 Hz panel support for msmcobalt" 2016-09-20 10:20:37 -07:00
Linux Build Service Account
b2b4bbae8b Merge "clk: msm: mdss: change DP clock rate in order of KHz" 2016-09-20 10:20:36 -07:00
Linux Build Service Account
fb2d62f3eb Merge "msm: mdss: program HDMI/DP core select during interface setup" 2016-09-20 10:20:34 -07:00
Jack Pham
2d50ef2cf3 usb: pd: Avoid potential NULL ptr dereferences
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>
2016-09-20 09:18:25 -07:00
Benjamin Chan
1db5844b62 msm: sde: Add pre/post power event handler in SDE rotator
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>
2016-09-20 07:04:23 -07:00
Shantanu Jain
ccd9ea31e2 input: touchscreen: Add fw_name sysfs entry in Goodix driver
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>
2016-09-20 04:25:22 -07:00
Shantanu Jain
a1ffdaeafe input: touchscreen: Remove improper debug code
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>
2016-09-20 12:37:32 +05:30
Linux Build Service Account
4b91c1a0f7 Merge "ASoC: wcd9335: reduce speaker teardown latency" 2016-09-19 23:28:23 -07:00
Linux Build Service Account
383cee12e4 Merge "phy: qcom-ufs: remove warnings for optional clocks" 2016-09-19 23:28:22 -07:00
Linux Build Service Account
55ef1608c4 Merge "Revert "usb: dwc3: gadget: start requests as soon as they come"" 2016-09-19 23:28:17 -07:00
Linux Build Service Account
f71d743cf0 Merge "Revert "usb: dwc3: gadget: use update transfer command"" 2016-09-19 23:28:16 -07:00
Linux Build Service Account
52915db68d Merge "msm: ipa: add support for new QMI IDL" 2016-09-19 23:28:16 -07:00
Linux Build Service Account
beb17e9e9b Merge "msm: pcie: initialize var in GPIO init function" 2016-09-19 23:28:15 -07:00
Linux Build Service Account
afc144d22c Merge "defconfig: msmcortex: Remove panic on SBE" 2016-09-19 23:28:14 -07:00