OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "msm: kgsl: Add debug log in adreno_of_get_pwrlevels()"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:51 +0000 (19:12 -0700)]
Merge "msm: kgsl: Add debug log in adreno_of_get_pwrlevels()"

6 years agoMerge "ARM: dts: msm: Add Support for new PM660L/A versions for SDM660/SDM630"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:50 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: Add Support for new PM660L/A versions for SDM660/SDM630"

6 years agoMerge "ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:48 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards"

6 years agoMerge "msm: ais: isp: Check null pointer for VFE0 base"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:47 +0000 (19:12 -0700)]
Merge "msm: ais: isp: Check null pointer for VFE0 base"

6 years agoMerge "ARM: dts: msm: enable camera on SDM636 MTP"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:46 +0000 (19:12 -0700)]
Merge "ARM: dts: msm: enable camera on SDM636 MTP"

6 years agoMerge "mmc: core: enable async suspend of card"
Linux Build Service Account [Tue, 12 Sep 2017 02:12:44 +0000 (19:12 -0700)]
Merge "mmc: core: enable async suspend of card"

6 years agoMerge "Revert "ARM: dts: msm: Add initial support for msm8998-9x55""
Linux Build Service Account [Tue, 12 Sep 2017 02:12:43 +0000 (19:12 -0700)]
Merge "Revert "ARM: dts: msm: Add initial support for msm8998-9x55""

6 years agoMerge "mmc: sdhci: Add logs when ignoring timeout due to quirk"
Linux Build Service Account [Sun, 10 Sep 2017 17:20:26 +0000 (10:20 -0700)]
Merge "mmc: sdhci: Add logs when ignoring timeout due to quirk"

6 years agoMerge "drivers: media: broadcast: Fix security vulnerability issue"
Linux Build Service Account [Sat, 9 Sep 2017 23:48:38 +0000 (16:48 -0700)]
Merge "drivers: media: broadcast: Fix security vulnerability issue"

6 years agoMerge "tty: serial_core: add tty NULL check to uart_tx_stopped"
Linux Build Service Account [Sat, 9 Sep 2017 13:32:42 +0000 (06:32 -0700)]
Merge "tty: serial_core: add tty NULL check to uart_tx_stopped"

7 years agoMerge "ARM: dts: msm: Enable CAN controller for msm8996 CV2X boards"
Linux Build Service Account [Sat, 9 Sep 2017 05:04:17 +0000 (22:04 -0700)]
Merge "ARM: dts: msm: Enable CAN controller for msm8996 CV2X boards"

7 years agoMerge "Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4"
Linux Build Service Account [Sat, 9 Sep 2017 05:04:15 +0000 (22:04 -0700)]
Merge "Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4"

7 years agoMerge "soc: qcom: initialize glink link state"
Linux Build Service Account [Sat, 9 Sep 2017 05:04:14 +0000 (22:04 -0700)]
Merge "soc: qcom: initialize glink link state"

7 years agoMerge "mmc: sdhci: Fix SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD handling"
Linux Build Service Account [Fri, 8 Sep 2017 05:42:21 +0000 (22:42 -0700)]
Merge "mmc: sdhci: Fix SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD handling"

7 years agoMerge "mmc: core: power off host if SD card resume fails"
Linux Build Service Account [Fri, 8 Sep 2017 05:42:20 +0000 (22:42 -0700)]
Merge "mmc: core: power off host if SD card resume fails"

7 years agotty: serial_core: add tty NULL check to uart_tx_stopped
Lei wang [Fri, 8 Sep 2017 02:34:18 +0000 (10:34 +0800)]
tty: serial_core: add tty NULL check to uart_tx_stopped

Commit 761ed4a94582 ("tty: serial_core: convert uart_close to use
tty_port_close") created a case where a port used for a console does not
get shutdown on tty closing. Then a call to uart_tx_stopped() segfaults
because the tty is NULL. This could be fixed to restore old behavior,
but we also want to allow tty_ports to work without a tty attached. So
this change to allow a NULL tty_struct is needed either way.

Fixes: 761ed4a94582
("tty: serial_core: convert uart_close to use tty_port_close")
Reported-by: kernel test robot <xiaolong.ye@intel.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ifbeeacc89d396b857332ce94cc2d77bdd6e12bb7
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: a727b025f43d7952c0697562f5cecda9f42758aa
Signed-off-by: Lei wang <leiwan@codeaurora.org>
7 years agoMerge "power: qpnp-fg-gen3: update SOC masking algorithm"
Linux Build Service Account [Thu, 7 Sep 2017 18:05:40 +0000 (11:05 -0700)]
Merge "power: qpnp-fg-gen3: update SOC masking algorithm"

7 years agoARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards
Gustavo Solaira [Wed, 6 Sep 2017 18:13:44 +0000 (11:13 -0700)]
ARM: dts: msm: Add FAN cooling device to msm8996 CV2X boards

Add a node for a GPIO-based FAN cooling device for msm8996
CV2X boards. This GPIO has a single speed and can be controlled
from user space.

Change-Id: Iee427407f3c4032e1394c61dd1f225e24a091a99
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
7 years agodefconfig: msm: Enable GPIO-based FAN for msm8996-auto
Gustavo Solaira [Wed, 6 Sep 2017 17:55:22 +0000 (10:55 -0700)]
defconfig: msm: Enable GPIO-based FAN for msm8996-auto

Enable the GPIO FAN driver to enable control of GPIO based
fans for cooling on msm8996-auto devices.

Change-Id: I5494fae1c7ab75362bc6c71c4e731f0581b01995
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
7 years agoMerge "drivers: net: can: Add K61 CAN controller driver"
Linux Build Service Account [Thu, 7 Sep 2017 07:46:05 +0000 (00:46 -0700)]
Merge "drivers: net: can: Add K61 CAN controller driver"

7 years agoMerge "diag: Support buffering mode for non-diag_id peripherals"
Linux Build Service Account [Thu, 7 Sep 2017 07:46:04 +0000 (00:46 -0700)]
Merge "diag: Support buffering mode for non-diag_id peripherals"

7 years agoMerge "lib/stackdepot.c: use __GFP_NOWARN for stack allocations"
Linux Build Service Account [Thu, 7 Sep 2017 07:46:03 +0000 (00:46 -0700)]
Merge "lib/stackdepot.c: use __GFP_NOWARN for stack allocations"

7 years agoMerge "diag: Proper Update of the PD packet buffer status and length"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:56 +0000 (12:55 -0700)]
Merge "diag: Proper Update of the PD packet buffer status and length"

7 years agoMerge "msm: mdss: Enable clocks for WFD setup"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:55 +0000 (12:55 -0700)]
Merge "msm: mdss: Enable clocks for WFD setup"

7 years agoMerge "msm: sde: Avoid NULL pointer dereference in cancel request"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:54 +0000 (12:55 -0700)]
Merge "msm: sde: Avoid NULL pointer dereference in cancel request"

7 years agoMerge "defconfig: msm: enable Linux Kernel Dump Test Tool"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:53 +0000 (12:55 -0700)]
Merge "defconfig: msm: enable Linux Kernel Dump Test Tool"

7 years agoMerge "msm: camera: Return -NOTTY on invalid ioctl command."
Linux Build Service Account [Wed, 6 Sep 2017 19:55:52 +0000 (12:55 -0700)]
Merge "msm: camera: Return -NOTTY on invalid ioctl command."

7 years agoMerge "cnss2: Increase QMI ATHDIAG maximum data size"
Linux Build Service Account [Wed, 6 Sep 2017 19:55:51 +0000 (12:55 -0700)]
Merge "cnss2: Increase QMI ATHDIAG maximum data size"

7 years agopower: qpnp-fg-gen3: update SOC masking algorithm
Subbaraman Narayanamurthy [Wed, 26 Jul 2017 23:46:41 +0000 (16:46 -0700)]
power: qpnp-fg-gen3: update SOC masking algorithm

Currently, FULL_SOC and MONOTONIC_SOC registers are updated
multiple times when the recharge SOC threshold is close enough to
trigger the recharging frequently. This was leading to a SOC
fluctuation when SOC masking algorithm is enabled.

Rearrange charge_full_update used in SOC masking algorithm such
that FULL_SOC and MONOTONIC_SOC registers are updated just once
when the charge_full flag is cleared.

Also, when the device is rebooted/shutdown and if charge_full
flag is set, write to FULL_SOC with battery_soc and a full value
to MONOTONIC_SOC registers. This helps to maintain the same SOC
across a device reboot.

Change-Id: I95afa90f27e4c0f948f301ff8d6a1f84ae422ef0
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: Enable CAN controller for msm8996 CV2X boards
Gustavo Solaira [Wed, 23 Aug 2017 18:30:39 +0000 (11:30 -0700)]
ARM: dts: msm: Enable CAN controller for msm8996 CV2X boards

Add a device tree node for the SPI CAN controller to enable
a CAN network interface for msm8996 CV2X boards.

Change-Id: Ib9c1d63bf86e3b823aa8d762065ed374bdfeaa0e
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
7 years agodefconfig: msm: Enable the K61 CAN driver
Gustavo Solaira [Thu, 24 Aug 2017 05:53:27 +0000 (22:53 -0700)]
defconfig: msm: Enable the K61 CAN driver

Enable configuration for K61 CAN over SPI driver.

Change-Id: I801629ac04303582530bed354282960db8f9c9ab
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
7 years agocan: k61: Changes to support the mpc5746c controller
Gustavo Solaira [Thu, 24 Aug 2017 07:49:13 +0000 (00:49 -0700)]
can: k61: Changes to support the mpc5746c controller

Add new parameters to account for different MCUs that can
be used with this driver. These devices have different reset
sequences and number of bits per word supported via SPI. Add
bindings for the mpc5746c controller and make the reset signal
optional.

Change-Id: I616dd3cfedf18a6e21683e1c07551c57c62a675d
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
7 years agodrivers: net: can: Add K61 CAN controller driver
Abinaya P [Thu, 1 Dec 2016 12:55:03 +0000 (18:25 +0530)]
drivers: net: can: Add K61 CAN controller driver

This driver creates Network device of type CAN
and processes tx and rx frames that it sends and
receives over SPI protocol.

Change-Id: I54a8665d1b9eda7e9b1ff695bd67de312c410195
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
7 years agomsm: camera: Return -NOTTY on invalid ioctl command.
Trishansh Bhardwaj [Mon, 4 Sep 2017 05:32:14 +0000 (11:02 +0530)]
msm: camera: Return -NOTTY on invalid ioctl command.

Check validity of command before processing.

Change-Id: Icc5c57eac999b7c40fbb9505b2b88745167adc66
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
7 years agoMerge "ASoC: wsa881x: Fix wsa881x speaker damage"
Linux Build Service Account [Wed, 6 Sep 2017 08:42:39 +0000 (01:42 -0700)]
Merge "ASoC: wsa881x: Fix wsa881x speaker damage"

7 years agodiag: Support buffering mode for non-diag_id peripherals
Manoj Prabhu B [Tue, 29 Aug 2017 05:14:00 +0000 (10:44 +0530)]
diag: Support buffering mode for non-diag_id peripherals

The patch adds the support for buffering mode configuration
for peripherals not supporting diag_id.

CRs-Fixed: 2104591
Change-Id: I2ed34a5141a9b9042dc925c9109d22009b272484
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
7 years agoMerge "soc: qcom: ipc_router_glink_xprt: Add wakeup source in RX path"
Linux Build Service Account [Tue, 5 Sep 2017 20:45:24 +0000 (13:45 -0700)]
Merge "soc: qcom: ipc_router_glink_xprt: Add wakeup source in RX path"

7 years agocnss2: Increase QMI ATHDIAG maximum data size
Yue Ma [Tue, 5 Sep 2017 17:16:01 +0000 (10:16 -0700)]
cnss2: Increase QMI ATHDIAG maximum data size

Increase QMI ATHDIAG maximum data size to 6144 bytes so that it
can dump more bytes for debugging.

Change-Id: I21d6197ad67829c38586318d4e76a7c7fd4149c4
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
7 years agolib/stackdepot.c: use __GFP_NOWARN for stack allocations
Kirill A. Shutemov [Thu, 28 Jul 2016 22:49:10 +0000 (15:49 -0700)]
lib/stackdepot.c: use __GFP_NOWARN for stack allocations

This (large, atomic) allocation attempt can fail.  We expect and handle
that, so avoid the scary warning.

Change-Id: I3e5d7dbe7d264c2bbeab46db6e0cb8fc9a20e607
Link: http://lkml.kernel.org/r/20160720151905.GB19146@node.shutemov.name
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Rik van Riel <riel@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 87cc271d5e4320d705cfdf59f68d4d037b3511b2
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
7 years agodrivers: media: broadcast: Fix security vulnerability issue
Udaya Bhaskara Reddy Mallavarapu [Tue, 5 Sep 2017 06:31:41 +0000 (12:01 +0530)]
drivers: media: broadcast: Fix security vulnerability issue

Information leak issue is reported in mpq_sdmx_log_level_write
function. Added check to validate count is not zero and initialize
the string.

Change-Id: Ieb2ed88c2d7d778c56be2ec3b9875270a9c74dce
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
7 years agommc: core: power off host if SD card resume fails
Can Guo [Thu, 27 Jul 2017 02:15:49 +0000 (10:15 +0800)]
mmc: core: power off host if SD card resume fails

Current SD card resume function does not handle card
init failure but only prints resume error message.
This change powers off mmc host before exit resume
if card init fails.

Change-Id: Idc27d8ed8769b92373bb9770f5e706b18e76404d
Signed-off-by: Can Guo <cang@codeaurora.org>
7 years agomsm: ais: isp: Check null pointer for VFE0 base
Rahul Sharma [Tue, 5 Sep 2017 06:49:59 +0000 (12:19 +0530)]
msm: ais: isp: Check null pointer for VFE0 base

Add NULL pointer check for vfe_base of VFE0.

CRs-Fixed: 1032715
Change-Id: Ie8ed5d14947d9894eb902ea514a1888be98961ef
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
7 years agoMerge "qpnp-smb2: provide means to suspend dcin"
Linux Build Service Account [Tue, 5 Sep 2017 07:20:38 +0000 (00:20 -0700)]
Merge "qpnp-smb2: provide means to suspend dcin"

7 years agomsm: mdss: Enable clocks for WFD setup
Krishna Chaitanya Devarakonda [Thu, 17 Aug 2017 10:46:42 +0000 (16:16 +0530)]
msm: mdss: Enable clocks for WFD setup

The WFD setup path has few register writes. If the MDP clocks
aren't switched on, the register access might cause SMMU
faults. Turn on the clocks, before calling WFD setup.

Change-Id: Icc865178f43dc6068b6b4b201b8f9eada2570598
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
7 years agomsm: sde: Avoid NULL pointer dereference in cancel request
Krishna Chaitanya Devarakonda [Thu, 31 Aug 2017 15:54:53 +0000 (21:24 +0530)]
msm: sde: Avoid NULL pointer dereference in cancel request

There is a race condition possible when two threads are calling
the rotator cancel request. This might result in accessing a pointer
which was already assigned NULL. Fixing this by adding an extra check.

Change-Id: I9ce321a5f033d1fdc9d8b70a04098bfba3d7baaa
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
7 years agoqpnp-smb2: provide means to suspend dcin
Abhijeet Dharmapurikar [Thu, 3 Aug 2017 17:44:02 +0000 (10:44 -0700)]
qpnp-smb2: provide means to suspend dcin

Provide means to suspend the DC path using the power supply
property.

Change-Id: I97f83f5f7c892fc078a92914af0a923b6aacf02e
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agoMerge "msm: ipa3: fix compatibility with ipa user space"
Linux Build Service Account [Mon, 4 Sep 2017 22:01:54 +0000 (15:01 -0700)]
Merge "msm: ipa3: fix compatibility with ipa user space"

7 years agoMerge "ARM: dts: msm: Add truly panel support for SDM636"
Linux Build Service Account [Mon, 4 Sep 2017 13:37:57 +0000 (06:37 -0700)]
Merge "ARM: dts: msm: Add truly panel support for SDM636"

7 years agoMerge "spcom: avoid implicit casting from size_t to uint32 for file ops"
Linux Build Service Account [Mon, 4 Sep 2017 13:37:56 +0000 (06:37 -0700)]
Merge "spcom: avoid implicit casting from size_t to uint32 for file ops"

7 years agoMerge "f2fs: Revert duplicate F2FS_MAX_SEGMENT"
Linux Build Service Account [Mon, 4 Sep 2017 13:37:55 +0000 (06:37 -0700)]
Merge "f2fs: Revert duplicate F2FS_MAX_SEGMENT"

7 years agoMerge "power: qpnp-fg-gen3: apply SOC linearization based on user input"
Linux Build Service Account [Mon, 4 Sep 2017 13:37:52 +0000 (06:37 -0700)]
Merge "power: qpnp-fg-gen3: apply SOC linearization based on user input"

7 years agoMerge "soc: qcom: dump current task stack and task_struct for minidump"
Linux Build Service Account [Mon, 4 Sep 2017 13:37:51 +0000 (06:37 -0700)]
Merge "soc: qcom: dump current task stack and task_struct for minidump"

7 years agoMerge "dwc3: core: remove calling phy_set_suspend() in dwc3_remove()"
Linux Build Service Account [Mon, 4 Sep 2017 13:37:50 +0000 (06:37 -0700)]
Merge "dwc3: core: remove calling phy_set_suspend() in dwc3_remove()"

7 years agoMerge "ARM: dts: msm: Add GPU maximum frequency 370Mhz support for SDM636"
Linux Build Service Account [Mon, 4 Sep 2017 13:37:49 +0000 (06:37 -0700)]
Merge "ARM: dts: msm: Add GPU maximum frequency 370Mhz support for SDM636"

7 years agomsm: ipa3: fix compatibility with ipa user space
Amir Levy [Tue, 29 Aug 2017 13:36:43 +0000 (16:36 +0300)]
msm: ipa3: fix compatibility with ipa user space

Implement several IOCTLs to allow IPA user space work.

Change-Id: I726f665ada12c5524dabeab1b89cdc8db4dc6f1e
Acked-by: Dmitry Kogan <dmitryk@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
7 years agommc: sdhci: Add logs when ignoring timeout due to quirk
Vijay Viswanath [Tue, 25 Apr 2017 09:30:01 +0000 (15:00 +0530)]
mmc: sdhci: Add logs when ignoring timeout due to quirk

Due to some quirks, hardware timeout interrupts of commands with R1B
response get ignored. This is required as some commands take more time
to complete than what hardware controller can wait. But when actual
hardware timeout occurs due to faulty card or any other issue, the
issue will appear as software timeout and the information that a
hardware timeout occurred will be lost. So added logs through
ratelimited prink and ring buffer so that the information will be
present when debugging is required.

Change-Id: Ib8fe83c792251c55889909282d2defe466a123e7
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
7 years agommc: sdhci: Fix SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD handling
Sahitya Tummala [Mon, 24 Apr 2017 10:44:17 +0000 (16:14 +0530)]
mmc: sdhci: Fix SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD handling

If this quirk is set, then data timeout interrupt must not be
handled for R1B commands, as those commands may need larger
timeout value (larger than max timeout that controller can handle).

Change-Id: I7453b1914add21b47393b3eb1578d88e72da7406
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
7 years agoMerge "msm: mdss: hdmi: validate HDMI EDID's max number of CEA blocks"
Linux Build Service Account [Mon, 4 Sep 2017 06:04:21 +0000 (23:04 -0700)]
Merge "msm: mdss: hdmi: validate HDMI EDID's max number of CEA blocks"

7 years agoMerge "Merge branch 'dev/msm-4.4-8996au' into msm-4.4"
Linux Build Service Account [Mon, 4 Sep 2017 06:04:20 +0000 (23:04 -0700)]
Merge "Merge branch 'dev/msm-4.4-8996au' into msm-4.4"

7 years agoMerge "defconfig: msm: Disable DEVPORT config for sdm660"
Linux Build Service Account [Mon, 4 Sep 2017 06:04:19 +0000 (23:04 -0700)]
Merge "defconfig: msm: Disable DEVPORT config for sdm660"

7 years agoMerge "defconfig: msm: enable Minidump support on SDM660"
Linux Build Service Account [Mon, 4 Sep 2017 06:04:18 +0000 (23:04 -0700)]
Merge "defconfig: msm: enable Minidump support on SDM660"

7 years agoMerge "diag: Proper feature mask update to Glink supported peripherals"
Linux Build Service Account [Mon, 4 Sep 2017 06:04:17 +0000 (23:04 -0700)]
Merge "diag: Proper feature mask update to Glink supported peripherals"

7 years agoARM: dts: msm: Add truly panel support for SDM636
Rashi Bindra [Wed, 23 Aug 2017 06:36:43 +0000 (12:06 +0530)]
ARM: dts: msm: Add truly panel support for SDM636

Add the changes to support the 1080p truly panel as default panel
for SDM636.

Change-Id: Ia6d9b26fb7efb1d8ed362da42e3b6f22798f6f5e
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
7 years agoMerge "ath10k: Enable interrupt for pktlog CE11"
Linux Build Service Account [Sun, 3 Sep 2017 18:43:32 +0000 (11:43 -0700)]
Merge "ath10k: Enable interrupt for pktlog CE11"

7 years agoMerge "ath10k: Enable sta idle powersave"
Linux Build Service Account [Sun, 3 Sep 2017 18:43:31 +0000 (11:43 -0700)]
Merge "ath10k: Enable sta idle powersave"

7 years agoMerge "wil6210: move vring_idle_trsh definition to wil6210_priv"
Linux Build Service Account [Sun, 3 Sep 2017 11:06:42 +0000 (04:06 -0700)]
Merge "wil6210: move vring_idle_trsh definition to wil6210_priv"

7 years agoMerge "wil6210: store FW RF calibration result"
Linux Build Service Account [Sun, 3 Sep 2017 11:06:41 +0000 (04:06 -0700)]
Merge "wil6210: store FW RF calibration result"

7 years agospcom: avoid implicit casting from size_t to uint32 for file ops
Amir Samuelov [Thu, 31 Aug 2017 10:34:44 +0000 (13:34 +0300)]
spcom: avoid implicit casting from size_t to uint32 for file ops

spcom expose "pseudo file" char-device to user space.
The file operation callback function definition is using size_t for user
buffer size.
The spcom API uses uint32 as the spcom communication buffers are about
300 bytes, and the user space file operation read()/write() are limited to
PAGE_SIZE which is about 4KB.
Use explicit casting rather than implicit casting when fops callbacks
calls spcom internal functions.

CRs-Fixed: 2025174
Change-Id: I5d6bf71ab77f97ea350178bb8b3473fd4cefddfd
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
7 years agoMerge "msm: kgsl: Return supported page size based on available memory pools"
Linux Build Service Account [Sat, 2 Sep 2017 07:32:38 +0000 (00:32 -0700)]
Merge "msm: kgsl: Return supported page size based on available memory pools"

7 years agoMerge "ARM: dts: msm: Update HS PHY parameters for QRD SDM660/630"
Linux Build Service Account [Sat, 2 Sep 2017 07:32:37 +0000 (00:32 -0700)]
Merge "ARM: dts: msm: Update HS PHY parameters for QRD SDM660/630"

7 years agof2fs: Revert duplicate F2FS_MAX_SEGMENT
Dennis Cagle [Sat, 2 Sep 2017 00:39:05 +0000 (17:39 -0700)]
f2fs: Revert duplicate F2FS_MAX_SEGMENT

This reverts commit e4f60027026c ("f2fs: sanity check segment
count"). This change was already present and the new commit
added a redundant declaration for F2FS_MAX_SEGMENT.

Change-Id: Ie9a1d2b255fb20fcf2d4237e661430a39d8626ef
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
7 years agoMerge "soc: qcom: smp2p: spinlock_test: Initialize work item"
Linux Build Service Account [Fri, 1 Sep 2017 22:32:56 +0000 (15:32 -0700)]
Merge "soc: qcom: smp2p: spinlock_test: Initialize work item"

7 years agoMerge "power_supply: add POWER_SUPPLY_PROP_{COLD,HOT}_TEMP properties"
Linux Build Service Account [Fri, 1 Sep 2017 22:32:54 +0000 (15:32 -0700)]
Merge "power_supply: add POWER_SUPPLY_PROP_{COLD,HOT}_TEMP properties"

7 years agoMerge android-4.4@4b8fc9f (v4.4.82) into msm-4.4
Blagovest Kolenichev [Mon, 28 Aug 2017 19:06:08 +0000 (12:06 -0700)]
Merge android-4.4@4b8fc9f (v4.4.82) into msm-4.4

* refs/heads/tmp-4b8fc9f
  UPSTREAM: locking: avoid passing around 'thread_info' in mutex debugging code
  ANDROID: arm64: fix undeclared 'init_thread_info' error
  UPSTREAM: kdb: use task_cpu() instead of task_thread_info()->cpu
  Linux 4.4.82
  net: account for current skb length when deciding about UFO
  ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output
  mm/mempool: avoid KASAN marking mempool poison checks as use-after-free
  KVM: arm/arm64: Handle hva aging while destroying the vm
  sparc64: Prevent perf from running during super critical sections
  udp: consistently apply ufo or fragmentation
  revert "ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output"
  revert "net: account for current skb length when deciding about UFO"
  packet: fix tp_reserve race in packet_set_ring
  net: avoid skb_warn_bad_offload false positives on UFO
  tcp: fastopen: tcp_connect() must refresh the route
  net: sched: set xt_tgchk_param par.nft_compat as 0 in ipt_init_target
  bpf, s390: fix jit branch offset related to ldimm64
  net: fix keepalive code vs TCP_FASTOPEN_CONNECT
  tcp: avoid setting cwnd to invalid ssthresh after cwnd reduction states
  ANDROID: keychord: Fix for a memory leak in keychord.
  ANDROID: keychord: Fix races in keychord_write.
  Use %zu to print resid (size_t).
  ANDROID: keychord: Fix a slab out-of-bounds read.
  Linux 4.4.81
  workqueue: implicit ordered attribute should be overridable
  net: account for current skb length when deciding about UFO
  ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output
  mm: don't dereference struct page fields of invalid pages
  signal: protect SIGNAL_UNKILLABLE from unintentional clearing.
  lib/Kconfig.debug: fix frv build failure
  mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER
  ARM: 8632/1: ftrace: fix syscall name matching
  virtio_blk: fix panic in initialization error path
  drm/virtio: fix framebuffer sparse warning
  scsi: qla2xxx: Get mutex lock before checking optrom_state
  phy state machine: failsafe leave invalid RUNNING state
  x86/boot: Add missing declaration of string functions
  tg3: Fix race condition in tg3_get_stats64().
  net: phy: dp83867: fix irq generation
  sh_eth: R8A7740 supports packet shecksumming
  wext: handle NULL extra data in iwe_stream_add_point better
  sparc64: Measure receiver forward progress to avoid send mondo timeout
  xen-netback: correctly schedule rate-limited queues
  net: phy: Fix PHY unbind crash
  net: phy: Correctly process PHY_HALTED in phy_stop_machine()
  net/mlx5: Fix command bad flow on command entry allocation failure
  sctp: fix the check for _sctp_walk_params and _sctp_walk_errors
  sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}()
  dccp: fix a memleak for dccp_feat_init err process
  dccp: fix a memleak that dccp_ipv4 doesn't put reqsk properly
  dccp: fix a memleak that dccp_ipv6 doesn't put reqsk properly
  net: ethernet: nb8800: Handle all 4 RGMII modes identically
  ipv6: Don't increase IPSTATS_MIB_FRAGFAILS twice in ip6_fragment()
  packet: fix use-after-free in prb_retire_rx_blk_timer_expired()
  openvswitch: fix potential out of bound access in parse_ct
  mcs7780: Fix initialization when CONFIG_VMAP_STACK is enabled
  rtnetlink: allocate more memory for dev_set_mac_address()
  ipv4: initialize fib_trie prior to register_netdev_notifier call.
  ipv6: avoid overflow of offset in ip6_find_1stfragopt
  net: Zero terminate ifr_name in dev_ifname().
  ipv4: ipv6: initialize treq->txhash in cookie_v[46]_check()
  saa7164: fix double fetch PCIe access condition
  drm: rcar-du: fix backport bug
  f2fs: sanity check checkpoint segno and blkoff
  media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds
  mm, mprotect: flush TLB if potentially racing with a parallel reclaim leaving stale TLB entries
  iser-target: Avoid isert_conn->cm_id dereference in isert_login_recv_done
  iscsi-target: Fix delayed logout processing greater than SECONDS_FOR_LOGOUT_COMP
  iscsi-target: Fix initial login PDU asynchronous socket close OOPs
  iscsi-target: Fix early sk_data_ready LOGIN_FLAGS_READY race
  iscsi-target: Always wait for kthread_should_stop() before kthread exit
  target: Avoid mappedlun symlink creation during lun shutdown
  media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS ioctl
  ARM: dts: armada-38x: Fix irq type for pca955
  ext4: fix overflow caused by missing cast in ext4_resize_fs()
  ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize
  mm/page_alloc: Remove kernel address exposure in free_reserved_area()
  KVM: async_pf: make rcu irq exit if not triggered from idle task
  ASoC: do not close shared backend dailink
  ALSA: hda - Fix speaker output from VAIO VPCL14M1R
  workqueue: restore WQ_UNBOUND/max_active==1 to be ordered
  libata: array underflow in ata_find_dev()
  ANDROID: binder: don't queue async transactions to thread.
  ANDROID: binder: don't enqueue death notifications to thread todo.
  ANDROID: binder: call poll_wait() unconditionally.
  android: configs: move quota-related configs to recommended
  BACKPORT: arm64: split thread_info from task stack
  UPSTREAM: arm64: assembler: introduce ldr_this_cpu
  UPSTREAM: arm64: make cpu number a percpu variable
  UPSTREAM: arm64: smp: prepare for smp_processor_id() rework
  BACKPORT: arm64: move sp_el0 and tpidr_el1 into cpu_suspend_ctx
  UPSTREAM: arm64: prep stack walkers for THREAD_INFO_IN_TASK
  UPSTREAM: arm64: unexport walk_stackframe
  UPSTREAM: arm64: traps: simplify die() and __die()
  UPSTREAM: arm64: factor out current_stack_pointer
  BACKPORT: arm64: asm-offsets: remove unused definitions
  UPSTREAM: arm64: thread_info remove stale items
  UPSTREAM: thread_info: include <current.h> for THREAD_INFO_IN_TASK
  UPSTREAM: thread_info: factor out restart_block
  UPSTREAM: kthread: Pin the stack via try_get_task_stack()/put_task_stack() in to_live_kthread() function
  UPSTREAM: sched/core: Add try_get_task_stack() and put_task_stack()
  UPSTREAM: sched/core: Allow putting thread_info into task_struct
  UPSTREAM: printk: when dumping regs, show the stack, not thread_info
  UPSTREAM: fix up initial thread stack pointer vs thread_info confusion
  UPSTREAM: Clarify naming of thread info/stack allocators
  ANDROID: sdcardfs: override credential for ioctl to lower fs

Conflicts:
android/configs/android-base.cfg
arch/arm64/Kconfig
arch/arm64/include/asm/suspend.h
arch/arm64/kernel/head.S
arch/arm64/kernel/smp.c
arch/arm64/kernel/suspend.c
arch/arm64/kernel/traps.c
arch/arm64/mm/proc.S
kernel/fork.c
sound/soc/soc-pcm.c

Change-Id: I273e216c94899a838bbd208391c6cbe20b2bf683
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
7 years agosoc: qcom: smp2p: spinlock_test: Initialize work item
Chris Lew [Mon, 21 Aug 2017 22:33:40 +0000 (15:33 -0700)]
soc: qcom: smp2p: spinlock_test: Initialize work item

Initialize the has_locked member before running SSR
spinlock test to ensure consistent results.

CRs-Fixed: 2091946
Change-Id: Ifad37541a94668b496aa9204dc80920b9a7ff244
Signed-off-by: Chris Lew <clew@codeaurora.org>
7 years agomsm: kgsl: Return supported page size based on available memory pools
Deepak Kumar [Wed, 21 Jun 2017 09:46:43 +0000 (15:16 +0530)]
msm: kgsl: Return supported page size based on available memory pools

In case memory pools are supported return the page size as
supported only if corresponding memory pool is available.
This will increase the usage of memory pool and will reduce the
overall allocation time.

Change-Id: Iea84a4259b38fe9cb546419dfcbaf0a9666e7ca9
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
7 years agoMerge "f2fs: sanity check segment count"
Linux Build Service Account [Fri, 1 Sep 2017 10:10:28 +0000 (03:10 -0700)]
Merge "f2fs: sanity check segment count"

7 years agoMerge "ARM: dts: msm: fix size-cells for smb138x"
Linux Build Service Account [Fri, 1 Sep 2017 10:10:26 +0000 (03:10 -0700)]
Merge "ARM: dts: msm: fix size-cells for smb138x"

7 years agoMerge "ARM: dts: msm: update the battery profile for ascent 3450mAh battery"
Linux Build Service Account [Fri, 1 Sep 2017 10:10:26 +0000 (03:10 -0700)]
Merge "ARM: dts: msm: update the battery profile for ascent 3450mAh battery"

7 years agosoc: qcom: dump current task stack and task_struct for minidump
Lingutla Chandrasekhar [Sat, 5 Aug 2017 08:56:56 +0000 (14:26 +0530)]
soc: qcom: dump current task stack and task_struct for minidump

Register the current stack and task_struct of all cpus to
the minidump table on panic.

Change-Id: I6906721f8c734dbf8142dc49e80dc730530f028c
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
7 years agoARM: dts: msm: enable camera on SDM636 MTP
Vijay kumar Tumati [Tue, 29 Aug 2017 16:24:30 +0000 (21:54 +0530)]
ARM: dts: msm: enable camera on SDM636 MTP

Use board specific configuration to enable
voltage supply to camera actuators

Change-Id: I25fc1f0dc75a3acecd9b751029ed28b6db6ac97a
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
7 years agoMerge branch 'dev/msm-4.4-8996au' into msm-4.4
Zhiqiang Tu [Thu, 31 Aug 2017 06:36:30 +0000 (14:36 +0800)]
Merge branch 'dev/msm-4.4-8996au' into msm-4.4

Change-Id: I9736089c23ce5dca4e4341406671269f19b7515f
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
7 years agomsm: ais: Register and listen to bridge-chip interrupts
Terence Ho [Wed, 5 Jul 2017 18:09:12 +0000 (14:09 -0400)]
msm: ais: Register and listen to bridge-chip interrupts

Changes that help facilitate sending the FPD-III to CSI bridge chip's
input signal status to the user-mode components.

Change-Id: I5e39c75b61f05edc8a1dc77677b9cad85fc563eb
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
7 years agopower: qpnp-fg-gen3: apply SOC linearization based on user input
Subbaraman Narayanamurthy [Wed, 26 Jul 2017 03:01:25 +0000 (20:01 -0700)]
power: qpnp-fg-gen3: apply SOC linearization based on user input

Currently, SOC linearization is done when SOC masking feature is
enabled to spread out the drop in SOC across a wider range and
for better user experience. Make this configurable through a DT
property "qcom,linearize-soc" so that the user can enable it as
and when required.

Change-Id: Ic9f5f04f4e872d7804152c17206a8b204de3a9c1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agopower: qpnp-smb2: smb138x: change the vbus/vconn regulator_ops to static
Subbaraman Narayanamurthy [Wed, 23 Aug 2017 21:34:41 +0000 (14:34 -0700)]
power: qpnp-smb2: smb138x: change the vbus/vconn regulator_ops to static

Change the regulator_ops of vbus/vconn regulators in smb2 and
smb138x drivers to static. While at it, change the interrupt
handler smb138x_handle_slave_chg_state_change to static.

Change-Id: Iacd6b84adc6db1819b4a337aac9f6ccc52989dcd
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agopower: qpnp-fg-gen3: support JEITA thresholds configurable runtime
Subbaraman Narayanamurthy [Sat, 12 Aug 2017 02:24:24 +0000 (19:24 -0700)]
power: qpnp-fg-gen3: support JEITA thresholds configurable runtime

Currently, JEITA thresholds are configured through the device
tree properties. Allow them to be configured runtime through
power supply properties.

Change-Id: Ie93c7e447a4f8ac793e6e324f7a0269dbc14c7e5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agopower_supply: add POWER_SUPPLY_PROP_{COLD,HOT}_TEMP properties
Subbaraman Narayanamurthy [Sat, 12 Aug 2017 01:37:26 +0000 (18:37 -0700)]
power_supply: add POWER_SUPPLY_PROP_{COLD,HOT}_TEMP properties

Add POWER_SUPPLY_PROP_COLD_TEMP and POWER_SUPPLY_PROP_HOT_TEMP
properties to represent Cold and Hot JEITA thresholds of the
battery.

Change-Id: Id5e16a4f7b20bb05d997277d20db05fc08db9f33
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agopower: qpnp-fg-gen3: make CHARGE_FULL property writable by user
Subbaraman Narayanamurthy [Sat, 12 Aug 2017 01:27:08 +0000 (18:27 -0700)]
power: qpnp-fg-gen3: make CHARGE_FULL property writable by user

CHARGE_FULL property indicates the learnt capacity of the battery
from the last capacity learning cycle. However, in some rare
cases, if the learnt capacity is having an unexpected value, it
requires a reset to a good value which is not possible for an
user who cannot reinsert a battery or do an explicit write to FG
SRAM. Allowing CHARGE_FULL to be writable helps this.

Change-Id: I05aa8392f103685f8fc1ba5a3780122150be0ee6
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: fix size-cells for smb138x
Subbaraman Narayanamurthy [Fri, 18 Aug 2017 01:04:01 +0000 (18:04 -0700)]
ARM: dts: msm: fix size-cells for smb138x

Fix the bad cell count warning coming from smb138x device by
setting size-cells correctly.

Change-Id: I050471d676c8a11737d9034bd25d3e9229591752
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: update the battery profile for ascent 3450mAh battery
Subbaraman Narayanamurthy [Fri, 18 Aug 2017 00:31:18 +0000 (17:31 -0700)]
ARM: dts: msm: update the battery profile for ascent 3450mAh battery

Update the battery profile for ascent 3450mAh battery based on
the latest characterization data.

Change-Id: I44e08b66d1f4dd424efc1595e3b4f3bbb2176a48
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agosoc: qcom: initialize glink link state
Vidyakumar Athota [Fri, 25 Aug 2017 21:32:11 +0000 (14:32 -0700)]
soc: qcom: initialize glink link state

Initialize glink link state to GLINK_LINK_STATE_DOWN to
return error if userspace sends glink command packet
before glink link is up.

Change-Id: I79b5e4eb5a743dd0b118ba1b28523bfea24044d7
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
7 years agoath10k: Enable interrupt for pktlog CE11
Govind Singh [Thu, 31 Aug 2017 07:08:14 +0000 (12:38 +0530)]
ath10k: Enable interrupt for pktlog CE11

WCN3990 uses CE11 for pktlog. Enable CE interrupts
for pktlog pipe for WCN3990 target.

Change-Id: I5af4e47bc31fe0d94cacae0305a90f698e2d5a51
Signed-off-by: Govind Singh <govinds@codeaurora.org>
7 years agoMerge "msm: vidc: Avoid setting internal scratch buffers if not required"
Linux Build Service Account [Thu, 31 Aug 2017 12:08:57 +0000 (05:08 -0700)]
Merge "msm: vidc: Avoid setting internal scratch buffers if not required"

7 years agoMerge "msm: vidc: use %pK instead of %p which respects kptr_restrict sysctl"
Linux Build Service Account [Thu, 31 Aug 2017 12:08:56 +0000 (05:08 -0700)]
Merge "msm: vidc: use %pK instead of %p which respects kptr_restrict sysctl"

7 years agoMerge "defconfig: Enable few configs for SDM660"
Linux Build Service Account [Thu, 31 Aug 2017 12:08:55 +0000 (05:08 -0700)]
Merge "defconfig: Enable few configs for SDM660"

7 years agoath10k: Enable sta idle powersave
Govind Singh [Wed, 30 Aug 2017 05:27:42 +0000 (10:57 +0530)]
ath10k: Enable sta idle powersave

Enable STA idle powersave for WCN3990.

Change-Id: I3dea0727464eda255fee50d21eee84919ab19205
Signed-off-by: Govind Singh <govinds@codeaurora.org>
7 years agodefconfig: msm: Disable DEVPORT config for sdm660
Mohammed Khajapasha [Thu, 31 Aug 2017 09:33:41 +0000 (15:03 +0530)]
defconfig: msm: Disable DEVPORT config for sdm660

Disable CONFIG_DEVPORT config for sdm660.
As selinux policy requires this node to be not
accessible to userspace.

Change-Id: I163b5bc0ad1d97590f20ffc2392c36e03be3cbf2
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
7 years agoARM: dts: msm: Update HS PHY parameters for QRD SDM660/630
Liangliang Lu [Thu, 31 Aug 2017 09:08:53 +0000 (17:08 +0800)]
ARM: dts: msm: Update HS PHY parameters for QRD SDM660/630

Update HS Phy parameters which has better eye diagram.

Change-Id: I2774dc4c5512ba156dacb23e454d3f65691d5a06
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
7 years agodiag: Proper feature mask update to Glink supported peripherals
Manoj Prabhu B [Thu, 24 Aug 2017 04:26:03 +0000 (09:56 +0530)]
diag: Proper feature mask update to Glink supported peripherals

The patch re-enables updating APPS feature mask to GLINK
supported peripheral after peripheral's feature mask has been
processed and the proper transport has been updated. The patch
also corrects code indentation in buffers initialization.

CRs-Fixed: 2092758
Change-Id: Iaff5346dae833d6dbb576ca3a4a9dbdcf789a3c4
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
7 years agoMerge "ARM: dts: msm: update mincpu BW vote when Big CPU runs at Max freq"
Linux Build Service Account [Thu, 31 Aug 2017 02:30:06 +0000 (19:30 -0700)]
Merge "ARM: dts: msm: update mincpu BW vote when Big CPU runs at Max freq"