OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agomsm: ipa: Add support to configure WAN RX desc size
Sunil Paidimarri [Fri, 14 Oct 2016 20:33:08 +0000 (13:33 -0700)]
msm: ipa: Add support to configure WAN RX desc size

Embedded tputs depend on WAN RX desc size, but, every target
has its own limitations of memory and embedded tputs goals.
So, add parameter to configure WAN RX desc size through device tree.

Change-Id: I28c550058dd990c9c8cd368a2677097c7f057ccd
CRs-Fixed: 1081543
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
7 years agoMerge "usb: pd: Avoid calling SVID disconnect if not previously connected"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:06 +0000 (06:24 -0700)]
Merge "usb: pd: Avoid calling SVID disconnect if not previously connected"

7 years agoMerge "ASoC: wcd934x-dsp-cntl: Add misc device to control codec dsp"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:05 +0000 (06:24 -0700)]
Merge "ASoC: wcd934x-dsp-cntl: Add misc device to control codec dsp"

7 years agoMerge "drivers: qcom: ultrasound: Lock async driver calls"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:02 +0000 (06:24 -0700)]
Merge "drivers: qcom: ultrasound: Lock async driver calls"

7 years agoMerge "drivers: soc: Add new parameters for APR IPC logging"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:01 +0000 (06:24 -0700)]
Merge "drivers: soc: Add new parameters for APR IPC logging"

7 years agoMerge "ASoC: msm: qdsp6v2: Change audio drivers to use %pK"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:59 +0000 (06:23 -0700)]
Merge "ASoC: msm: qdsp6v2: Change audio drivers to use %pK"

7 years agoMerge "ASoC: wcd934x: Update OCP connection attempts"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:58 +0000 (06:23 -0700)]
Merge "ASoC: wcd934x: Update OCP connection attempts"

7 years agoMerge "clk: Add support to vote to regulator framework from clk framework"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:57 +0000 (06:23 -0700)]
Merge "clk: Add support to vote to regulator framework from clk framework"

7 years agoMerge "ASoC: msmcobalt: Initialize variable to default value"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:56 +0000 (06:23 -0700)]
Merge "ASoC: msmcobalt: Initialize variable to default value"

7 years agoMerge "ASoC: msm: qdsp6v2: Index check for out of range"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:55 +0000 (06:23 -0700)]
Merge "ASoC: msm: qdsp6v2: Index check for out of range"

7 years agoMerge "msm: camera: isp: Fix reset sequence on stop"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:54 +0000 (06:23 -0700)]
Merge "msm: camera: isp: Fix reset sequence on stop"

7 years agoMerge "usb: pd: Implement RX message queuing"
Linux Build Service Account [Thu, 3 Nov 2016 05:38:49 +0000 (22:38 -0700)]
Merge "usb: pd: Implement RX message queuing"

7 years agoMerge "usb: dwc3: Draw 100mA upon host bus reset"
Linux Build Service Account [Thu, 3 Nov 2016 05:38:48 +0000 (22:38 -0700)]
Merge "usb: dwc3: Draw 100mA upon host bus reset"

7 years agoMerge "sound: usb: Map audio format received from QMI client"
Linux Build Service Account [Thu, 3 Nov 2016 05:38:47 +0000 (22:38 -0700)]
Merge "sound: usb: Map audio format received from QMI client"

7 years agoMerge "selinux: nlmsgtab: add SOCK_DESTROY to the netlink mapping tables"
Linux Build Service Account [Thu, 3 Nov 2016 05:38:44 +0000 (22:38 -0700)]
Merge "selinux: nlmsgtab: add SOCK_DESTROY to the netlink mapping tables"

7 years agoclk: Add support to vote to regulator framework from clk framework
Stephen Boyd [Mon, 16 May 2016 05:35:16 +0000 (11:05 +0530)]
clk: Add support to vote to regulator framework from clk framework

Add vdd_class support which would help vote/unvote for any voltage rail
for the clock frequency to the regulator framework. A clock client request
for a clock frequency would look for the corresponding voltage vote and
would be send the request to regulator framework.

Change-Id: I5b1229091fcb7b3887b54735b9663fd31a35db21
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agousb: pd: Avoid calling SVID disconnect if not previously connected
Jack Pham [Mon, 31 Oct 2016 23:05:37 +0000 (16:05 -0700)]
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>
7 years agoASoC: wcd934x: Update OCP connection attempts
Phani Kumar Uppalapati [Wed, 2 Nov 2016 19:57:01 +0000 (12:57 -0700)]
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>
7 years agodrivers: qcom: ultrasound: Lock async driver calls
Sudheer Papothi [Tue, 25 Oct 2016 19:37:04 +0000 (01:07 +0530)]
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>
7 years agoASoC: wcd934x-dsp-cntl: Add misc device to control codec dsp
Bhalchandra Gajare [Fri, 28 Oct 2016 22:25:06 +0000 (15:25 -0700)]
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>
7 years agousb: dwc3: Draw 100mA upon host bus reset
Hemant Kumar [Mon, 31 Oct 2016 17:26:41 +0000 (10:26 -0700)]
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>
7 years agoMerge "soc: qcom: scm: add check to avoid buffer overflow"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:43 +0000 (14:41 -0700)]
Merge "soc: qcom: scm: add check to avoid buffer overflow"

7 years agoMerge "driver core: fix race between creating/querying glue dir and its cleanup"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:41 +0000 (14:41 -0700)]
Merge "driver core: fix race between creating/querying glue dir and its cleanup"

7 years agoMerge "msm: secure_buffer: fix scm call argument layout"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:40 +0000 (14:41 -0700)]
Merge "msm: secure_buffer: fix scm call argument layout"

7 years agoMerge "cfg80211: support virtual interfaces with different beacon intervals"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:39 +0000 (14:41 -0700)]
Merge "cfg80211: support virtual interfaces with different beacon intervals"

7 years agoMerge "ARM: dts: msm: add support for QBT1000 on msmcobalt"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:39 +0000 (14:41 -0700)]
Merge "ARM: dts: msm: add support for QBT1000 on msmcobalt"

7 years agoMerge "ARM: dts: msm: specify SPI configuration for msmfalcon."
Linux Build Service Account [Wed, 2 Nov 2016 21:41:38 +0000 (14:41 -0700)]
Merge "ARM: dts: msm: specify SPI configuration for msmfalcon."

7 years agoMerge "leds: qpnp-flash-v2: Fix strobe control settings"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:37 +0000 (14:41 -0700)]
Merge "leds: qpnp-flash-v2: Fix strobe control settings"

7 years agoMerge "ARM: dts: msm: Add initial support for msmcobalt V2 QRD SKUK board"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:36 +0000 (14:41 -0700)]
Merge "ARM: dts: msm: Add initial support for msmcobalt V2 QRD SKUK board"

7 years agoMerge "ARM: dts: msm: correct cpu nodes information for msmtriton"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:35 +0000 (14:41 -0700)]
Merge "ARM: dts: msm: correct cpu nodes information for msmtriton"

7 years agoMerge "sched/hmp: Automatically add children threads to colocation group"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:35 +0000 (14:41 -0700)]
Merge "sched/hmp: Automatically add children threads to colocation group"

7 years agoMerge "dwc3: gadget: Remove disabling events and ep0 from gadget stop"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:34 +0000 (14:41 -0700)]
Merge "dwc3: gadget: Remove disabling events and ep0 from gadget stop"

7 years agoMerge "ASoC: wcd934x: Initialize mbhc pointer before access"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:33 +0000 (14:41 -0700)]
Merge "ASoC: wcd934x: Initialize mbhc pointer before access"

7 years agoMerge "ASoc: wcd934x: correct MAD micbias setting"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:32 +0000 (14:41 -0700)]
Merge "ASoc: wcd934x: correct MAD micbias setting"

7 years agoMerge "usb_bam: Avoid uninitialized variable errors"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:32 +0000 (14:41 -0700)]
Merge "usb_bam: Avoid uninitialized variable errors"

7 years agoMerge "clk: msm: clock-debug: Print VDD level in clock_state traces"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:30 +0000 (14:41 -0700)]
Merge "clk: msm: clock-debug: Print VDD level in clock_state traces"

7 years agoMerge "msm: vidc: Scale bus bw along with venus clocks"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:29 +0000 (14:41 -0700)]
Merge "msm: vidc: Scale bus bw along with venus clocks"

7 years agoMerge "Revert "init: do_mounts: Add a dummy definition for dm_table_put""
Linux Build Service Account [Wed, 2 Nov 2016 21:41:28 +0000 (14:41 -0700)]
Merge "Revert "init: do_mounts: Add a dummy definition for dm_table_put""

7 years agoMerge "coresight: tmc: avoid null pointer dereference"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:27 +0000 (14:41 -0700)]
Merge "coresight: tmc: avoid null pointer dereference"

7 years agoMerge "msm: mdss: lock mutex before setting backlight"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:26 +0000 (14:41 -0700)]
Merge "msm: mdss: lock mutex before setting backlight"

7 years agoMerge "ion: disable system contig heap"
Linux Build Service Account [Wed, 2 Nov 2016 21:41:24 +0000 (14:41 -0700)]
Merge "ion: disable system contig heap"

7 years agoMerge "msm: camera: cpp: Validate frame message before manipulating it."
Linux Build Service Account [Wed, 2 Nov 2016 21:41:23 +0000 (14:41 -0700)]
Merge "msm: camera: cpp: Validate frame message before manipulating it."

7 years agosound: usb: Map audio format received from QMI client
Hemant Kumar [Thu, 13 Oct 2016 22:41:55 +0000 (15:41 -0700)]
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>
7 years agoMerge "msm: vidc: Correct debugfs directory name"
Linux Build Service Account [Wed, 2 Nov 2016 12:22:33 +0000 (05:22 -0700)]
Merge "msm: vidc: Correct debugfs directory name"

7 years agoMerge "ARM: dts: msm: Add qcom,dump-size entry for dumping CPU L1/L2 caches"
Linux Build Service Account [Wed, 2 Nov 2016 12:22:31 +0000 (05:22 -0700)]
Merge "ARM: dts: msm: Add qcom,dump-size entry for dumping CPU L1/L2 caches"

7 years agoMerge "Documentation: arm: add cache DT bindings"
Linux Build Service Account [Wed, 2 Nov 2016 12:22:31 +0000 (05:22 -0700)]
Merge "Documentation: arm: add cache DT bindings"

7 years agocfg80211: support virtual interfaces with different beacon intervals
Purushottam Kushwaha [Thu, 27 Oct 2016 12:02:05 +0000 (17:32 +0530)]
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()]

7 years agoARM: dts: msm: add support for QBT1000 on msmcobalt
Lior Barenboim [Sun, 9 Oct 2016 10:45:09 +0000 (13:45 +0300)]
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>
7 years agoleds: qpnp-flash-v2: Fix strobe control settings
ansharma [Mon, 24 Oct 2016 14:31:16 +0000 (20:01 +0530)]
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>
7 years agoARM: dts: msm: specify SPI configuration for msmfalcon.
Mukesh Kumar Savaliya [Tue, 4 Oct 2016 19:25:00 +0000 (00:55 +0530)]
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>
7 years agousb_bam: Avoid uninitialized variable errors
Arumuga Durai A [Wed, 28 Sep 2016 14:30:15 +0000 (20:00 +0530)]
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>
7 years agodwc3: gadget: Remove disabling events and ep0 from gadget stop
Vamsi Krishna Samavedam [Wed, 2 Nov 2016 00:31:59 +0000 (17:31 -0700)]
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>
7 years agoASoC: wcd934x: Initialize mbhc pointer before access
Phani Kumar Uppalapati [Wed, 26 Oct 2016 01:50:54 +0000 (18:50 -0700)]
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>
7 years agousb: pd: Implement RX message queuing
Jack Pham [Mon, 31 Oct 2016 22:52:11 +0000 (15:52 -0700)]
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>
7 years agoclk: msm: clock-debug: Print VDD level in clock_state traces
Deepak Katragadda [Tue, 1 Nov 2016 17:46:59 +0000 (10:46 -0700)]
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>
7 years agopower: reset: Do not disable SDI during reset
Satya Durga Srinivasu Prabhala [Tue, 1 Nov 2016 18:53:40 +0000 (11:53 -0700)]
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>
7 years agosoc: qcom: scm: add check to avoid buffer overflow
Satya Durga Srinivasu Prabhala [Tue, 25 Oct 2016 23:35:23 +0000 (16:35 -0700)]
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>
7 years agoARM: dts: msm: Add qcom,dump-size entry for dumping CPU L1/L2 caches
Prasad Sodagudi [Tue, 28 Jul 2015 04:31:04 +0000 (10:01 +0530)]
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>
7 years agoDocumentation: arm: add cache DT bindings
Lorenzo Pieralisi [Tue, 29 Apr 2014 01:35:24 +0000 (18:35 -0700)]
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>
7 years agoMerge "soc: qcom: signal buffer response after glink_rx_done()"
Linux Build Service Account [Tue, 1 Nov 2016 11:46:24 +0000 (04:46 -0700)]
Merge "soc: qcom: signal buffer response after glink_rx_done()"

7 years agoMerge "drivers: cpuidle: lpm-levels: Enable Sleep prediction"
Linux Build Service Account [Tue, 1 Nov 2016 11:46:15 +0000 (04:46 -0700)]
Merge "drivers: cpuidle: lpm-levels: Enable Sleep prediction"

7 years agomsm: secure_buffer: fix scm call argument layout
Shiraz Hashim [Tue, 1 Nov 2016 11:06:49 +0000 (16:36 +0530)]
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>
7 years agodriver core: fix race between creating/querying glue dir and its cleanup
Ming Lei [Sun, 10 Jul 2016 11:27:36 +0000 (19:27 +0800)]
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>
7 years agoMerge "spmi-pmic-arb: fix a possible null pointer dereference"
Linux Build Service Account [Tue, 1 Nov 2016 03:15:01 +0000 (20:15 -0700)]
Merge "spmi-pmic-arb: fix a possible null pointer dereference"

7 years agoMerge "msm: vidc: Add Colorspace in sequence change event"
Linux Build Service Account [Tue, 1 Nov 2016 03:14:59 +0000 (20:14 -0700)]
Merge "msm: vidc: Add Colorspace in sequence change event"

7 years agoMerge "msm: mdss: Add Rec2020 YUV conversion to CSC tables"
Linux Build Service Account [Tue, 1 Nov 2016 03:14:59 +0000 (20:14 -0700)]
Merge "msm: mdss: Add Rec2020 YUV conversion to CSC tables"

7 years agoMerge "pmic-voter: Add the votable name in debugfs"
Linux Build Service Account [Tue, 1 Nov 2016 03:14:54 +0000 (20:14 -0700)]
Merge "pmic-voter: Add the votable name in debugfs"

7 years agospmi-pmic-arb: fix a possible null pointer dereference
Abhijeet Dharmapurikar [Tue, 13 Sep 2016 18:10:48 +0000 (11:10 -0700)]
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>
7 years agoselinux: nlmsgtab: add SOCK_DESTROY to the netlink mapping tables
Lorenzo Colitti [Wed, 3 Feb 2016 15:52:15 +0000 (00:52 +0900)]
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>
7 years agomsm: camera: isp: Fix reset sequence on stop
Shubhraprakash Das [Mon, 3 Oct 2016 23:08:24 +0000 (16:08 -0700)]
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>
7 years agomsm: camera: ispif: Do not reset ispif
Shubhraprakash Das [Mon, 3 Oct 2016 22:08:56 +0000 (15:08 -0700)]
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>
7 years agoMerge "Don't show empty tag stats for unprivileged uids"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:32 +0000 (13:04 -0700)]
Merge "Don't show empty tag stats for unprivileged uids"

7 years agoMerge "msm: ipa3: wait for uC load before USB disconnect"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:31 +0000 (13:04 -0700)]
Merge "msm: ipa3: wait for uC load before USB disconnect"

7 years agoMerge "wil6210: prevent XTAL off in device bootloader"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:30 +0000 (13:04 -0700)]
Merge "wil6210: prevent XTAL off in device bootloader"

7 years agoMerge "msm: ipa3: fix send_cmd_timeout logic"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:29 +0000 (13:04 -0700)]
Merge "msm: ipa3: fix send_cmd_timeout logic"

7 years agoMerge "ASoC: wcd9335: Enable standalone ldo_h"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:28 +0000 (13:04 -0700)]
Merge "ASoC: wcd9335: Enable standalone ldo_h"

7 years agoMerge "ASoC: wcd934x: Restore CPR defaults after SSR"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:27 +0000 (13:04 -0700)]
Merge "ASoC: wcd934x: Restore CPR defaults after SSR"

7 years agoMerge "ASoC: wcd934x: Add impedance detection controls"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:27 +0000 (13:04 -0700)]
Merge "ASoC: wcd934x: Add impedance detection controls"

7 years agoMerge "smb138x-charger: Fix FCC and FV parameters"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:26 +0000 (13:04 -0700)]
Merge "smb138x-charger: Fix FCC and FV parameters"

7 years agomsm: mdss: Add Rec2020 YUV conversion to CSC tables
Benet Clark [Fri, 18 Dec 2015 15:51:08 +0000 (07:51 -0800)]
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>
7 years agoMerge "init: do_mounts: Add a dummy definition for dm_table_put"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:16 +0000 (13:04 -0700)]
Merge "init: do_mounts: Add a dummy definition for dm_table_put"

7 years agoMerge "qseecom: check error return value of ion_map_kernel"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:15 +0000 (13:04 -0700)]
Merge "qseecom: check error return value of ion_map_kernel"

7 years agoMerge "clk: msm: clock-osm: Request Nominal Fmax frequency after OSM enable"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:14 +0000 (13:04 -0700)]
Merge "clk: msm: clock-osm: Request Nominal Fmax frequency after OSM enable"

7 years agoMerge "cfg80211: pass struct to interface combination check/iter"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:14 +0000 (13:04 -0700)]
Merge "cfg80211: pass struct to interface combination check/iter"

7 years agoMerge "ASoC: wcd934x: fix default value for FLL threshold"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:13 +0000 (13:04 -0700)]
Merge "ASoC: wcd934x: fix default value for FLL threshold"

7 years agoMerge "binder: prevent kptr leak by using %pK format specifier"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:12 +0000 (13:04 -0700)]
Merge "binder: prevent kptr leak by using %pK format specifier"

7 years agoMerge "ARM: dts: msm: correct pmicobalt_bob regulator name for msmcobalt"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:11 +0000 (13:04 -0700)]
Merge "ARM: dts: msm: correct pmicobalt_bob regulator name for msmcobalt"

7 years agoMerge "usb: dwc3: Turn on memory core and periphery upon resume"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:11 +0000 (13:04 -0700)]
Merge "usb: dwc3: Turn on memory core and periphery upon resume"

7 years agoMerge "Bluetooth:Add ioctl to power control connectivity chip"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:10 +0000 (13:04 -0700)]
Merge "Bluetooth:Add ioctl to power control connectivity chip"

7 years agoMerge "ARM: qcom: add board entries for msmtriton"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:09 +0000 (13:04 -0700)]
Merge "ARM: qcom: add board entries for msmtriton"

7 years agoMerge "msm: crypto: Fix integer over flow check in qce driver"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:08 +0000 (13:04 -0700)]
Merge "msm: crypto: Fix integer over flow check in qce driver"

7 years agoMerge "leds: qpnp-wled: add support for configuring ILIM in pmicobalt"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:04 +0000 (13:04 -0700)]
Merge "leds: qpnp-wled: add support for configuring ILIM in pmicobalt"

7 years agoMerge "leds: qpnp-wled: Update AMOLED_VOUT programming"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:03 +0000 (13:04 -0700)]
Merge "leds: qpnp-wled: Update AMOLED_VOUT programming"

7 years agoMerge "clk: msm: Add COMMON_CLK branch memory flags"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:02 +0000 (13:04 -0700)]
Merge "clk: msm: Add COMMON_CLK branch memory flags"

7 years agoMerge "ARM: dts: msm: fix WLED sink configuration for msmcobalt QRD platform"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:01 +0000 (13:04 -0700)]
Merge "ARM: dts: msm: fix WLED sink configuration for msmcobalt QRD platform"

7 years agoMerge "msm: kgsl: Clear the interrupt immediately"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:01 +0000 (13:04 -0700)]
Merge "msm: kgsl: Clear the interrupt immediately"

7 years agoMerge "ARM: dts: msm: add support for etm and cpu-cti on msmfalcon"
Linux Build Service Account [Mon, 31 Oct 2016 20:04:00 +0000 (13:04 -0700)]
Merge "ARM: dts: msm: add support for etm and cpu-cti on msmfalcon"

7 years agoDon't show empty tag stats for unprivileged uids
Mohamad Ayyash [Wed, 11 May 2016 20:18:35 +0000 (13:18 -0700)]
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

7 years agomsm: ipa3: wait for uC load before USB disconnect
Skylar Chang [Mon, 31 Oct 2016 16:57:54 +0000 (09:57 -0700)]
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>
7 years agoMerge "icnss: Shutdown Adrastea before remapping MSA0"
Linux Build Service Account [Mon, 31 Oct 2016 13:59:16 +0000 (06:59 -0700)]
Merge "icnss: Shutdown Adrastea before remapping MSA0"