Commit graph

585095 commits

Author SHA1 Message Date
Linux Build Service Account
5313eed1b9 Merge "ARM: dts: msm: Add support for ANC headset detection on MSM8998" 2017-03-07 06:25:07 -08:00
Linux Build Service Account
9695aa22f6 Merge "ASoC: msm: qdsp6v2: add memset of adm open before usage" 2017-03-07 06:25:06 -08:00
Linux Build Service Account
5f1177f04a Merge "ASoC: msm: qdsp6v2: Support to set session start delay" 2017-03-07 06:25:01 -08:00
Linux Build Service Account
353fafc458 Merge "defconfig: msm: Enable KASLR on sdm660 target" 2017-03-07 06:25:00 -08:00
Linux Build Service Account
4f433ac662 Merge "ARM: dts: msm: Update APC0/1 CPR voltage margins for sdm660" 2017-03-07 06:24:59 -08:00
Linux Build Service Account
c1906072dc Merge "ARM: dts: msm: config SD card GPIO on SDM660 QRD" 2017-03-07 06:24:59 -08:00
Linux Build Service Account
5bd32b9102 Merge "power: qcom: smb-lib: enable HVDCP auth IRQ before APSD rerun" 2017-03-07 06:24:54 -08:00
Linux Build Service Account
3e5d23c301 Merge "mmc: sdhci: add err_state to sdhci_dumpregs func" 2017-03-07 06:24:53 -08:00
Manu Gautam
3e96eebc6b usb: xhci: Set bulk EP maxpacket to 8 for buggy FS devices
Some FS devices report maxpacket size as 4 for their BULK EPs
which is incorrect as per USB specification. This results in
ep_config command to controller timing out and enumeration fails.
As minimum maxpacket size for FS is 8, override the same for such
devices.

CRs-fixed: 1002876
Change-Id: I70c2210b4eb93f557eef306fcbc11308b7b33e07
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2017-03-07 04:05:13 -08:00
Amit Nischal
3e6f31c583 clk: qcom: Fix null pointer exception
Add null pointer check before dereferencing pointers.

Change-Id: I9d96a3d0e7d00ffc2c2eb83a0d2384a21fe994ae
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-03-07 17:05:51 +05:30
Utkarsh Saxena
03cbd472f6 msm: ipa: Fix updating the repl_trig_thresh for LAN_CONS
Replenish trigger threshold for LAN_CONS is calculated
before updating the rx_pool_sz. This can result into
division by 0 which can make the system unstable.
Make a change to update the rx_pool_sz before updating
the replenish trigger threshold.

Change-Id: I62f6c114ce7aee571833ef05146ab75cab0fb5d2
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-03-07 16:44:12 +05:30
Manaf Meethalavalappu Pallikunhi
ec2354506c ARM: dts: msm: No need to disable CXIP LM feature in KTM for sdm630
This reverts commit f4070db5b9
("ARM: dts: msm: Disable CXIP LM feature for sdm630") since
CXIP LM hardware feature is disabled by default for sdm630.

Change-Id: I3a2e033ce3e7f22f4b87e3e63b1942555ce8d7d4
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2017-03-07 02:56:26 -08:00
Taniya Das
161b113017 clk: qcom: Add separate aggre2_noc clock voters for SDM660/630
Separate out the aggre2_noc voters so that individual voters could vote on
these clocks and voter clock would aggregate the clock rates before sending
a request to RPM.

Change-Id: I8ef30af257d2f37ec5af6aa5e3d1b69e5ba8ec8c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-03-07 15:58:32 +05:30
Tharun Kumar Merugu
1d18a9fdb5 msm: ADSPRPC: Handle SSR, daemon kill for audio PD
Handle SSR, daemon kill and restart scenarios for audio PD

Change-Id: If9c9e98642ad69866b19a7c0ea19160dcb357d34
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-03-07 01:48:04 -08:00
Avaneesh Kumar Dwivedi
fb7aadf142 soc: qcom: Free qmi handle in a worker thread
This change on arrival of ssr event schdule a worker thread,
which when run carry out task of qmi handle destruction.
It is a desired change to make ssr notification callback as
light as possible and avoid blocking it for long in corner cases.

Change-Id: I832fabce7569b1b8b966b7c49cda1b00cff2c472
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2017-03-07 15:13:31 +05:30
Vijayavardhan Vennapusa
59b6f20843 USB: composite: Fix double release of spin_unlock_irqsave
Commit b953b45ed08c ("USB: composite: Release spinlock before
WARN()") introduced a bug where it leads to calling spin_unlock_
irq_save twice in case of delayed_status zero. Hence fix the issue
by returning from composite_setup_continue() right after WARN() in
case of delayed_status zero.

Change-Id: I33c77ec8a2f97fcd94cffb416e57f3c77d6789f2
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-03-07 14:56:20 +05:30
Linux Build Service Account
4ffd6a18c4 Merge "drm/msm/sde: fix color component order for UBWC formats" 2017-03-06 22:43:48 -08:00
Linux Build Service Account
dc255d3cee Merge "ARM: dts: msm: Setting alignment size of adsp cma region to 8MB for SDM660" 2017-03-06 22:43:42 -08:00
Linux Build Service Account
67d173f7e9 Merge "ARM: dts: msm: Add SPDM feature for sdm660" 2017-03-06 22:43:41 -08:00
Linux Build Service Account
05cbf8d351 Merge "ARM: dts: msm: setting alignment size of adsp cma region to 8MB for SDM630" 2017-03-06 22:43:41 -08:00
Linux Build Service Account
00f85231bc Merge "ARM: dts: msm: Allow modem MBA to be loaded in carveout for SDM630" 2017-03-06 22:43:40 -08:00
Linux Build Service Account
2ab20ffb7b Merge "ARM: dts: msm: add MBA carveout for sdm630" 2017-03-06 22:43:39 -08:00
Linux Build Service Account
5f92ec65b9 Merge "lpm-levels: Return from idle enter for negative mode" 2017-03-06 22:43:39 -08:00
Linux Build Service Account
fb2e8b97fa Merge "clk: qcom: Update the source clock for 24MHz MCLK" 2017-03-06 22:43:38 -08:00
Linux Build Service Account
f3ecd02343 Merge "msm: camera: Validate size param before allocating memory" 2017-03-06 22:43:37 -08:00
Linux Build Service Account
f35c117cc0 Merge "msm:cci: Add protection for race condition in cci queue access" 2017-03-06 22:43:36 -08:00
Linux Build Service Account
4ce3eaf877 Merge "msm: camera: add check to ensure user task wont hog CPU" 2017-03-06 22:43:35 -08:00
Linux Build Service Account
e53669c282 Merge "msm: camera: isp: enable/disable hvx only if the state changed" 2017-03-06 22:43:34 -08:00
Linux Build Service Account
84d7cb53a5 Merge "msm: isp: fix for potentitial array out of bound access" 2017-03-06 22:43:33 -08:00
Linux Build Service Account
1cb56eedff Merge "msm: isp: Fix dummy print which may leak address" 2017-03-06 22:43:32 -08:00
Linux Build Service Account
789bdd5b54 Merge "ARM: arch_timer: force re-selection of the best clocksource" 2017-03-06 22:43:31 -08:00
Linux Build Service Account
4a9008031c Merge "ARM: dts: msm: update device nodes for SDM658" 2017-03-06 22:43:31 -08:00
Linux Build Service Account
50047fdad2 Merge "ARM: dts: msm: lpass cti removed on sdm660" 2017-03-06 22:43:30 -08:00
Linux Build Service Account
88e4d16567 Merge "soc: qcom: glink: Move channel to dummy xprt with lock" 2017-03-06 22:43:29 -08:00
Sarada Prasanna Garnayak
4af1b577f9 icnss: set vdd-0.8-cx-mx regulator optional for icnss driver
The wlan firmware is configuring the clk and voltage regulator
for hardware power on and hardware reset sequence.

The icnss platform driver is configuring this clk and regulators
to avoid invalid access to copy engine register during the wlan
recovery.

As platform driver is not configuring this regulator to power on
or reset the WLAN hardware, So no need to define the voltage
regulators are the required properties for the ICNSS platform driver.

Define vdd-0.8-cx-mx as an optional voltage regulator for
the icnss platform driver.

CRs-Fixed: 2014965
Change-Id: I74a1445522997ba4e7a52da5a29e9afb57ad12df
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-03-06 22:26:09 -08:00
Venkatesh Yadav Abbarapu
0b6529f408 defconfig: msm: Enable KASLR on sdm660 target
Enable kernel address space layout randomization for
better protection.

Change-Id: Ie92bcf606a28c146ecbf19a7fc89088079d0beb0
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2017-03-07 11:31:21 +05:30
xiaonian
85c766e037 ARM: dts: msm: config SD card GPIO on SDM660 QRD
As GPIO 54 has already been connected to an external
pull up resistor, config it to no pull to save power
consumption.

CRs-Fixed: 2015121
Change-Id: Id13588be53b8756e4d9792035bcc6adfbaa8c3f7
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
2017-03-07 09:30:37 +08:00
Walter Yang
05f4374845 ASoC: Add backend user count checking
Add backend user count checking to protect the index
boundary.

Change-Id: Ic1b61d1f7130252cc54da0b16553858714988dbd
CRs-Fixed: 2009216
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-06 16:33:34 -08:00
Walter Yang
3ef1c4591b ASoC: wcd934x: mark AIF4 MAD TX as ignore suspend
Mark AIF4 MAD TX as ignore suspend so that MAD path
will not power down during suspend mode.

CRs-Fixed: 2003858
Change-Id: Iae55e2778edcdd8efa6ae13b746795d8a1594a41
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-06 16:33:28 -08:00
Walter Yang
b91bc18535 ARM: dts: msm: remove hph_en nodes for sdm660 qrd
HIFI headphone path is not present in sdm660 qrd board.
So there is no need to add these two hph_en nodes under tasha node.
These two nodes get initialized by msm_cdc_pinctrl driver and make
gpio24/25 as output low, which causes some power leakage.
Remove these two hph_en nodes for sdm660 qrd.

Change-Id: I527ce45296cd3b168bea67804e0909f668f74221
CRs-Fixed: 2011375
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-06 16:33:21 -08:00
Nicholas Troast
e573d8b6b0 power: qcom: smb-lib: enable HVDCP auth IRQ before APSD rerun
Currently the HVDCP auth IRQ is only enabled upon USB removal. When APSD
is rerun the USB type is not updated to HVDCP_3 since the IRQ was
disabled.

Fix this by enabling the HVDCP auth IRQ before APSD is rerun.

Change-Id: Ic9ec2dca5915651864582abea9165ca8c4290169
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-06 11:37:08 -08:00
Se Wang (Patrick) Oh
01c4ad06a8 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>
2017-03-06 09:17:36 -08:00
Se Wang (Patrick) Oh
54547c9f75 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>
2017-03-06 09:14:05 -08:00
Laxminath Kasam
0ef57978d0 ASoC: codecs: Fix override of codec driver private data
In SDM660 internal codec drivers, both platform dev probe and
snd_soc codec probe allocate different structures but
update allocated address pointer to same driver data info.
This causes override of earlier structure location.
Combine the structures to make single codec private data.

CRs-Fixed: 2012230, 2013959
Change-Id: I6c6c43f408fb00003ca43d78919f54ba87f37ffd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-06 20:03:05 +05:30
Tharun Kumar Merugu
be44242e5d ARM: dts: msm: Setting alignment size of adsp cma region to 8MB for SDM660
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.

Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Change-Id: I7f774dd193435f045243b34fc0d4f2a9ff24329f
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-03-06 06:24:01 -08:00
Rajesh Kemisetti
c350700002 defconfig: msm: Enable Cx ipeak driver for SDM660
Enable common Cx ipeak driver for various multimedia
clients like GPU, MDP, Venus and Camera modules.

This is needed to handle Cx ipeak limit on SDM660.

Change-Id: I95a46964fdf9df48cc0aeb2891426f88c1ff72f9
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-03-06 19:21:13 +05:30
Odelu Kukatla
c21d2cb83d ARM: dts: msm: Add SPDM feature for sdm660
SPDM feature requires to be enabled, so add SPDM settings
for APPS CPU bus client.

Change-Id: I35fdafcefebcd3fb6e59f3e55bb68d07403abc74
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-06 18:35:29 +05:30
Charan Teja Reddy
fdadf59c92 ARM: dts: msm: update cti gpio configuration on sdm660
Update the proper GPIO configuration for the QDSS so that CTI output can be
mapped to the GPIO to generate the proper trigger.

Change-Id: Icc8915522f9c5707869572cf80b7bd345d59eca4
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-03-06 18:31:43 +05:30
Tharun Kumar Merugu
5111aa7c04 ARM: dts: msm: setting alignment size of adsp cma region to 8MB for SDM630
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.

Change-Id: Idf7865712a97870fd56d1957b464b98fb92fad2a
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-03-06 04:57:51 -08:00
Linux Build Service Account
783427f7ad Merge "ARM: dts: msm: add device nodes to support DP on sdm630" 2017-03-06 04:28:46 -08:00