Commit graph

577574 commits

Author SHA1 Message Date
Jack Pham
64d72675d7 usb: pd: Avoid calling SVID disconnect if not previously connected
Only call an SVID handler's disconnect function only if it was
previously connected, i.e. when the state machine had proceeded
received a successful DISCOVER_SVIDs response. This helps to
avoid excessive notification to SVID clients.

While at it, require that .connect and .disconnect callbacks
are supplied during registration. This helps to eliminate NULL
checks each time they are called.

Change-Id: I030153a6b2106a6504ed51b5cb00a27f842e2488
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-11-02 20:22:11 -07:00
penliu
ba2ce60632 ARM: dts: msm: Add camera dtsi file for msmcobalt qrd skuk board
Add camera dtsi file for msmcobalt qrd skuk board.
Camera dtsi define DT of rear and front camera.

Change-Id: I7529a30af5d3c16a9c40ace5b5bb85e43cc28923
Signed-off-by: penliu <pengfeiliu@codeaurora.org>
2016-11-02 18:53:18 -07:00
Siena Richard
8828f89dfd ASoC: msmcobalt: clean up bootup errors
Fix errors shown during bootup to ensure robustness and enable a
cleaner bootup process.

Change-Id: Iaee59cf2d668e9a324ecf1e1106f6daecc54d67b
CRs-fixed: 1073250
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-11-02 17:27:52 -07:00
Phani Kumar Uppalapati
7ed173e8fc ASoC: wcd934x: Update OCP connection attempts
Update headphone OCP (Over Current Protection)
connection attempts to 2 to avoid hardware state
machine getting stuck in OCP state even after
reset.

CRs-Fixed: 1083736
Change-Id: I69e37a93418b99a187c7b46cf62524c5fc4901f2
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-11-02 17:04:01 -07:00
Sudheer Papothi
c8c16b7406 drivers: qcom: ultrasound: Lock async driver calls
Adds lock to ioctl and other external calls to driver.
Adds missing null check in __usf_set_stream_param.

Change-Id: I142f31c6bb46d6a394ad012077e1703875a120ad
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-11-02 16:40:43 -07:00
Abhijit Kulkarni
f7768d3345 msm: mdss: Add support for secure camera
Add interface support for secure camera. This change adds the
flag for the secure camera buffer in mdss and sde rotator driver
interface.

CRs-Fixed: 1085143
Change-Id: I3d4c1c7587b367836a151c3c988f58790611acd1
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-11-02 15:39:43 -07:00
Bhalchandra Gajare
600e3c659b ASoC: wcd934x-dsp-cntl: Add misc device to control codec dsp
The codec DSP needs to be enabled only when there is use case that
utilizes the DSP. This way the codec DSP can be shutdown when it
is not used. Change adds misc device node that the user space can
use to trigger boot and shutdown of DSP.

CRs-Fixed: 1085213
Change-Id: Ie8bb9ed903e46b0914b4ba2630efa864c751c29b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-11-02 15:19:39 -07:00
Hemant Kumar
a77a2e80e7 usb: dwc3: Draw 100mA upon host bus reset
Upon host bus reset driver draws 0mA and switches
to higher value 900/500 mA after moving to configured
state. This causes a glitch in the led and battery icon
status. Hence request to draw 100mA to void the glitch.

Change-Id: Id570e427d40d08e29cad7cb74be426bf218d00ee
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-02 14:54:30 -07:00
Linux Build Service Account
8a4f90bd10 Merge "soc: qcom: scm: add check to avoid buffer overflow" 2016-11-02 14:41:43 -07:00
Linux Build Service Account
1057dedd40 Merge "driver core: fix race between creating/querying glue dir and its cleanup" 2016-11-02 14:41:41 -07:00
Linux Build Service Account
8a4e6fcee3 Merge "msm: secure_buffer: fix scm call argument layout" 2016-11-02 14:41:40 -07:00
Linux Build Service Account
875dca44ef Merge "cfg80211: support virtual interfaces with different beacon intervals" 2016-11-02 14:41:39 -07:00
Linux Build Service Account
0959fcfffd Merge "ARM: dts: msm: add support for QBT1000 on msmcobalt" 2016-11-02 14:41:38 -07:00
Linux Build Service Account
4e38e151ea Merge "ARM: dts: msm: specify SPI configuration for msmfalcon." 2016-11-02 14:41:37 -07:00
Linux Build Service Account
46f563dcc0 Merge "leds: qpnp-flash-v2: Fix strobe control settings" 2016-11-02 14:41:37 -07:00
Linux Build Service Account
0d24d9472f Merge "ARM: dts: msm: Add initial support for msmcobalt V2 QRD SKUK board" 2016-11-02 14:41:36 -07:00
Linux Build Service Account
1bd40bfda3 Merge "ARM: dts: msm: correct cpu nodes information for msmtriton" 2016-11-02 14:41:35 -07:00
Linux Build Service Account
4b37769e9e Merge "sched/hmp: Automatically add children threads to colocation group" 2016-11-02 14:41:34 -07:00
Linux Build Service Account
adfb89a493 Merge "dwc3: gadget: Remove disabling events and ep0 from gadget stop" 2016-11-02 14:41:33 -07:00
Linux Build Service Account
cf07c20103 Merge "ASoC: wcd934x: Initialize mbhc pointer before access" 2016-11-02 14:41:33 -07:00
Linux Build Service Account
d8ad28c008 Merge "ASoc: wcd934x: correct MAD micbias setting" 2016-11-02 14:41:32 -07:00
Linux Build Service Account
7a4ed459e7 Merge "usb_bam: Avoid uninitialized variable errors" 2016-11-02 14:41:31 -07:00
Linux Build Service Account
59f5ac9019 Merge "clk: msm: clock-debug: Print VDD level in clock_state traces" 2016-11-02 14:41:30 -07:00
Linux Build Service Account
72b163627a Merge "msm: vidc: Scale bus bw along with venus clocks" 2016-11-02 14:41:29 -07:00
Linux Build Service Account
137f201d51 Merge "Revert "init: do_mounts: Add a dummy definition for dm_table_put"" 2016-11-02 14:41:27 -07:00
Linux Build Service Account
f505d0d4f0 Merge "coresight: tmc: avoid null pointer dereference" 2016-11-02 14:41:26 -07:00
Linux Build Service Account
ca13239ffd Merge "msm: mdss: lock mutex before setting backlight" 2016-11-02 14:41:24 -07:00
Linux Build Service Account
0e0667d15e Merge "ion: disable system contig heap" 2016-11-02 14:41:23 -07:00
Linux Build Service Account
7774b2db99 Merge "msm: camera: cpp: Validate frame message before manipulating it." 2016-11-02 14:41:22 -07:00
Umesh Pandey
f6a457f2dd msm: vidc: Print secure info for a session
Print if the session is secure or not in the vidc
driver fault handler.

CRs-Fixed: 1084723
Change-Id: Iffc4a829613f9aa939b1ed20d360d54bfc541f10
Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
2016-11-02 14:36:26 -07:00
Oleg Perelet
0f6fb12d6d msm: kgsl: Enable retention for gpu core clock
Enable memory retention for gpucc_gfx3d.

CRs-Fixed: 1083111
Change-Id: Ic695e5320d6acbe8d16e23851f752a7fa673f0da
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-11-02 13:46:17 -07:00
Maya Erez
bb295f4bf7 wil6210: validate wil_pmc_alloc parameters
num_descriptors and descriptor_size needs to be
checked for:
1) not being negative values
2) no overflow occurs when these are multiplied
together as done in wil_pmc_read.
An overflow of two signed integers is undefined
behavior.

CRs-Fixed: 1077174
Change-Id: I669dc12a17b3102a7fd7f28e8c78843e3e3f9764
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-11-02 21:45:37 +02:00
Hemant Kumar
23b3d4b4de sound: usb: Map audio format received from QMI client
Audio format received from QMI client are not one to one
mapped to pcm format defined by ALSA driver. This causes
format mismatch when QMI client request a format not
defined by ALSA driver. Fix this by creating a mapping
between two formats.

Change-Id: I0f08dd57fa39d385369ef4886d12e8ea77c6ebc0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-02 12:21:18 -07:00
Naseer Ahmed
ffe67c4cf8 mdss: Fix solid fill unpack pattern
Most users expect RGB order instead of RBG.
When userspace gives an ARGB color, the blue and green
channels are swapped.
Adjust pattern to match ARGB instead of ARBG.

CRs-Fixed: 1045472 1084507
Change-Id: I413ded858df41496d26362602abf3eb40c3cc1ed
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2016-11-02 11:24:42 -04:00
Manoj Prabhu B
f139281b60 diag: Fix race condition while closing SMD
This patch extends protection while closing SMD/socket while
feature mask processing.

CRs-Fixed: 1059771
Change-Id: Icdf27dce5b3eb7cfc4a7686f044195db13a81a58
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-11-02 19:43:35 +05:30
Manoj Prabhu B
b7b9ec64a7 diag: Add mutex protection while closing SMD
On receiving feature mask add mutex protection while closing
SMD and start reading from socket channel.

CRs-Fixed: 980999
Change-Id: I01e5e8c9e0b03fa8b09f0ffd6857fe7e60a48091
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-11-02 19:10:16 +05:30
Vikash Garodia
88917ede9e msm: vidc: Initialize the dcvs load during perf mode switch
Incase V4L2 client sets the perf mode to TURBO, DCVS
is turned off. Now when the client sets the perf mode
back to nominal, venus clock and load is changed but
dcvs parameters are not updated to reflect the driver
current state interms of venus load. Initialize the
dcvs parameters to update itself as per the ongoing
venus load.

Change-Id: I8f35cdd154fbde49c95cdd0e5f7df4b9e4f897a5
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
2016-11-02 06:32:38 -07:00
Linux Build Service Account
8992f7dd08 Merge "msm: vidc: Correct debugfs directory name" 2016-11-02 05:22:32 -07:00
Linux Build Service Account
132e00e993 Merge "ARM: dts: msm: Add qcom,dump-size entry for dumping CPU L1/L2 caches" 2016-11-02 05:22:31 -07:00
Linux Build Service Account
64f10bccf4 Merge "Documentation: arm: add cache DT bindings" 2016-11-02 05:22:30 -07:00
Purushottam Kushwaha
be04d39c8b cfg80211: support virtual interfaces with different beacon intervals
This commit provides a mechanism for the host drivers to advertise the
support for different beacon intervals among the respective interface
combinations in a group, through NL80211_IFACE_COMB_BI_MIN_GCD (u32).

This value will be compared against GCD of all beaconing interfaces of
matching combinations.

If the driver doesn't advertise this value, the old behaviour where
all beacon intervals must be identical is retained.

If it is specified, then any beacon interval for an interface in the
interface combination as well as the GCD of all active beacon intervals
in the combination must be greater or equal to this value.

Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
[change commit message, some variable names, small other things]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Git-commit: 0c317a02ca982ca093e71bf07cb562265ba40032
CRs-fixed: 1025311
Change-Id: Ie432af1fefc79f88ec67d212f8b9880355c4266d
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
[pkushwah@codeaurora.org: This commit also includes fix for memory leak
which was introduced by 0c317a02ca982ca093e71bf07cb562265ba40032
320c975f180b19296f0fd6c5bf2144e633aaba5e:
cfg80211: fix possible memory leak in cfg80211_iter_combinations()]
2016-11-02 04:22:03 -07:00
Lior Barenboim
9807d70133 ARM: dts: msm: add support for QBT1000 on msmcobalt
Add node for QBT1000 (fingerprint sensor) which defines the
clocks which are used by the driver and GPIOs which are used
to signal IPC messaging and finger detection.

Add pmcobalt entry for MTP for physical home-button GPIO.

Change-Id: I3eb92f83b42b0fa28dc73f6e0d4f74ef50375855
Signed-off-by: Lior Barenboim <liorb@codeaurora.org>
2016-11-02 12:17:04 +02:00
ansharma
c04ad37d1b leds: qpnp-flash-v2: Fix strobe control settings
Currently strobe control is cleared even when HW strobe control is not
explicitly enabled. Fix it.

CRs-Fixed: 1077179
Change-Id: I5bc6a5a46311206818d70567e31fd84adc0128be
Signed-off-by: ansharma <ansharma@codeaurora.org>
2016-11-02 13:05:10 +05:30
Mukesh Kumar Savaliya
e9f5e981bc ARM: dts: msm: specify SPI configuration for msmfalcon.
Initial support for all BLSP SPIs with default configuration
and disabled state such that clients can overwrite and enable
respective SPI instance as per need.

Change-Id: Ia60fc3ecb5c2aba19effe1c8242f2d89fdef3ebd
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2016-11-02 11:42:06 +05:30
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