Commit graph

589667 commits

Author SHA1 Message Date
Brahmaji K
df7052e30b qcdev: Check the digest length during the SHA operations
Check the digest length to avoid buffer overflow while
doing the SHA operations.

Change-Id: I4d3fb20723f59e905a672edaf84ee5d0865905b1
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-05-16 03:02:33 -07:00
Linux Build Service Account
75a9d0fee5 Merge "ARM: dts: msm: Update charging ESR timer value to 96 for PM660 FG" 2017-05-15 03:51:25 -07:00
Linux Build Service Account
e7c8de8d94 Merge "scsi: ufs: Initialize cmd_id and check lrbp->cmd NULL" 2017-05-15 03:51:24 -07:00
Linux Build Service Account
cdcdb7a314 Merge "mmc: mmc: Fix mmc_partial_init for HS400 mode" 2017-05-15 03:51:23 -07:00
Linux Build Service Account
1f7482db72 Merge "defconfig: msm: remove dcc config for perf on sdm660" 2017-05-15 03:51:22 -07:00
Linux Build Service Account
593bc3b721 Merge "sound: usb: Add default branches for BADD 3.0 devices" 2017-05-15 03:51:21 -07:00
Linux Build Service Account
2cc0f28c54 Merge "media: dvb-core: Fix coding errors in broadcast drivers" 2017-05-15 03:51:21 -07:00
Linux Build Service Account
3c50776b05 Merge "defconfig: msmcortex: Cleanup" 2017-05-15 03:51:20 -07:00
Linux Build Service Account
696b2e8fbe Merge "qpnp-smb2: Add software based glitch filter for OTG detection" 2017-05-15 03:51:19 -07:00
Linux Build Service Account
da60dd7190 Merge "dma-mapping: Always remap on dma buffer free" 2017-05-15 03:51:18 -07:00
Linux Build Service Account
c8b9cb715e Merge "ARM: dts: msm: Update the virtual corner for SDM630" 2017-05-15 03:51:17 -07:00
Linux Build Service Account
fee8893548 Merge "clk: Move vdd voting before set rate and parent" 2017-05-15 03:51:16 -07:00
Linux Build Service Account
fc2f0e6d95 Merge "usb: gadget: f_cdev: Increase number of driver instances to 3" 2017-05-15 03:51:15 -07:00
Linux Build Service Account
286d3aa674 Merge "msm: camera: isp: Fix excessive logging in w+t" 2017-05-15 03:51:14 -07:00
Anirudh Ghayal
01cb0bde1c ARM: dts: msm: Update charging ESR timer value to 96 for PM660 FG
Use the same FG ESR timer value (96) for charging and
discharging. This is to avoid the frequent periodic spur
seen in the RF performance with charger connected.

CRs-Fixed: 2046553
Change-Id: I9d1ad61f75f553bf527906715699817236f44b01
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-05-15 11:44:55 +05:30
Udaya Bhaskara Reddy Mallavarapu
9603f4f5cd media: dvb-core: Fix coding errors in broadcast drivers
Added Check to verify TSPP channel input source is valid.
Initialize return variables to return correct values in fail conditions.
Move deferencing of input pointer arguments after NULL checking.

CR's-Fixed: 2043689
Change-Id: I7febdb0e0f499846cfcf8836ea35c8547a5074fb
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
2017-05-14 21:12:44 +05:30
Linux Build Service Account
c6d1c1699e Merge "drm/msm: make msm_drm.h uapi header safe for C++" 2017-05-13 16:25:54 -07:00
Olav Haugan
092564d2a8 defconfig: msmcortex: Cleanup
Sync defconfig with make menuconfig output.

Change-Id: Ieefef23fe14676007580c524268ef2a228d38059
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2017-05-12 08:44:35 -07:00
Ashay Jaiswal
0038058ab4 qpnp-smb2: Add software based glitch filter for OTG detection
When the USB_ID line is pulled low for a very short time there is a
possibility that the SW misses rising edge(removal) event. This may
lead to the state where charger is stuck in the boost-mode forever.

Fix this my adding a SW based glitch logic which checks for the
USB_ID after a SW debounce time and then notifies its presence/removal to
the USB driver.

CRs-Fixed: 2044958
Change-Id: I31974f7d68b435bbef329278cedbd726ada02e3f
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-05-12 16:45:10 +05:30
Saranya Chidura
24bba179ae defconfig: msm: remove dcc config for perf on sdm660
remove the DCC_CONFIG option in perf defconfig for SDM660
target.

Change-Id: Id1b019a5eb1c6a71d4b5e6e854e642411714a900
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-05-12 15:26:51 +05:30
Ritesh Harjani
45eadbbce3 mmc: mmc: Fix mmc_partial_init for HS400 mode
In case of emmc5.0 cards where HS400 mode and CMD5(awake) partial
init is enabled -> mmc_partial_init is broken and gives below errors.
Fix this by adding calibration logic in case of HS400 mode.

NOTE: In HS400 mode tuning is only performed once during bootup (in
HS200 mode).
Post to that it is always DLL calibration which is performed (in
system/runtime resume).
So even for below issue since timing is already changed using
cached_ios, then do the calibration using ->execute_tuning.

<dmesg errors w/o patch>
root@msm8996:/ # [   76.011036] mmc0: mmc_runtime_suspend:
[   77.315903] mmc0: mmc_runtime_resume:
[   77.367866] mmc0: mmc_partial_init: starting partial init
[   77.376225] mmc0: mmc_test_awake_ext_csd: mmc_get_ext_csd failed
(-110)
[   77.382190] mmc0: mmc_partial_init: done partial init (-110)
[   77.387536] mmc0: _mmc_resume: awake failed (-110), fallback to full
init
[   77.394405] mmc0: mmc_init_card:
[   77.402762] mmc0: mmc_init_card: mmc_send_op_cond() fails -110
[   77.407573] mmc0: MMC card re-init failed rc = -110 (retries = 3)
[   77.507261] mmc0: _mmc_resume: awake failed (-110), fallback to full
init
[   77.513293] mmc0: mmc_init_card:

<dmesg with patch>
[   74.002624] mmc0: mmc_runtime_resume:
[   74.056089] mmc0: mmc_partial_init: starting partial init
[   74.067143] mmc0: mmc_partial_init: done partial init (0)

Change-Id: I0e55efb7863b75bd584843c3fc920c845996eb5c
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2017-05-12 02:08:27 -07:00
Ajay Agarwal
2ecf8c9fd2 sound: usb: Add default branches for BADD 3.0 devices
For a BADD 3.0 device, the Data Endpoint wMaxPacketSize
of an Alt Setting must be one of the values mentioned in
the specifications. Similarly, the unit IDs of the source
units of any entity is prescribed by the specs. Add
support for checking the error(default) branches in the
relevant switch cases and accordingly handle them.

Change-Id: Ib88eee21df012089d41c4e78a161ddc6767e1bd4
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-05-12 12:33:15 +05:30
Taniya Das
1098fcc4b9 clk: Move vdd voting before set rate and parent
There could be clocks where the clock operations of set_rate_and_parent
would be defined to take care of setting rate and updating parent.
Move the vdd voting logic to ensure the vdd levels are voted prior to
updating rate and parent.

Change-Id: I57f903f95f290627d676afd567a6e6d21decf4a3
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-05-12 10:13:32 +05:30
Can Guo
6a4c4fcfe2 scsi: ufs: Initialize cmd_id and check lrbp->cmd NULL
In commit d70b0a18f6 ("scsi: ufs: add command
logging infrastructure"), cmd_id is not initialized
and lrbp->cmd is explicitly dereferenced without
checking NULL. Fix them by initializing cmd_id with
an initial value 0 and checking NULL for lrbp->cmd.

Change-Id: I6f66066adc8d53e3615df50ac49dd313f6d7ea8e
Signed-off-by: Can Guo <cang@codeaurora.org>
2017-05-12 08:20:54 +08:00
Linux Build Service Account
ae4d972f07 Merge "Merge branch 'android-4.4@9796ea8' into branch 'msm-4.4'" 2017-05-11 11:48:48 -07:00
Linux Build Service Account
24638027f1 Merge "drm/msm: add extern C guard for the UAPI header" 2017-05-11 11:48:47 -07:00
Linux Build Service Account
8691dbd00f Merge "input: misc: fix error path for hbtp touch driver" 2017-05-11 11:48:46 -07:00
Linux Build Service Account
9ad03b1fbd Merge "ARM: dts: msm: Add SMB1381 device node for QRD SDM660" 2017-05-11 11:48:45 -07:00
Linux Build Service Account
166f9cc74b Merge "diag: Validate proper mdlog session for a PD" 2017-05-11 11:48:44 -07:00
Linux Build Service Account
aa86283c28 Merge "ota_crypto: Add NULL pointer check for new_req variable" 2017-05-11 11:48:43 -07:00
Linux Build Service Account
8de2594b01 Merge "USB: f_qdss: Fix crash issue during connect_work" 2017-05-11 11:48:41 -07:00
Linux Build Service Account
e6f467a16d Merge "soc: qcom: qpnp-haptic: add support for auto mode" 2017-05-11 11:48:40 -07:00
Linux Build Service Account
4f71440325 Merge "scsi: ufs: ufs-qcom-ice: Initialize local variable in ice_cfg_start()" 2017-05-11 11:48:39 -07:00
Linux Build Service Account
b044376188 Merge "mmc: core: Replacing sprintf() with snprintf()" 2017-05-11 11:48:38 -07:00
Linux Build Service Account
c454ad4e3e Merge "sound: usb: Fix format desc usage for BADD 3.0 devices" 2017-05-11 11:48:37 -07:00
Linux Build Service Account
a55a52a8a2 Merge "drm/msm: Allocate secure buffer objects" 2017-05-11 11:48:34 -07:00
Hemant Kumar
cbec952d17 usb: gadget: f_cdev: Increase number of driver instances to 3
This allows to instantiate two dial up network interfaces and
one NMEA interface.

Change-Id: I59f5d93a5e9360628d8004508162dcdb42f6520d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-11 11:12:50 -07:00
Shiraz Hashim
504b0bb784 dma-mapping: Always remap on dma buffer free
DMA clients may opt to clear cpu virtual address mapping
on alloc. On free when dma buffer is given back to cpu,
ensure that it is always remapped in cpu address space.

Change-Id: I67f9616d9bee8cf07cbe81468ebf174d2599f4c5
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-05-11 10:45:31 -07:00
Linux Build Service Account
c4a48b7ed2 Merge "mmc: host: sdhci-msm-ice: Initialize local variable in ice_cmdq_cfg()" 2017-05-11 06:48:13 -07:00
Linux Build Service Account
33a48f3f45 Merge "ath10k: cancel the event work in wlan snoc driver module remove" 2017-05-11 06:48:12 -07:00
Linux Build Service Account
f87cdfa943 Merge "qseecom: Initialize the hlos_ce_hw_instance array" 2017-05-11 06:48:11 -07:00
Linux Build Service Account
d2c35f47e8 Merge "btfm: Fix coding error with uninitialized variables" 2017-05-11 06:48:09 -07:00
Linux Build Service Account
9a95bce25c Merge "input: stm: Fix NULL dereference in laser driver" 2017-05-11 06:48:08 -07:00
Linux Build Service Account
590cfee905 Merge "msm: camera: Fixing NULL dereference in sensor code" 2017-05-11 06:48:06 -07:00
Linux Build Service Account
9fa70208d4 Merge "ARM: dts: msm: Add support for camss throttle clock on SDM660" 2017-05-11 06:48:05 -07:00
Linux Build Service Account
3757478deb Merge "msm: isp: Fix pdaf buffer drop" 2017-05-11 06:48:04 -07:00
Linux Build Service Account
5633ac9b6c Merge "msm: camera: Do not pass kptr in copy_from_user" 2017-05-11 06:48:03 -07:00
Linux Build Service Account
6ce7c8ebb5 Merge "msm: isp: Fix isp recovery mechanism" 2017-05-11 06:48:02 -07:00
Linux Build Service Account
a81797adfc Merge "msm: isp: Correct UB size for RDI" 2017-05-11 06:48:01 -07:00
Linux Build Service Account
3c272a1622 Merge "msm: camera: isp: Vote for bandwidth to avoid race condition" 2017-05-11 06:48:00 -07:00