Commit graph

600145 commits

Author SHA1 Message Date
Guchun Chen
b80fa28840 drm: msm: sde: remove user commit validity check
Such validity check will let Android FDR test failed.
This is because kernel has enabled interrupts, and
access registers, but with this validity check, LK also
co-exists with kernel, while it has disabled interrupts.
Hence conflict happens.

CRs-Fixed: 2247983 2258043
Change-Id: I21be9ae2beeaa0bc187aee241572ce530b9bc93a
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2018-06-13 17:45:07 +08:00
Pratham Pratap
293a3d1734 usb: gadget: f_cdev: Send zero length packets in modem data calls
The USB protocol requires zero length packets to be sent when the data
transmission ends on a USB packet size boundary. This fix enables sending
zero length packets when required.

Change-Id: I0269ec7ff25c82000f2a5bc4adb449bc0231c66c
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2018-06-13 02:02:42 -07:00
Tharun Kumar Merugu
d413f3e7fc msm: ADSPRPC: handle 32 bit support
Handle 32 bit support without any truncation.
Add IOCTL calls for map and unmap for 64 bit separately.

Change-Id: I077a0b4345a6c21a88d7a500aa5c9faf7193f620
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-06-13 12:17:01 +05:30
Veerabhadrarao Badiganti
8c2f6269d1 mmc: host: msm: Don't check for core-dll lock during hs400es dll init
When initializing DLL in HS400 enhanced strobe-mode, no need to wait
for core dll lock. So skip this wait-on-lock step for hs400es in dll
init sequence.

Change-Id: I8cda0244cb5a397824c613a3c667470cd23e7288
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2018-06-13 11:46:56 +05:30
Srinivasa Rao Kuppala
e513723258 packet: fix race condition in packet_set_ring
commit 5a01eaf198 ("packet: fix race condition
in packet_set_ring") was incorrectly resolved.
Add the missing lock_sock(sk) and release_sock(sk) calls.

Change-Id: I6565bf3e3c6a15d6f1b93cab0536424dbacb187b
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
2018-06-13 11:10:43 +05:30
Hardik Arya
4b3d87497b diag: Add NULL pointer check for write buffer of fwd_info
Currently there is a possibility of NULL pointer dereference
because of missing NULL pointer check for writer buffer of
fwd_info. The patch adds NULL pointer check before accessing
write buffer buf_ptr of fwd_info.

CRs-Fixed: 2193526
Change-Id: Ie79eb1c7e3635210c09d4fbb1c751c6a908196ee
Signed-off-by: Hardik Arya <harya@codeaurora.org>
2018-06-12 22:08:25 -07:00
Linux Build Service Account
9912a8c48b Merge "ARM: dts: msm: add diag-camera on msm8996" 2018-06-12 21:13:41 -07:00
Chunhuan Zhan
229865a186 ARM: dts: msm: add diag-camera on msm8996
add a diag-camera for camera diagnostic feature

Change-Id: I982cea845a0f525ef4d317936963bb8a46b49733
Signed-off-by: Chunhuan Zhan <zhanc@codeaurora.org>
2018-06-12 18:22:54 -07:00
Yong Ding
0f3634fa2f soc: qcom: hab: add support for multiple hypervisors
HAB(Hypervisor ABstraction) is used for message transaction
and buffer sharing among different virtual machines with the
underlying hypervisor support. Here is the change to add HAB
support for linux running in multiple hypervisors.

Change-Id: I0747b2fa0f16c7cc0ab662369d45467ac6ba62e5
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-06-12 19:28:48 -04:00
David Dai
0fa26966ff msm: msm_bus: Fix error handling in msm_bus_device_init
Correctly free pointers allocated by kzalloc. Remove devm_kfree
in error handling as device associated memory is automatically
freed upon destruction of device. Always use put_device instead
of kfree on initialized device.

Change-Id: Icbd88e9ccd42fedb4fbce5eff69248c3fceffc02
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2018-06-12 11:24:22 -07:00
Timothy Sham
fe515e9936 ASoC: msm: qdsp6v2: Rx DTMF detection via voice stream callback
Allow msm-pcm-voice-v2 driver to enable Rx DTMF detection and
route the DTMF detection event from QDSP6 to a registered
mixer event callback.

Change-Id: I9ffb714d1ec5dd0f4e2c229830d7170324b295bb
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2018-06-12 14:00:49 -04:00
Linux Build Service Account
c9dc859c2c Merge "Revert "scsi: sd: remove check_events callback"" 2018-06-12 10:36:43 -07:00
Linux Build Service Account
ead1dfc47b Merge "msm : ais : diagnostic feature" 2018-06-12 10:36:42 -07:00
Linux Build Service Account
ce20da02ae Merge "camera: add pix fmt Y10 to support RDI for mono sensor" 2018-06-12 10:36:41 -07:00
Ravikanth Tuniki
c54e15b617 ARM: dts: msm: Add support for truly FHD+ panel on SDM660
This change adds support for truly FHD+ panel on SDM660
fastboot oem select-display-panel hx8399_truly_fhd_video.

CRs-Fixed: 2234856
Change-Id: I74c4910cd8270b404e6170b7abb0c3eed08089ae
Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
2018-06-12 02:30:04 -07:00
Chunhuan Zhan
b97610ffa1 msm : ais : diagnostic feature
provide the functions:
1. record the all camera related clocks' status
2. provide the get clock status interfaces
3. provide the read registers interfaces
4. provide read the regulators' status
5. provide set/get the specified gpio
6. get the ISP buffer states

Change-Id: I5ddb6ac5488aa46914a5fc6b642d8330e72d9b70
Signed-off-by: Chunhuan Zhan <zhanc@codeaurora.org>
2018-06-10 22:40:17 -07:00
Linux Build Service Account
7bb3a011f8 Merge "adv7481: Add support for interlaced HDMI and CVBS input" 2018-06-10 20:58:36 -07:00
Zhaohong Chen
0c700f6ac0 camera: add pix fmt Y10 to support RDI for mono sensor
- V4L2_PIX_FMT_Y10 is a format for mono sensor. Add this format in isp
   axi driver to support RDI(RAW data interface) output for mono sensor
   of 10 bits per pix.

Change-Id: Id602731349ff41330a2aaa587c46279707004856
Signed-off-by: Zhaohong Chen <zhaohong@codeaurora.org>
2018-06-10 19:08:13 -07:00
Linux Build Service Account
974d74cb90 Merge "msm: ais: translate wall clock time to userspace" 2018-06-09 22:23:49 -07:00
Linux Build Service Account
c13b3cdc0d Merge "ARM: dts: msm: update pcie boot option on msm8996au" 2018-06-09 12:58:51 -07:00
Linux Build Service Account
cfefd56025 Merge "drm: msm: Fix blue screen glitch problem on DSI" 2018-06-08 18:42:14 -07:00
Linux Build Service Account
45ac2680dd Merge "ais: sensor: fixing invalid address access issue during cci read" 2018-06-08 18:42:13 -07:00
Derek Chen
e049020258 ASoC: msm: qdsp6v2: add lsm support for tdm ports
Add LSM routing and kcontrol support for TDM
backend ports.

Change-Id: Ie6d05691a3e763fe1b7f37dd86415091f7da0e6d
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-06-08 15:10:11 -07:00
Linux Build Service Account
c97344760e Merge "diag: Prevent accessing uninitialized diag_md_info member" 2018-06-08 10:20:25 -07:00
Linux Build Service Account
ebae906ccd Merge "q6asm: retry asm open in case of session id conflict" 2018-06-08 10:20:25 -07:00
Linux Build Service Account
7b67aed053 Merge "power: smb-lib: Modify usb max voltage reflected for QC 3.0 charger" 2018-06-08 10:20:24 -07:00
Linux Build Service Account
59f6052a9d Merge "ARM: SMMU: clear page table ops of attached device" 2018-06-08 10:20:22 -07:00
Suprith Malligere Shankaregowda
966acd1e07 adv7481: Add support for interlaced HDMI and CVBS input
Set active lines based on input standard returned by SD core.
Add vid parameter to sd_timings to return number of active lines
to user. Increase SDP_NUM_TRIES to lock stable input.
Return v4l2_field type of HDMI and CVBS INPUT to userspace.

Change-Id: Ifbde4ca32fad40bc3235fed0715c11854a8aa08c
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
2018-06-08 05:36:30 -07:00
Manoj Prabhu B
4cbc84f612 diag: Prevent accessing uninitialized diag_md_info member
The patch prevents accessing uninitialized diag_md_info
struct with a check on variable set only upon structure
initialization.

Change-Id: Ie0b5ece24fbacfabac876aa4bf2295354374ed57
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2018-06-08 12:41:15 +05:30
Andy Sun
2ce70405dc ais: sensor: fixing invalid address access issue during cci read
Should use copy_to_user to pass data to userspace pointer.

Change-Id: Ide5fe1b1f4c76e5c75cfa634ac6913b0908e0d72
Signed-off-by: Andy Sun <bins@codeaurora.org>
2018-06-08 10:51:33 +08:00
jiad
7ae0b636e9 cnss2: Fix PCIe D3hot for WLAN suspend
Setting D3hot is newly added for Napier platform. And system hang is
observed on legacy Rome platform. In previous implementations for Rome
PCIe platforms, setting D3hot is not needed.

Fix is to not set D3hot for legacy platforms.

Change-Id: I1fce39eff4aa674553a214e7d0f99a81b0e6b93d
CRs-Fixed: 2255872
Signed-off-by: Jia Ding <jiad@codeaurora.org>
2018-06-06 23:46:53 -07:00
Gerrit - the friendly Code Review server
dfabe2ca6b Merge changes into msm-4.4 2018-06-06 22:56:16 -07:00
Umang Agrawal
23240fc81c power: smb-lib: Modify usb max voltage reflected for QC 3.0 charger
Modify usb VOLTAGE_MAX property's reporting function to add support
for QC 3.0 chargers to reflect maximum VBUS voltage that can be attained
by QC3.0 chargers.

Change-Id: I45c15b4d8daab6eeec5c0bc5b0c19c4baa4ca15f
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
2018-06-07 10:23:35 +05:30
Dilip Gudlur
37aa8a69c0 ARM: dts: msm: update pcie boot option on msm8996au
Change allows client driver to do enumeration
for neutrino endpoint connected to pcie RC2.

Change-Id: I995fd0c003bfd83005ad450e57d262d283f6c59e
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
2018-06-06 18:22:55 -07:00
Linux Build Service Account
8e2dad62a0 Merge "soc: qcom: scm_qcpe: use uninterruptible habmm_socket_recv()" 2018-06-06 14:16:16 -07:00
Gerrit - the friendly Code Review server
13d21d43ed Merge changes into msm-4.4 2018-06-06 13:58:49 -07:00
Linux Build Service Account
2ebea3c619 Merge "ARM: dts: msm: Add WLAN SSR support on msm8996 vplatform" 2018-06-06 06:27:44 -07:00
Linux Build Service Account
4398e17bbf Merge "mmc: sdhci-msm: Add boot marker" 2018-06-06 06:27:38 -07:00
Yong Ding
7cecb53b50 soc: qcom: scm_qcpe: use uninterruptible habmm_socket_recv()
This is necessary to support scm call in system shutdown
procedure. With interruptible habmm_socket_recv(), it will
return immediately without blocking until the response
arrives.

Change-Id: Ia7ef95e4c6878a149ec373c8d2b5ae19a36f4125
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-06-06 03:38:46 -07:00
Guchun Chen
2ced56323b drm: msm: sde: update display status after handoff is done
Each displays's splash status should be set to false after
splash handoff is done, this will avoid potential display risk
when display output is configured again.

CRs-Fixed: 2251770
Change-Id: I62733cb1bcd52e584766349465047e466f211f82
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2018-06-06 14:10:49 +08:00
Ferry Zhou
3c06973a97 ARM: dts: msm: Add WLAN SSR support on msm8996 vplatform
Add WLAN SSR support on msm8996 vplatform for Android GVM based
on the subsystem notification virtualization.

Change-Id: I5008b09053fff5866ab26c9558cf2fccafabd670
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
2018-06-06 14:08:51 +08:00
Linux Build Service Account
51c5c162c1 Merge "ASoC: msm: Add mixer controls for module enabling" 2018-06-05 20:30:51 -07:00
Linux Build Service Account
4926f1bce0 Merge "adv7481: Support 1080p60 in EDID" 2018-06-05 11:30:47 -07:00
Linux Build Service Account
409cda61b1 Merge "ARM: dts: msm: add wifi cnss ramdump support on msm8996 vplatform" 2018-06-05 02:26:46 -07:00
Dilip Gudlur
37ccad7c20 msm: ais: translate wall clock time to userspace
Translate wall clock time in camera kernel buffers
to camera userspace application.

Change-Id: I5ad66766e9557dfe7897940b66decf7cc699787f
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
2018-06-04 23:03:55 -07:00
vkakani
528c99691b ARM: SMMU: clear page table ops of attached device
incase of error during dynamic attach,
added smmu attach device cleanup along with
free page table ops

Change-Id: Id8984d05002700014307a905fc7166702fa64a7d
Signed-off-by: vkakani <vkakani@codeaurora.org>
2018-06-04 21:43:50 -07:00
Linux Build Service Account
9e63500269 Merge "usb: core: Resume the devices on pm restore" 2018-06-04 13:49:04 -07:00
Linux Build Service Account
5ae645ca39 Merge "msm: pcie: change PCIe to suspend after suspend_noirq" 2018-06-04 13:49:02 -07:00
Suprith Malligere Shankaregowda
055f69dac6 adv7481: Support 1080p60 in EDID
Add 1080p60 support in EDID.

Change-Id: I03d3dacbf5af9fde519de66f9eb9c1ad24279d1c
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
2018-06-04 07:25:27 -07:00
Linux Build Service Account
7c542d932b Merge "qmp-phy: Power down PHY durng disconnect to avoid leakage" 2018-06-04 04:30:58 -07:00