OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "lpm-levels: Return from idle enter for negative mode"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:39 +0000 (22:43 -0800)]
Merge "lpm-levels: Return from idle enter for negative mode"

7 years agoMerge "clk: qcom: Update the source clock for 24MHz MCLK"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:38 +0000 (22:43 -0800)]
Merge "clk: qcom: Update the source clock for 24MHz MCLK"

7 years agoMerge "msm: camera: Validate size param before allocating memory"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:37 +0000 (22:43 -0800)]
Merge "msm: camera: Validate size param before allocating memory"

7 years agoMerge "msm:cci: Add protection for race condition in cci queue access"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:36 +0000 (22:43 -0800)]
Merge "msm:cci: Add protection for race condition in cci queue access"

7 years agoMerge "msm: camera: add check to ensure user task wont hog CPU"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:36 +0000 (22:43 -0800)]
Merge "msm: camera: add check to ensure user task wont hog CPU"

7 years agoMerge "msm: camera: isp: enable/disable hvx only if the state changed"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:35 +0000 (22:43 -0800)]
Merge "msm: camera: isp: enable/disable hvx only if the state changed"

7 years agoMerge "msm: isp: fix for potentitial array out of bound access"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:34 +0000 (22:43 -0800)]
Merge "msm: isp: fix for potentitial array out of bound access"

7 years agoMerge "msm: isp: Fix dummy print which may leak address"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:33 +0000 (22:43 -0800)]
Merge "msm: isp: Fix dummy print which may leak address"

7 years agoMerge "ARM: arch_timer: force re-selection of the best clocksource"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:31 +0000 (22:43 -0800)]
Merge "ARM: arch_timer: force re-selection of the best clocksource"

7 years agoMerge "ARM: dts: msm: update device nodes for SDM658"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:31 +0000 (22:43 -0800)]
Merge "ARM: dts: msm: update device nodes for SDM658"

7 years agoMerge "ARM: dts: msm: lpass cti removed on sdm660"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:30 +0000 (22:43 -0800)]
Merge "ARM: dts: msm: lpass cti removed on sdm660"

7 years agoMerge "soc: qcom: glink: Move channel to dummy xprt with lock"
Linux Build Service Account [Tue, 7 Mar 2017 06:43:30 +0000 (22:43 -0800)]
Merge "soc: qcom: glink: Move channel to dummy xprt with lock"

7 years agoARM: arch_timer: force re-selection of the best clocksource
Se Wang (Patrick) Oh [Fri, 12 Jun 2015 01:10:07 +0000 (18:10 -0700)]
ARM: arch_timer: force re-selection of the best clocksource

As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So make it possible to select
the best clocksource right after arm arch timer initialization, so that
jiffies can be increased by multiple counts since then.

Change-Id: Id8c4e3ce9b9e44061fef7ad7e678ca1c27d84bb1
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
7 years agoclocksource: add API to force re-selection of the best clocksource
Se Wang (Patrick) Oh [Fri, 29 May 2015 21:57:05 +0000 (14:57 -0700)]
clocksource: add API to force re-selection of the best clocksource

As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So add API to force re-
selection of the best clocksource among registered clocksources so
that the best clocksource can be selected whenever it is available.

Change-Id: I481de3cdf1df8f0e35ed10aee7ab3882bf7a35b3
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
7 years agoMerge "ARM: dts: msm: add device nodes to support DP on sdm630"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:47 +0000 (04:28 -0800)]
Merge "ARM: dts: msm: add device nodes to support DP on sdm630"

7 years agoMerge "ARM: dts: msm: Add rpm stats for TZ and SPSS for MSM8998"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:46 +0000 (04:28 -0800)]
Merge "ARM: dts: msm: Add rpm stats for TZ and SPSS for MSM8998"

7 years agoMerge "leds: qpnp-wled: add support to control PSM dynamically"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:45 +0000 (04:28 -0800)]
Merge "leds: qpnp-wled: add support to control PSM dynamically"

7 years agoMerge "ARM: dts: msm: change CHG_OK pin to active high for QRD SDM660"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:44 +0000 (04:28 -0800)]
Merge "ARM: dts: msm: change CHG_OK pin to active high for QRD SDM660"

7 years agoMerge "msm: mdss: trigger BTA during active region of display"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:43 +0000 (04:28 -0800)]
Merge "msm: mdss: trigger BTA during active region of display"

7 years agoMerge "msm: mhi_rmnet: Keep wake when processing transfer"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:40 +0000 (04:28 -0800)]
Merge "msm: mhi_rmnet: Keep wake when processing transfer"

7 years agoMerge "msm: mhi_rmnet: Add support for platform devices"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:40 +0000 (04:28 -0800)]
Merge "msm: mhi_rmnet: Add support for platform devices"

7 years agoMerge "ARM: dts: msm: Change BLSP assignment for APQ8098-mediabox"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:39 +0000 (04:28 -0800)]
Merge "ARM: dts: msm: Change BLSP assignment for APQ8098-mediabox"

7 years agoMerge "ARM: dts: msm: Add cpp micro reset flag for SDM660"
Linux Build Service Account [Mon, 6 Mar 2017 12:28:38 +0000 (04:28 -0800)]
Merge "ARM: dts: msm: Add cpp micro reset flag for SDM660"

7 years agoARM: dts: msm: update device nodes for SDM658
Neeraj Upadhyay [Wed, 1 Mar 2017 11:02:53 +0000 (16:32 +0530)]
ARM: dts: msm: update device nodes for SDM658

Core 6 (MPIDR:0x102) and core 7 (MPIDR:0x103) are not
present in SDM658, SDA658 variants; so make relevant
updates to disable the cpu and other device nodes for
them.

Change-Id: I4633a3c36d367cc4ed5bbca525087d3d1cb57421
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agolpm-levels: Return from idle enter for negative mode
Maulik Shah [Mon, 6 Mar 2017 05:34:39 +0000 (11:04 +0530)]
lpm-levels: Return from idle enter for negative mode

Return immediately from idle enter if there is no mode
selected. Log idle exit as failure to enter LPM in the
events that cpu needs to be rescheduled for another task.

Change-Id: I25a444682a8f8c9060f426c03e2f183f86d2fa3a
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
7 years agoARM: dts: msm: lpass cti removed on sdm660
Saranya Chidura [Mon, 6 Mar 2017 05:38:29 +0000 (11:08 +0530)]
ARM: dts: msm: lpass cti removed on sdm660

cti-lpass0 and cti-lpass1 are not accessible as few of clocks/regulators
are not enabled to trigger the LPASS CTI.This cause device crash on
triggering the LPASS CTI on sdm660.Thus lpass-cti's are removed as
they are not planned to support from HLOS.

Change-Id: I76f81086919ea38b6966106f8ee6141baee183d6
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
7 years agoclk: qcom: Update the source clock for 24MHz MCLK
Taniya Das [Mon, 6 Mar 2017 10:43:59 +0000 (16:13 +0530)]
clk: qcom: Update the source clock for 24MHz MCLK

The source clock of MMPLL10 has better jitter specs for MCLK than GPLL0_DIV
clock, so update the same to obtain 24MHz clock.

Change-Id: I57a77a83a5028c85d82fda4af53732f0bfb263e7
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agosoc: qcom: glink: Move channel to dummy xprt with lock
Dhoat Harpal [Wed, 15 Feb 2017 14:13:27 +0000 (19:43 +0530)]
soc: qcom: glink: Move channel to dummy xprt with lock

In core_channel_cleanup function channel is moved to dummy xprt
without taking channel lock. This leads to race condition where
transport poniter is pointing to dummy but channel still belong
to old transport.

Channel is moved to dummy with channel lock.

CRs-Fixed: 2005731
Change-Id: I91903140c1bfa29d909847f318d1339bb717fffc
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
7 years agoMerge "mmc: card: block: Add support for completing cmdq requests with error"
Linux Build Service Account [Mon, 6 Mar 2017 04:08:26 +0000 (20:08 -0800)]
Merge "mmc: card: block: Add support for completing cmdq requests with error"

7 years agoMerge "ath10k: define structure for the copy engine misc regs"
Linux Build Service Account [Mon, 6 Mar 2017 04:08:24 +0000 (20:08 -0800)]
Merge "ath10k: define structure for the copy engine misc regs"

7 years agoMerge "ath10k: skip cal configuration for WCN3990"
Linux Build Service Account [Mon, 6 Mar 2017 04:08:23 +0000 (20:08 -0800)]
Merge "ath10k: skip cal configuration for WCN3990"

7 years agoMerge "USB: composite: Check return value before composite_setup_complete()"
Linux Build Service Account [Mon, 6 Mar 2017 04:08:22 +0000 (20:08 -0800)]
Merge "USB: composite: Check return value before composite_setup_complete()"

7 years agoMerge "leds: qpnp-wled: improve OVP fault interrupt handling"
Linux Build Service Account [Mon, 6 Mar 2017 04:08:20 +0000 (20:08 -0800)]
Merge "leds: qpnp-wled: improve OVP fault interrupt handling"

7 years agoMerge "ARM: dts: msm: Add improve touch device node into sdm630 QRD"
Linux Build Service Account [Mon, 6 Mar 2017 04:08:20 +0000 (20:08 -0800)]
Merge "ARM: dts: msm: Add improve touch device node into sdm630 QRD"

7 years agoMerge "ARM: dts: msm: Update SDCC PM QOS values for SDM660"
Linux Build Service Account [Mon, 6 Mar 2017 04:08:19 +0000 (20:08 -0800)]
Merge "ARM: dts: msm: Update SDCC PM QOS values for SDM660"

7 years agoARM: dts: msm: change CHG_OK pin to active high for QRD SDM660
Yingwei Zhao [Sat, 4 Mar 2017 05:15:58 +0000 (13:15 +0800)]
ARM: dts: msm: change CHG_OK pin to active high for QRD SDM660

PM660 controls SMB1351 by STAT_CHG pin when the parallel is enabled.
the polarity of SMB1351 should be active high, so add a property
in DTS to the polarity.

CRs-Fixed: 2015025
Change-Id: Idca4149c587e9588fce8ba757fa0b7bf0ca5614d
Signed-off-by: Yingwei Zhao <cyizhao@codeaurora.org>
7 years agoMerge "msm: mdss: Fix AVR flush for split control path"
Linux Build Service Account [Sun, 5 Mar 2017 20:38:08 +0000 (12:38 -0800)]
Merge "msm: mdss: Fix AVR flush for split control path"

7 years agoMerge "msm: mdss: flush timing after splash done for video panel"
Linux Build Service Account [Sun, 5 Mar 2017 20:38:07 +0000 (12:38 -0800)]
Merge "msm: mdss: flush timing after splash done for video panel"

7 years agoMerge "msm: mdss: add support for DP PLL driver on sdm630"
Linux Build Service Account [Sun, 5 Mar 2017 20:38:06 +0000 (12:38 -0800)]
Merge "msm: mdss: add support for DP PLL driver on sdm630"

7 years agoMerge "USB: gadget: midi: Replace snd_card_free with snd_card_free_closed"
Linux Build Service Account [Sun, 5 Mar 2017 07:34:14 +0000 (23:34 -0800)]
Merge "USB: gadget: midi: Replace snd_card_free with snd_card_free_closed"

7 years agoMerge "msm: mdss: validate qseed3 params"
Linux Build Service Account [Sat, 4 Mar 2017 18:12:55 +0000 (10:12 -0800)]
Merge "msm: mdss: validate qseed3 params"

7 years agoMerge "mmc: core: Retry claim host in mmc_sd_detect"
Linux Build Service Account [Sat, 4 Mar 2017 18:12:54 +0000 (10:12 -0800)]
Merge "mmc: core: Retry claim host in mmc_sd_detect"

7 years agoMerge "defconfig: enable VT driver for mediabox"
Linux Build Service Account [Sat, 4 Mar 2017 10:56:20 +0000 (02:56 -0800)]
Merge "defconfig: enable VT driver for mediabox"

7 years agoMerge "ASoC: codecs: add cable connect/disconnect acknowledgment"
Linux Build Service Account [Sat, 4 Mar 2017 10:56:19 +0000 (02:56 -0800)]
Merge "ASoC: codecs: add cable connect/disconnect acknowledgment"

7 years agoMerge "msm: pcie: add the checking of userspace input length"
Linux Build Service Account [Sat, 4 Mar 2017 10:56:18 +0000 (02:56 -0800)]
Merge "msm: pcie: add the checking of userspace input length"

7 years agoMerge "msm: camera: Lack of copy_from_user in camera driver."
Linux Build Service Account [Sat, 4 Mar 2017 10:56:17 +0000 (02:56 -0800)]
Merge "msm: camera: Lack of copy_from_user in camera driver."

7 years agommc: core: Retry claim host in mmc_sd_detect
Veerabhadrarao Badiganti [Thu, 9 Feb 2017 14:53:17 +0000 (20:23 +0530)]
mmc: core: Retry claim host in mmc_sd_detect

Use mmc_try_claim_host with a timeout instead of mmc_claim_host in
mmc_sd_detect. This is to ensure that mmc rescan work item is doesn't
get blocked on claim_host for longer period.

In the pm_suspend path, we cancel the mmc_rescan work item.
If this work item is already scheduled, suspend would be blocked till
mmc_rescan gets finished. In case, mmc_rescan is blocked on claim_host
lock, pm_suspend could get blocked for longer period.  This can result
in momentary UI freeze since pm_suspend is blocked for longer duration.
This change is to prevent this scenario.

Change-Id: Ib93bae6745a153bad3579ae42f46c3c3a7c1b95a
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
7 years agoMerge "usb: dwc3: Replace sscanf with kstrtou8_from_user"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:29 +0000 (17:39 -0800)]
Merge "usb: dwc3: Replace sscanf with kstrtou8_from_user"

7 years agoMerge "clk: qcom: Use the saved current frequency for enable_safe_config"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:28 +0000 (17:39 -0800)]
Merge "clk: qcom: Use the saved current frequency for enable_safe_config"

7 years agoMerge "power: fg-util: Fix the address mask for secure_write check"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:27 +0000 (17:39 -0800)]
Merge "power: fg-util: Fix the address mask for secure_write check"

7 years agoMerge "qcom: smb-lib: fix adapter allowance for PM660"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:26 +0000 (17:39 -0800)]
Merge "qcom: smb-lib: fix adapter allowance for PM660"

7 years agoMerge "msm: ipa3: fix DMA memory allocation success check"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:26 +0000 (17:39 -0800)]
Merge "msm: ipa3: fix DMA memory allocation success check"

7 years agoMerge "msm: ipa: Remove usage of stack memory"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:25 +0000 (17:39 -0800)]
Merge "msm: ipa: Remove usage of stack memory"

7 years agoMerge "alarmtimer: Program mpm wakeup time in milliseconds"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:23 +0000 (17:39 -0800)]
Merge "alarmtimer: Program mpm wakeup time in milliseconds"

7 years agoMerge "msm: mhi_uci: Add support for platform devices"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:22 +0000 (17:39 -0800)]
Merge "msm: mhi_uci: Add support for platform devices"

7 years agoMerge "ARM: dts: msm: Update SDCC bus voting for SDM660"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:22 +0000 (17:39 -0800)]
Merge "ARM: dts: msm: Update SDCC bus voting for SDM660"

7 years agoMerge "ARM: dts: msm: add sink capabilities to PM660 PD PHY"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:21 +0000 (17:39 -0800)]
Merge "ARM: dts: msm: add sink capabilities to PM660 PD PHY"

7 years agoMerge "ath10k: Remove bus structures from ath10k struct"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:19 +0000 (17:39 -0800)]
Merge "ath10k: Remove bus structures from ath10k struct"

7 years agoMerge "Merge tag 'lsk-v4.4-16.12-android' into branch 'msm-4.4'"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:19 +0000 (17:39 -0800)]
Merge "Merge tag 'lsk-v4.4-16.12-android' into branch 'msm-4.4'"

7 years agoMerge "ARM: dts: msm: Add Nfc device to sdm630"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:18 +0000 (17:39 -0800)]
Merge "ARM: dts: msm: Add Nfc device to sdm630"

7 years agoMerge "USB: f_mtp: Perform vfs_write under mutex protection"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:17 +0000 (17:39 -0800)]
Merge "USB: f_mtp: Perform vfs_write under mutex protection"

7 years agoMerge "sched/rt: Fix PI handling vs. sched_setscheduler()"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:16 +0000 (17:39 -0800)]
Merge "sched/rt: Fix PI handling vs. sched_setscheduler()"

7 years agoMerge "msm: kgsl: Change GPU RAC hardware clockgating on SDM660"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:15 +0000 (17:39 -0800)]
Merge "msm: kgsl: Change GPU RAC hardware clockgating on SDM660"

7 years agoMerge "defconfig: Enable REGMAP_ALLOW_WRITE_DEBUGFS for sdm660"
Linux Build Service Account [Sat, 4 Mar 2017 01:39:14 +0000 (17:39 -0800)]
Merge "defconfig: Enable REGMAP_ALLOW_WRITE_DEBUGFS for sdm660"

7 years agomsm: mhi_rmnet: Keep wake when processing transfer
Sujeev Dias [Wed, 12 Oct 2016 00:58:49 +0000 (17:58 -0700)]
msm: mhi_rmnet: Keep wake when processing transfer

Disable MHI from going into low power mode when
processing inbound transfers.

CRs-Fixed: 1081654
Change-Id: If8af0805501901a15981bbc6db0c92d2e040eb78
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agomsm: mhi_rmnet: Add support for platform devices
Sujeev Dias [Thu, 9 Jun 2016 20:32:02 +0000 (13:32 -0700)]
msm: mhi_rmnet: Add support for platform devices

In order to support multiple instances of mhi_rmnet
net devices re-architect how the driver initialize
by adding support for platform device.

CRs-Fixed: 1027069
Change-Id: I038f9dcb2e9bffb2637d82fb30794f6e6d4c578c
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agommc: card: block: Add support for completing cmdq requests with error
Veerabhadrarao Badiganti [Tue, 21 Feb 2017 09:36:23 +0000 (15:06 +0530)]
mmc: card: block: Add support for completing cmdq requests with error

Add support for completing failed cmdq requests with error.

If any cmdq request is failed, we enter into error recovery path and
re-queue the same request. But in some cases (e.g. requests failed due
to invalid crypto configuration) same request shouldn't be re-queued
but should complete the request with error so that the a new requested
would be issued.

In mmc_blk_cmdq_complete_rq(), for a request if error information is
present and flag which indicates to skip error handling is set
then complete that request with error info.

Change-Id: I9c4a446bb27b4d82a0847d0bfb4481b314df479c
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
7 years agoARM: dts: msm: Add rpm stats for TZ and SPSS for MSM8998
Mahesh Sivasubramanian [Wed, 15 Feb 2017 21:55:38 +0000 (14:55 -0700)]
ARM: dts: msm: Add rpm stats for TZ and SPSS for MSM8998

Add rpm master stats votes for TZ and SPSS to track votes from these
masters.

Change-Id: I98781d33f4e8424660898d5635624b8b891237f8
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
7 years agoUSB: composite: Check return value before composite_setup_complete()
Vijayavardhan Vennapusa [Thu, 2 Mar 2017 10:37:13 +0000 (16:07 +0530)]
USB: composite: Check return value before composite_setup_complete()

Currently driver is calling composite_setup_complete() when request
queuing to control endpoint fails. During disconnect or composition switch,
ep_queue() fails with -ESHUTDOWN return value. In this case also, driver is
calling composite_setup_complete(), which leads to invalid pointer
dereference. Fix it by not calling composite_setup_complete() in case of
return value of -ESHUTDOWN as anyhow composite_unbind() will take care of
clearing pending flags before freeing request buffers.

Change-Id: I87ea6ecb1e925c6b36dede59486e49ba3a4e90c7
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agomsm: camera: Lack of copy_from_user in camera driver.
Manish Poddar [Fri, 9 Dec 2016 06:24:37 +0000 (11:54 +0530)]
msm: camera: Lack of copy_from_user in camera driver.

In msm_copy_camera_private_ioctl_args function in
msm_buf_mgr camera driver arg is pointing to an address
in userspace and not kernel.
Done changes to use copy_from_user to fix it.

Change-Id: Ia9b747dcf86b448656a5d3676455ccb4eccd4e5a
Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
7 years agoath10k: skip cal configuration for WCN3990
Govind Singh [Sat, 11 Feb 2017 11:14:21 +0000 (16:44 +0530)]
ath10k: skip cal configuration for WCN3990

Calibration data configuration is done from user space
for WCN3990 target. Skip cal configuration from debug
routine.

Change-Id: I349575a04029e80ef4efc2ac486f5716561c37d8
Signed-off-by: Govind Singh <govinds@codeaurora.org>
7 years agommc: cmdq_hci: ice: Handle ICE HCI errors in cmdq mode
Veerabhadrarao Badiganti [Sun, 11 Dec 2016 15:08:20 +0000 (20:38 +0530)]
mmc: cmdq_hci: ice: Handle ICE HCI errors in cmdq mode

With ICE HCI addition in SDHC, couple of errors conditions
got introduced. These errors would be detected by ICE HCI and
triggers interrupt.

The two errors are:
1. Generic Crypto Error (GCE): This error is detected during the
transfer. Need to reset SDHC to recover.
2. Invalid Crypto Configuration Error (ICCE): The HW detects it
before the beginning of the transfer and terminates the transfer
before actual execution started.

Driver has to handle these error for recovering ICE-HCI from
these error conditions. This patch is for handling there errors
in cmdq mode.

Change-Id: Ia10075aca429cbc49ccccdae5c0499c7a176b8a2
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
7 years agodefconfig: enable VT driver for mediabox
Manoj Kumar AVM [Fri, 3 Mar 2017 03:56:39 +0000 (19:56 -0800)]
defconfig: enable VT driver for mediabox

Enable CONFIG_VT in msmcortex mediabox defonfig. This is needed for
Weston compositor functionality.

CRs-Fixed: 2002381
Change-Id: Id7d57d4b1862252af40fe1d8b296a4e5a8ee0fba
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
7 years agoARM: dts: msm: Add improve touch device node into sdm630 QRD
zhaoyuan [Wed, 1 Mar 2017 06:16:29 +0000 (14:16 +0800)]
ARM: dts: msm: Add improve touch device node into sdm630 QRD

Improve touch will be used on sdm630 QRD so add support for it.

Change-Id: I4e7868f81dbd86a425375e98f4fea4a40f53887f
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
7 years agoleds: qpnp-wled: add support to control PSM dynamically
Subbaraman Narayanamurthy [Fri, 17 Feb 2017 23:48:47 +0000 (15:48 -0800)]
leds: qpnp-wled: add support to control PSM dynamically

As per the hardware recommendation, keep PSM disabled 10 ms after
WLED module is enabled. Enable PSM back when the module is
disabled. This is to ensure that PFM mode is operational without
the precedence from PSM. Make this configurable through a device
tree property.

Change-Id: Ic6be160a88be40e94a4a0798646b8aa3f169ab49
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoleds: qpnp-wled: improve OVP fault interrupt handling
Subbaraman Narayanamurthy [Fri, 17 Feb 2017 23:14:06 +0000 (15:14 -0800)]
leds: qpnp-wled: improve OVP fault interrupt handling

If there is an OVP event happened in the bootloader and the
interrupt is not handled before, then as soon as the WLED
module is enabled, fault interrupt can fire. This is seen
sometimes during bootup. This is harmless as such and cannot
be stopped completely. However, it would be good to keep the
OVP fault interrupt disabled at the startup. When WLED module
is enabled again, it will get enabled anyways after ~10 ms.

While at it, print the error message in OVP fault interrupt
handler only when the fault status is set.

Change-Id: I0759c87137a52a8872b37d126e71c13f76d10e05
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: change WLED interrupt configuration for pm660l
Subbaraman Narayanamurthy [Fri, 3 Mar 2017 01:48:56 +0000 (17:48 -0800)]
ARM: dts: msm: change WLED interrupt configuration for pm660l

Currently, WLED over-voltage and short-circuit fault interrupts
are configured for both rising and falling edge. Configure them
to be on rising edge alone as that should be sufficient.

Change-Id: I9e19cf08e77432a4db5f18894ee445d38f1ad802
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: change WLED interrupt configuration for pmi8998
Subbaraman Narayanamurthy [Fri, 17 Feb 2017 23:12:02 +0000 (15:12 -0800)]
ARM: dts: msm: change WLED interrupt configuration for pmi8998

Currently, WLED over-voltage and short-circuit fault interrupts
are configured for both rising and falling edge. Configure them
to be on rising edge alone as that should be sufficient.

Change-Id: I7cdaf126c07daa9afb2c0db68ee760a9a4a2956a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoUSB: gadget: midi: Replace snd_card_free with snd_card_free_closed
Manu Gautam [Mon, 30 Jan 2017 04:59:01 +0000 (10:29 +0530)]
USB: gadget: midi: Replace snd_card_free with snd_card_free_closed

snd_card_free is a blocking function which waits for ALSA device to
be closed before freeing it. This could be blocked forever if userspace
has device node opened when midi function is unbound.
Replace it with snd_card_free_when_closed which can be safely used if
userspce has the device node opened.
It is not a blocking function and defers freeing of the card until
userspace closes the ALSA device.

Change-Id: I6becc44dc0f0c1131f9b7dcd1e4a151d830dde2b
CRs-fixed: 1116790
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
7 years agoASoC: codecs: add cable connect/disconnect acknowledgment
Kuirong Wang [Tue, 7 Feb 2017 19:24:46 +0000 (11:24 -0800)]
ASoC: codecs: add cable connect/disconnect acknowledgment

Add support for cable connect/disconnect acknowledgment
between HDMI/DisplayPort audio codec driver and display
driver to replace sysfs node mechanism.

CRs-Fixed: 2013097
Change-Id: I3b385a5e9933f7e99f1dbb9848a2664f687bd7d7
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
7 years agopower: fg-util: Fix the address mask for secure_write check
Anirudh Ghayal [Thu, 2 Mar 2017 07:23:04 +0000 (12:53 +0530)]
power: fg-util: Fix the address mask for secure_write check

For the 16-bit FG peripheral register address check the lower-byte
for secure_access instead of the upper-byte.

CRs-Fixed: 2013922
Change-Id: I647aa4eadccb007e6e974eae65cef162c5a40a0d
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agoqcom: smb-lib: fix adapter allowance for PM660
Ashay Jaiswal [Wed, 1 Mar 2017 04:48:04 +0000 (10:18 +0530)]
qcom: smb-lib: fix adapter allowance for PM660

PM660 only supports VBUS voltage upto 9V, add
support to limit adapter allowance to maximum 9V for
PM660.

Change-Id: I283d5b1105cd9ad397a484982d674acf97f31f8a
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agoMerge "msm: mdss: handle synchronization issues during DSI debugfs read/write"
Linux Build Service Account [Thu, 2 Mar 2017 16:27:04 +0000 (08:27 -0800)]
Merge "msm: mdss: handle synchronization issues during DSI debugfs read/write"

7 years agoMerge "msm: vidc: Return correct error code from venus_hfi_suspend"
Linux Build Service Account [Thu, 2 Mar 2017 16:27:03 +0000 (08:27 -0800)]
Merge "msm: vidc: Return correct error code from venus_hfi_suspend"

7 years agoMerge "msm: vidc: Add support for Cx ipeak limitation"
Linux Build Service Account [Thu, 2 Mar 2017 16:27:02 +0000 (08:27 -0800)]
Merge "msm: vidc: Add support for Cx ipeak limitation"

7 years agoMerge "ARM: dts: msm: Remove debug_timeout property for msm8998"
Linux Build Service Account [Thu, 2 Mar 2017 16:27:02 +0000 (08:27 -0800)]
Merge "ARM: dts: msm: Remove debug_timeout property for msm8998"

7 years agoMerge "msm: vidc: Add support for querying controls"
Linux Build Service Account [Thu, 2 Mar 2017 16:27:01 +0000 (08:27 -0800)]
Merge "msm: vidc: Add support for querying controls"

7 years agoMerge "msm: vidc: Initialize DCVS load properly"
Linux Build Service Account [Thu, 2 Mar 2017 16:27:00 +0000 (08:27 -0800)]
Merge "msm: vidc: Initialize DCVS load properly"

7 years agoMerge "soc: qcom: Propagate separate error code for PDR disabled"
Linux Build Service Account [Thu, 2 Mar 2017 16:26:59 +0000 (08:26 -0800)]
Merge "soc: qcom: Propagate separate error code for PDR disabled"

7 years agoMerge "leds: remove unused driver leds-qpnp-flash.c"
Linux Build Service Account [Thu, 2 Mar 2017 16:26:58 +0000 (08:26 -0800)]
Merge "leds: remove unused driver leds-qpnp-flash.c"

7 years agoMerge "ARM: dts: msm: Change FG cut-off voltage to default for SDM660 QRD"
Linux Build Service Account [Thu, 2 Mar 2017 16:26:57 +0000 (08:26 -0800)]
Merge "ARM: dts: msm: Change FG cut-off voltage to default for SDM660 QRD"

7 years agoMerge "ARM: dts: msm: Add support for sdm630 QRD board"
Linux Build Service Account [Thu, 2 Mar 2017 16:26:57 +0000 (08:26 -0800)]
Merge "ARM: dts: msm: Add support for sdm630 QRD board"

7 years agomsm: ipa3: fix DMA memory allocation success check
Ghanim Fodi [Thu, 2 Mar 2017 15:32:03 +0000 (17:32 +0200)]
msm: ipa3: fix DMA memory allocation success check

IPA allocates memory for Filtering and Routing tables
by the DMA memory allocation Linux APIs.
The code did not check the success of allocation
correctly. This change fixes the check.

CRs-fixed: 2014060
Change-Id: I95a170f19e3becfc2b90bf5931947c0637464257
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
7 years agoalarmtimer: Program mpm wakeup time in milliseconds
Mohit Aggarwal [Thu, 16 Feb 2017 08:59:20 +0000 (14:29 +0530)]
alarmtimer: Program mpm wakeup time in milliseconds

Currently, mpm wakeup time is programmed in seconds
due to which there is a possibility that wakeup
happens later than the expected time. This patch
fixes the issue by programming the mpm wakeup time
in milliseconds.

CRs-Fixed: 2010001
Change-Id: I5c4905a0386e60ae54876f30d89f445fd06a161c
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
7 years agoARM: dts: msm: add device nodes to support DP on sdm630
Narender Ankam [Tue, 28 Feb 2017 07:47:02 +0000 (13:17 +0530)]
ARM: dts: msm: add device nodes to support DP on sdm630

Add device nodes for dp_ctrl and dp_pll to bring up display port
on sdm630.

Change-Id: I14621a6e4d6273b56c1ad7639baa5e83c058fe63
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
7 years agocpuidle: lpm-levels: Update suspend wake time
Maulik Shah [Wed, 22 Feb 2017 04:56:17 +0000 (10:26 +0530)]
cpuidle: lpm-levels: Update suspend wake time

Alarmtimer will send suspend wake time in milliseconds
instead of seconds to minimize round off errors. Update
lpm-levels accordingly.

Change-Id: I58c780993ce35cda69cd963996f057d6e2265c6d
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
7 years agoath10k: define structure for the copy engine misc regs
Sarada Prasanna Garnayak [Thu, 16 Feb 2017 11:53:29 +0000 (17:23 +0530)]
ath10k: define structure for the copy engine misc regs

Define structures for the copy engine misc registers
copy engine CMD halt, watermark source, watermark
destination, host IE ring.

This adds support to avoid the conditional compilation,
code optimization and dynamic configuration of the copy
engine register map for respective hardware bus interface.

Change-Id: I42b9c0ad0927b492e3b4f040ae7163456b161735
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agoath10k: define structure for the copy engine CTRL_1 regs
Sarada Prasanna Garnayak [Wed, 15 Feb 2017 10:37:41 +0000 (16:07 +0530)]
ath10k: define structure for the copy engine CTRL_1 regs

Define a structure for the copy engine CTRL_1 register
source, destination and dmax ring. This adds support to
avoid the conditional compilation, code optimization and
dynamic configuration of the copy engine register map
for respective hardware bus interface.

Change-Id: Ic0a4190b0735fb5d905ea75ac71e8060260dde74
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agoath10k: define structure for the copy engine register map
Sarada Prasanna Garnayak [Mon, 6 Feb 2017 11:56:10 +0000 (17:26 +0530)]
ath10k: define structure for the copy engine register map

Instead of defining the copy engine register map as a macro,
Define a structure for the copy engine register map to avoid
the conditional compilation, code optimization and dynamic
configuration of the copy engine register map for respective
hardware bus interface.

Change-Id: I799794ed85b83e342c2aab3d12b2876fc28d680b
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agoARM: dts: msm: Change BLSP assignment for APQ8098-mediabox
Shrey Vijay [Wed, 15 Feb 2017 12:23:33 +0000 (17:53 +0530)]
ARM: dts: msm: Change BLSP assignment for APQ8098-mediabox

By default codec uses SPI_10 BLSP instance. On mediabox platform,
codec usecase is not present. Hence disable SPI_10 instance on
APQ8098 mediabox platform.

Change-Id: I721673b8cc0ef6d974e715ffd405fc1b11e2c9d5
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>