Commit graph

576674 commits

Author SHA1 Message Date
Arumuga Durai A
149e3bdb82 usb_bam: Avoid uninitialized variable errors
Static analysis tool reports errors related to
functions using uninitialized varibles. Fix these.

CRS-Fixed: 1070067
Change-Id: I0d4b9f72a12e91b16f3844ac70db33b7de5e5263
Signed-off-by: Arumuga Durai A <cadurai@codeaurora.org>
2016-11-01 18:56:23 -07:00
Vamsi Krishna Samavedam
5c57c9e196 dwc3: gadget: Remove disabling events and ep0 from gadget stop
Controller driver explicitly puts the controller in low power mode
when cable disconnected. However, due to config-fs and ADB design
which unbinds composition on every cable disconnect results in
detaching/stopping gadget driver on every cable disconnect. Gadget
stop will explicitly brings the controller out of low power mode to
disable events and ep0 which is not necessary as controller is
already in low power mode. These operations are not required for
composition switch as well because gadget pull-up call back will
take care of that. Hence, Remove disabling events and ep0 from stop
gadget callback.

Change-Id: If2b3e241076a4e0eeb87eeb4361398313fca6962
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2016-11-01 18:29:59 -07:00
Phani Kumar Uppalapati
1fcf0af78a ASoC: wcd934x: Initialize mbhc pointer before access
Initialize mbhc pointer before it gets accessed from
a different thread.

Change-Id: Ie1a5038458b0b93dfec3e5bfc350686eb1f8eb1b
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-11-01 17:25:37 -07:00
Jack Pham
9d735f2278 usb: pd: Implement RX message queuing
Add a queue to store messages in the phy_msg_received() callback.
This eliminates the call to flush_work() and allows for more
robust handling of incoming messages especially if they arrive
while the usbpd_sm work function is in progress.

In particular this fixes a bug seen when a REQUEST message is
received just after sending a SRC_CAPABILITIES, but since there
may not be a previous message, flush_work() is not called, and the
end of usbpd_sm() overwrites pd->rx_msg_type and pd->rx_msg_len
to 0. As a result, when usbpd_sm() is run again, it will see no
message and proceed to SRC_HARD_RESET.

Change-Id: I4510f91e7d23ab161517c13702462da4ec8d7a2e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-11-01 15:54:59 -07:00
Deepak Katragadda
5fa9ed4664 clk: msm: clock-debug: Print VDD level in clock_state traces
Add support for printing the voltage voting info to the
clock_state ftrace events.

CRs-Fixed: 1082843
Change-Id: I6ab3992958a659995b7d5020287fd6e47e28f2a4
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-11-01 13:53:35 -07:00
Satya Durga Srinivasu Prabhala
b67bb93f56 power: reset: Do not disable SDI during reset
During reset if SDI is disabled, PIMEM gets zeroed out.

Change-Id: I55bff36d8504f5fd3041f0dad42a077f25976966
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-11-01 12:08:05 -07:00
Satya Durga Srinivasu Prabhala
01b2c9a5d7 soc: qcom: scm: add check to avoid buffer overflow
There is a posibility of a buffer overflow in scm_call,
add check to avoid the same.

Change-Id: Iee908c56ec530569b35dafa060139e0428efc781
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-11-01 08:47:03 -07:00
Prasad Sodagudi
488460b415 ARM: dts: msm: Add qcom,dump-size entry for dumping CPU L1/L2 caches
Update arm cache documentation about qcom,dump-size to dump
the CPU L1/L2 caches in order to analyze data corruption.

Change-Id: Ia9350b9c7810db7eb900957b4ce5dac046ab5e0d
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-11-01 18:02:29 +05:30
Lorenzo Pieralisi
0645a625ac Documentation: arm: add cache DT bindings
On ARM systems the cache topology cannot be probed at runtime, in
particular, it is impossible to probe which CPUs share a given cache
level. Power management software requires this knowledge to implement
optimized power down sequences, hence this patch adds a document that
defines the DT cache bindings for ARM systems. The bindings are compliant
with ePAPR (PowerPC bindings), even though most of the cache nodes
properties requirements are overriden, because caches geometry for
architected caches is probeable on ARM systems. This patch also adds
properties that are specific to ARM architected caches to the existing ones
defined in the ePAPR v1.1, as bindings extensions.

Change-Id: I37ca3aae0471fcd60499615df77093d5b5451bf8
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-11-01 17:58:39 +05:30
Linux Build Service Account
9a5e4de102 Merge "soc: qcom: signal buffer response after glink_rx_done()" 2016-11-01 04:46:23 -07:00
Linux Build Service Account
66c843eb32 Merge "drivers: cpuidle: lpm-levels: Enable Sleep prediction" 2016-11-01 04:46:14 -07:00
Shiraz Hashim
fcca61799a msm: secure_buffer: fix scm call argument layout
For hyp_assign calls, dest_vm_and_perm_info wrongly
defines ctx as u32 * type, while TZ expects it as u64.
This creates an inconsistency on 32bit system. Fix it.

Change-Id: I31e8e0b5e9ae240ca031f625cf7c49f1bfe165d4
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-11-01 16:43:02 +05:30
Ming Lei
fc29c002eb driver core: fix race between creating/querying glue dir and its cleanup
The global mutex of 'gdp_mutex' is used to serialize creating/querying
glue dir and its cleanup. Turns out it isn't a perfect way because
part(kobj_kset_leave()) of the actual cleanup action() is done inside
the release handler of the glue dir kobject. That means gdp_mutex has
to be held before releasing the last reference count of the glue dir
kobject.

This patch moves glue dir's cleanup after kobject_del() in device_del()
for avoiding the race.

Change-Id: I92b10e62be8129ead5859a285bf964ab0a3ae2fd
Cc: Yijing Wang <wangyijing@huawei.com>
Reported-by: Chandra Sekhar Lingutla <clingutla@codeaurora.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: cebf8fd16900fdfd58c0028617944f808f97fe50
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2016-11-01 10:30:01 +05:30
Linux Build Service Account
30b895d9f1 Merge "spmi-pmic-arb: fix a possible null pointer dereference" 2016-10-31 20:15:00 -07:00
Linux Build Service Account
e7e78fb541 Merge "msm: vidc: Add Colorspace in sequence change event" 2016-10-31 20:14:59 -07:00
Linux Build Service Account
d01975ab44 Merge "msm: mdss: Add Rec2020 YUV conversion to CSC tables" 2016-10-31 20:14:58 -07:00
Linux Build Service Account
22205d0388 Merge "pmic-voter: Add the votable name in debugfs" 2016-10-31 20:14:53 -07:00
Abhijeet Dharmapurikar
5558abe400 spmi-pmic-arb: fix a possible null pointer dereference
If "core" memory resource is not specified, the driver could end up
dereferencing a null pointer.

Fix this by returning -EINVAL when core resource is missing.

Change-Id: Id08f7b2e109b6b2963b19dfe07f07cbfb424202b
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-10-31 15:40:26 -07:00
Lorenzo Colitti
b252eaba1a selinux: nlmsgtab: add SOCK_DESTROY to the netlink mapping tables
Without this, using SOCK_DESTROY in enforcing mode results in:

  SELinux: unrecognized netlink message type=21 for sclass=32

CRs-Fixed: 1084190
Change-Id: I7862bb0fc83573567243ffa9549a2c7405b5986c
Git-commit: 2c332426b5af4edf921d064b183da76c1ae2fda6
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-10-31 16:33:26 -06:00
Shubhraprakash Das
99f9ed8ccd msm: camera: isp: Fix reset sequence on stop
When camera is stopped the current reset sequence was causing
bus error on next start. Avoid the bus error by following
the reset sequence of overflow recovery and reset the registers
as well on stop.

CRs-Fixed: 1070583
Change-Id: Iaac10a722a595ce7864e813aa56685689356f6a9
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-10-31 15:02:06 -07:00
Shubhraprakash Das
078e09d7f4 msm: camera: ispif: Do not reset ispif
When ispif device is closed there is no need to reset the
hardware because on open the h/w will be reset.

CRs-Fixed: 1070583
Change-Id: If0e92e26c7a44c614536ba0178dc9f70a4260fd5
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-10-31 14:58:41 -07:00
Linux Build Service Account
9b370b3988 Merge "Don't show empty tag stats for unprivileged uids" 2016-10-31 13:04:31 -07:00
Linux Build Service Account
c1818afef3 Merge "msm: ipa3: wait for uC load before USB disconnect" 2016-10-31 13:04:30 -07:00
Linux Build Service Account
b333bf73d8 Merge "wil6210: prevent XTAL off in device bootloader" 2016-10-31 13:04:29 -07:00
Linux Build Service Account
42721afa5c Merge "msm: ipa3: fix send_cmd_timeout logic" 2016-10-31 13:04:29 -07:00
Linux Build Service Account
07b3f6b473 Merge "ASoC: wcd9335: Enable standalone ldo_h" 2016-10-31 13:04:28 -07:00
Linux Build Service Account
f00ef44094 Merge "ASoC: wcd934x: Restore CPR defaults after SSR" 2016-10-31 13:04:27 -07:00
Linux Build Service Account
ef7b2af68d Merge "ASoC: wcd934x: Add impedance detection controls" 2016-10-31 13:04:26 -07:00
Linux Build Service Account
ebe200df73 Merge "smb138x-charger: Fix FCC and FV parameters" 2016-10-31 13:04:26 -07:00
Benet Clark
cfc8fc0fd5 msm: mdss: Add Rec2020 YUV conversion to CSC tables
Rec2020 CSC type will be set by hwcomposer when incoming YUV data
is of the same type.

CRs-Fixed: 1081779
Change-Id: I321bd79d04e135030764dcdf83a58fee3c4e72c8
Signed-off-by: Benet Clark <benetc@codeaurora.org>
2016-10-31 13:04:17 -07:00
Linux Build Service Account
44057c87c7 Merge "init: do_mounts: Add a dummy definition for dm_table_put" 2016-10-31 13:04:15 -07:00
Linux Build Service Account
9f610da312 Merge "qseecom: check error return value of ion_map_kernel" 2016-10-31 13:04:15 -07:00
Linux Build Service Account
e8035d93b6 Merge "clk: msm: clock-osm: Request Nominal Fmax frequency after OSM enable" 2016-10-31 13:04:14 -07:00
Linux Build Service Account
bd72fb6127 Merge "cfg80211: pass struct to interface combination check/iter" 2016-10-31 13:04:13 -07:00
Linux Build Service Account
30f56e0fdd Merge "ASoC: wcd934x: fix default value for FLL threshold" 2016-10-31 13:04:12 -07:00
Linux Build Service Account
c18b6acd00 Merge "binder: prevent kptr leak by using %pK format specifier" 2016-10-31 13:04:12 -07:00
Linux Build Service Account
3fb3076e3a Merge "ARM: dts: msm: correct pmicobalt_bob regulator name for msmcobalt" 2016-10-31 13:04:11 -07:00
Linux Build Service Account
0586a4352e Merge "usb: dwc3: Turn on memory core and periphery upon resume" 2016-10-31 13:04:10 -07:00
Linux Build Service Account
ffe1d3bc59 Merge "Bluetooth:Add ioctl to power control connectivity chip" 2016-10-31 13:04:09 -07:00
Linux Build Service Account
886a8990bb Merge "ARM: qcom: add board entries for msmtriton" 2016-10-31 13:04:08 -07:00
Linux Build Service Account
431c8dad69 Merge "msm: crypto: Fix integer over flow check in qce driver" 2016-10-31 13:04:08 -07:00
Linux Build Service Account
569214bfff Merge "leds: qpnp-wled: add support for configuring ILIM in pmicobalt" 2016-10-31 13:04:03 -07:00
Linux Build Service Account
680825f666 Merge "leds: qpnp-wled: Update AMOLED_VOUT programming" 2016-10-31 13:04:03 -07:00
Linux Build Service Account
c5d6943008 Merge "clk: msm: Add COMMON_CLK branch memory flags" 2016-10-31 13:04:02 -07:00
Linux Build Service Account
19bbe52518 Merge "ARM: dts: msm: fix WLED sink configuration for msmcobalt QRD platform" 2016-10-31 13:04:01 -07:00
Linux Build Service Account
3b18362c95 Merge "msm: kgsl: Clear the interrupt immediately" 2016-10-31 13:04:00 -07:00
Linux Build Service Account
5ea83a180a Merge "ARM: dts: msm: add support for etm and cpu-cti on msmfalcon" 2016-10-31 13:03:59 -07:00
Mohamad Ayyash
760d208500 Don't show empty tag stats for unprivileged uids
BUG: 27577101
BUG: 27532522
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Git-repo: https://android.googlesource.com/kernel/common.git
Git-commit: d85e322ff3bc8d7aa872ad12df6427dd236e540a
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
Change-Id: Ia706e7184ab31c5e4e3bb2668a1ab7660ca3c6ce
2016-10-31 11:26:04 -07:00
Skylar Chang
9f74c08e6e msm: ipa3: wait for uC load before USB disconnect
In case RG10 workaround is in use, USB disconnect sequence
needs to be delayed until uC image is loaded in order to
allow to suspend and unsuspend pipes successfully.

Change-Id: I0ba41c9564c12b0b2c419222b54fa0e05be93b75
CRs-Fixed: 1083675
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-31 09:57:54 -07:00
Linux Build Service Account
015c20d6be Merge "icnss: Shutdown Adrastea before remapping MSA0" 2016-10-31 06:59:16 -07:00