Commit graph

582807 commits

Author SHA1 Message Date
David Collins
ec1ec741b7 pwm: qpnp: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Add 'const' to the type of a struct of_device_id variable.

 - Remove unnecessary out-of-memory error messages.

 - Change variables of type 'unsigned' to 'unsigned int'.

 - Correct minor whitespace inconsistencies.

 - Replace kzalloc() with kcalloc() for arrays.

 - Replace strncmp() with strcmp().

 - Replace EXPORT_SYMBOL_GPL() with EXPORT_SYMBOL().

 - Remove a macro which affects flow control.

 - Update the PWM_QPNP Kconfig entry and driver to use the name:
   'Qualcomm Technologies, Inc.'

 - Correct the spelling of 'label'.

Change-Id: I36cd39cec22a4e4ad5956e57643753841fedb4dc
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 12:19:04 -08:00
David Collins
04be47199a gpio: qpnp-pin: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Use octal file permissions instead of symbolic.

 - Add 'const' to type of struct of_device_id variables.

 - Change variables of type 'unsigned' to 'unsigned int'.

 - Restructure conditionals to avoid else after return.

 - Correct minor whitespace inconsistencies.

 - Replace strncmp() with strcmp().

 - Replace a static length 1 array with a scalar variable.

 - Update the GPIO_QPNP_PIN Kconfig entry to use the name
   'Qualcomm Technologies, Inc.'

 - Expand the description of the GPIO_QPNP_PIN_DEBUG config
   option.

 - Remove an unnecessary BUG_ON() call.

Change-Id: Ib1a49adf4668124020fed90108fed338d7ab2bd6
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 12:19:03 -08:00
David Collins
b2f04129ca regulator: qpnp-regulator: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Use octal file permissions instead of symbolic.

 - Add 'const' to type of struct of_device_id variables.

 - Remove unnecessary out-of-memory error messages.

 - Change variables of type 'unsigned' to 'unsigned int'.

 - Restructure conditionals to avoid else after return/break.

 - Remove 'return' from the end of void functions.

 - Join strings that are wrapped across two lines.

 - Remove ';' from the end of a macro definition.

 - Update the REGULATOR_QPNP Kconfig entry and the device tree
   documentation to use the name: 'Qualcomm Technologies, Inc.'

Change-Id: I9f2cde58929ae57667366bb886e65154d36dfd3d
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 12:18:57 -08:00
Laxminath Kasam
a087b340f4 ASoC: Add support for ADIE RTC on SDM660 internal codec
Update module names of ADIE RTAC for digital and
analog codecs. And update machine driver to
update codec_root of pdata.

Change-Id: Id5c2367a2aac31e80cc0a37f72160b73c7adcdde
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-02-04 01:44:35 +05:30
Laxminath Kasam
0328d8d137 ASoC: sdm660-cdc: Add 4-mic DMIC support
Add route map and mix controls to support 4 digital mics
in SDM660 internal codec.

Change-Id: Ida16a910961d01a57d7d03dd64b61ecd36bad37d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-02-04 01:38:57 +05:30
David Collins
7d2b2afa0f regulator: msm_gfx_ldo: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Use octal file permissions instead of symbolic.

 - Change variables of type 'unsigned' to 'unsigned int'.

 - Correct a minor whitespace inconsistency.

Change-Id: I282801edaa3a713fd34035e7270d4fb1d0b86fca
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 11:59:18 -08:00
David Collins
f676facccc regulator: mem-acc-regulator: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Add 'const' to the type of a struct of_device_id variable.

 - Remove unnecessary out-of-memory error messages.

 - Change variables of type 'unsigned' to 'unsigned int'.

 - Restructure conditionals to avoid else after return.

 - Correct the spelling of the word 'initialize'.

 - Update the REGULATOR_MEM_ACC Kconfig entry and the device
   tree documentation to use the name: 'Qualcomm Technologies,
   Inc.'

Change-Id: Idfccd4289eadbbeaf2c682ca4fbe73eda691499a
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 11:57:47 -08:00
David Collins
5fc047dd54 regulator: kryo-regulator: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Use octal file permissions instead of symbolic.

 - Add 'const' to the type of a struct of_device_id variable.

 - Remove unnecessary out-of-memory error messages.

 - Change variables of type 'unsigned' to 'unsigned int'.

 - Update the REGULATOR_KRYO Kconfig entry.

Change-Id: Iad0fcbcc8f276f4f8344b6fc8591cfbe604659fa
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 11:50:14 -08:00
David Collins
110c32f055 regulator: cpr3-regulator: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Use octal file permissions instead of symbolic.

 - Add 'const' to type of struct of_device_id variables.

 - Remove unnecessary out-of-memory error messages.

 - Change variables of type 'unsigned' to 'unsigned int'.

 - Restructure conditionals to avoid else after return/break.

 - Remove 'return' from the end of void functions.

 - Correct minor whitespace inconsistencies.

Change-Id: Ibf7812cd722c74e48d51e765f00efcbcf548c552
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 11:48:09 -08:00
David Collins
1abc78fdb5 power: qcom: apm: correct various coding style issues
Correct warnings flagged by checkpatch.  In particular, modify
the following:

 - Use octal file permissions instead of symbolic.

 - Add 'const' to type of struct of_device_id variable.

 - Remove unnecessary out-of-memory error message.

 - Update the the MSM_APM Kconfig entry.

Change-Id: I57c6d499c90db62ca2733f302bd045b4d439905f
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-02-03 11:46:59 -08:00
Puja Gupta
c50f341bf3 soc: qcom: pil: Fix error case scenario in subsystem ramdump
During ramdump collection we assign memory to HLOS from subsystem for
non-secure pil. Whether ramdump collection is successful or not, we
should assign memory back to subsystem. This is to avoid access
violations in powerup path which happens after ramdump.

CRs-Fixed: 2002073
Change-Id: I7f1d42aebb44464fe077ca544ce91c2d7a8eefbb
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2017-02-03 10:57:38 -08:00
Chris Lew
fd7ce450ad soc: qcom: glink_smem_native_xprt: Add print for GFP_ATOMIC alloc fail
Add error message for GFP_ATOMIC allocation failure. Keep current
design to drop packet if allocation fails. This print will help debug
issues where a system critical client fails because of a dropped GLINK
packet.

CRs-Fixed: 1112151
Change-Id: I6a69cbf1f88295009284d726a06fa5affd4cc591
Signed-off-by: Chris Lew <clew@codeaurora.org>
2017-02-03 10:51:54 -08:00
Xiaoyu Ye
811f1faa25 ASoC: msm: qdsp6v2: Fix range check logic of port index
The case of port index equals AFE_MAX_PORTS is not checked.
Add this corner case to avoid wrong port number.

CRs-Fixed: 1114578
Change-Id: I466cb7d87313e55e9e0bd08a7ab43f3ea36b8b9a
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-02-03 10:43:58 -08:00
Prasad Sodagudi
e709bdfc40 power: reset: Remove secure boot mode check
Debug policy of secure devices take care of nullifying
the ram dumps in secure boot mode. So no need to check
about secure boot mode in reboot driver to enable
download feature.

Change-Id: Idb5c93aca630f0093fccc2997bf50e7958dfbf54
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-02-03 08:45:09 -08:00
Rajeev Kumar Sirasanagandla
aa0bbc8456 ath10k: Populate HW params, WMI and HTT versions for WCN3990
firmware-5.bin file for WCN3990 contains just WMI and HTT versions and
firmware is loaded by PIL.

This change, populate the hw params for WCN3990 and parse
firmware-5.bin file for WMI and HTT versions.

CRs-Fixed: 2002151
Change-Id: Ic65d3696e9546fd428e608f4738e9fe53d61338f
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2017-02-03 22:08:15 +05:30
Nicholas Troast
557ea9fd77 iio: support writing processed values to IIO channels
Add a new function to the IIO API which allows consumers to write
processed values to IIO channels.

This is particularly useful for supporting hardware which has
configurable ADC thresholds. A consumer would be able to change an ADC
threshold by providing a processed value instead of calculating a raw
value.

Change-Id: I7d3b22beddb6fd1fda0cc0aefbcb4cf5cb58bf82
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-03 08:36:59 -08:00
Linux Build Service Account
147b2394be Merge "ARM: dts: msm: Add sdhc ice device node for sdm660" 2017-02-03 06:27:02 -08:00
Linux Build Service Account
7888c1e5c1 Merge "ARM: dts: msm: Add ufs ice device node for sdm660" 2017-02-03 06:27:01 -08:00
Linux Build Service Account
ac4d5daf02 Merge "ASoc: wcd-mbhc: correct handling of electrical interrupts" 2017-02-03 06:27:00 -08:00
Linux Build Service Account
4db174025d Merge "msm: qdsp6v2: set device channels on vocproc" 2017-02-03 06:26:59 -08:00
Linux Build Service Account
33d4486260 Merge "ASoC: msm: qdsp6v2: completely deallocate on cal block creation failure" 2017-02-03 06:26:58 -08:00
Linux Build Service Account
9ffdcf0122 Merge "drivers: soc: apr: create glink buffers dynamically" 2017-02-03 06:26:57 -08:00
Linux Build Service Account
7e9b695f04 Merge "ASoC: msm8998: enable ignore suspend flag for ANC" 2017-02-03 06:26:56 -08:00
Linux Build Service Account
376ee68bbf Merge "ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()" 2017-02-03 06:26:55 -08:00
Linux Build Service Account
49c12b3001 Merge "ARM: dts: msm: Add ufs support for SDM630" 2017-02-03 06:26:51 -08:00
Linux Build Service Account
359111c6f3 Merge "ARM: dts: msm: Add WCN3990 WLAN module device node for APQ8998" 2017-02-03 06:26:50 -08:00
Linux Build Service Account
4cdd068494 Merge "soc: qcom: glink_ssr: Set NULL after free" 2017-02-03 06:26:49 -08:00
Linux Build Service Account
ac0ef02816 Merge "iio: rradc: Update charger die temperature coefficients" 2017-02-03 06:26:48 -08:00
Linux Build Service Account
294fecd4b8 Merge "msm: ADSPRPC: Use domain information to open channels" 2017-02-03 06:26:47 -08:00
Linux Build Service Account
e8cc3a4e40 Merge "qcom: battery: reorganize creation of votables in SMB library" 2017-02-03 06:26:45 -08:00
Linux Build Service Account
65d2062ba2 Merge "ARM: dts: msm: Add GPU power level speed bins for SDM660" 2017-02-03 06:26:44 -08:00
Linux Build Service Account
fc17b426dd Merge "sched: Remove sched_enable_hmp flag" 2017-02-03 06:26:43 -08:00
Linux Build Service Account
45ba3641ed Merge "ARM: dts: msm: Add support for CPU clocks for sdm630" 2017-02-03 06:26:42 -08:00
Linux Build Service Account
16ee74ee09 Merge "usb: xhci-plat: Add DT parameter to program xhci imod_interval" 2017-02-03 06:26:41 -08:00
Linux Build Service Account
3f7240256f Merge "ath10k: add WCN3990 SNOC layer compilation support" 2017-02-03 06:26:40 -08:00
Linux Build Service Account
1c6b26d03c Merge "ARM: dts: msm: Update csi source clk in msm8998" 2017-02-03 06:26:39 -08:00
Linux Build Service Account
450ae20a77 Merge "msm: camera: sensor: Validate csid lane count" 2017-02-03 06:26:38 -08:00
Linux Build Service Account
a8b7df01a1 Merge "ASoC: msm-cpe: Add timestamp support for lsm event status" 2017-02-03 06:26:35 -08:00
Linux Build Service Account
25c4cbcf13 Merge "ASoC: msm: qdsp6v2: Add App type cfg support for Listen" 2017-02-03 06:26:33 -08:00
Amey Telawane
636c58c3b6 ARM: dts: msm: add etm save restore nodes for sdm630
Values stored in etm are lost across power collapse.
Add etm save retore nodes which saves etm
values across power collapse.

Change-Id: I9ceb89a255847ca1d9dc01f223283f5664cb8feb
CRs-fixed: 1112224
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2017-02-03 18:23:05 +05:30
Ghanim Fodi
c83b219d61 msm: ipa3: Validate IPA and GSI firmwares before loading
IPA and GSI firmwares are saved on the file-system as an
ELF file. IPA driver extracts the firmwares and load
them during driver initialization.
This change adds validation steps to each firmware before
loading: load addresses, memory sizes, firmware sizes and
more...

Change-Id: I7d7f66e8e8a9ca0efae08b1e57b25ae4e44cc5bb
CRs-fixed: 1110522
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2017-02-03 13:45:08 +02:00
Rupesh Tatiya
2eb9de043d ARM: dts: msm: Add bluetooth node of wcn3990 for sdm630
Bluetooth functionality is provided by wcn3990 on sdm630. Add device tree
entry having various voltage regulators, clock settings etc.

Change-Id: I8640138f3485e1b1a26fb0f63526ad6083b93193
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2017-02-03 17:14:37 +05:30
Rupesh Tatiya
41d17c1ad9 ARM: dts: msm: Enable UART for sdm630
BLSP2 UART1 is used as transport for Bluetooth between sdm630 & wcn3990.
Enable it so that Bluetooth can be enabled on sdm630 CDP/MTP/QRD.

Change-Id: I61f300d5a8fa54172acce429ee961f7caef7d404
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2017-02-03 16:59:55 +05:30
AnilKumar Chimata
312981bf91 ARM: dts: msm: Add sdhc ice device node for sdm660
Add sdhc ice device tree data to dts files with all
the necessary parameters, to enable the ICE driver
for crypto operations related to disk encryption.

Change-Id: I5bfcf35f4a93ef9ef21508d3c4b3309bb0086511
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2017-02-03 16:37:38 +05:30
AnilKumar Chimata
479ce2576d ARM: dts: msm: Add ufs ice device node for sdm660
Add ufs ice device tree data to dts files with all
the necessary parameters, to enable the ICE driver
for crypto operations related to disk encryption.

Change-Id: I87463a1c1a064ba2a0597d095e6807931e7b5666
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2017-02-03 16:37:31 +05:30
Utkarsh Saxena
67329b8d85 ARM: dts: msm: Enable zone dma flag for sdm660/630
IPA v2.6 hardware has 32 bit limitation,
enable zone dma flag to get a kernel
memory allocated in 32 bit space.

Change-Id: I61fc2d28ef4e690a7d03ad68c308a6b6fe5129cf
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-02-03 16:18:19 +05:30
Amey Telawane
a2efe4fb8a ARM: dts: msm: modify dcc ram size for sdm660
Modify DCC RAM size for sdm660. DCC RAM is used to
store captured information locally in DCC.

Change-Id: Ib9d4ae640e8162d5a3f44739b9289457ee4ae43c
CRs-fixed: 2002031
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2017-02-03 15:48:16 +05:30
Rama Krishna Phani A
f8b4f78f86 ARM: dts: msm: Add revid phandle to read FAB ID for PM660
Temperature compensation is needed for charger die
temperature. Offset and slope coefficients are applied
based on the FAB ID read from the REVID peripheral.

Change-Id: I0bd5712b17b11c245da6d737ea0994e7f17d9837
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-02-03 15:44:13 +05:30
Sayali Lokhande
8e10d91138 ARM: dts: msm: Add ufs support for SDM630
Add ufs and ufs-phy device nodes to support
ufs as storage device for SDM630 platform.

Change-Id: Ia4059d1663dc7886ac3873bbdcca6023c6ff5643
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-02-03 15:42:23 +05:30
Govind Singh
0612699ff1 ARM: dts: msm: Add WCN3990 WLAN module device node for APQ8998
Add device node for the ath10k SNOC platform driver probe
and add interrupt table to configure copy engine for WLAN
SNOC platform driver to WLAN firmware communication.

CRs-Fixed: 1116436
Change-Id: Idade4ff63fa8e7eb2262709d76ed707e3a7e2820
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-02-02 23:07:01 -08:00