Commit graph

606000 commits

Author SHA1 Message Date
E V Ravi
17fe44d6eb msm: ais : Lock Implementation for avoid race condition
Lock Implementation for avoid race condition leading
to out-of-bound write in "msm_vb2_queue_setup

Change-Id: I386f1709bdf3328ae0c1db44980db8453849babf
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2019-05-24 00:26:13 -07:00
Linux Build Service Account
547234bc39 Merge "arm: dts: msm: Add usbin-vadc dt property for 8996" 2019-05-23 10:38:12 -07:00
Linux Build Service Account
fe304a42ba Merge "power: qpnp-smbcharger: Add voltage now property in usb psy" 2019-05-23 00:28:00 -07:00
Linux Build Service Account
01abac7367 Merge "soc: qcom: ipc_router_mhi_xprt: Handle error condition" 2019-05-23 00:27:56 -07:00
Linux Build Service Account
d1a5c03805 Merge "ARM: dts: msm: Enable HDMI audio support for 8996" 2019-05-22 07:31:16 -07:00
Linux Build Service Account
f5704ee3fc Merge "defconfig: Enable REGMAP_ALLOW_WRITE_DEBUGFS" 2019-05-22 07:31:14 -07:00
Kavya Nunna
726ccfec94 power: qpnp-smbcharger: Add voltage now property in usb psy
Add VOLTAGE_NOW power supply property to expose the USB voltage.

Change-Id: I3041aafaf365c205e53451a5d4ee79dcfe6b78bf
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2019-05-22 14:56:32 +05:30
Linux Build Service Account
c77bbe6851 Merge "msm: ais: handle the error value returned during get clock" 2019-05-21 23:21:32 -07:00
E V Ravi
765d3befd4 msm: ais: handle the error value returned during get clock
currently only NULL pointer check is used to validate the return
value from clk_get, this change to handle all the failures.
This snapshot is taken from auto-kernel.lnx.4.4.c1
ported it from auto-kernel.lnx.4.4.c1 to 4.4

Change-Id: I275cb4717c675baf528e05c50058f2c6b0025011
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2019-05-21 05:36:20 -07:00
Kavya Nunna
716a46317a power: qpnp-smbcharger: Add support for float charger detection
PMI8996 charger does not detect FLOAT adapter. To support it,
FLOAT detection is done by the USB driver and notified to PMIC
by reporting  -ETIMEDOUT through the CURRENT_MAX power-supply
property. Charger then configures the charge current to 1500mA.

Change-Id: I6abd4668b41988d98465f00402aa2be558054cdd
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2019-05-21 16:27:43 +05:30
Linux Build Service Account
f228ed9095 Merge "ARM: dts: msm: Update avb flag and partition names for auto" 2019-05-21 03:35:36 -07:00
Kavya Nunna
fde6bcd6f6 arm: dts: msm: Add usbin-vadc dt property for 8996
Add usbin-vadc dt property for reading the usbin vadc voltage.

Change-Id: If729e53a1c34ac173c728fc4d2435d6a5e60206d
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2019-05-21 15:35:26 +05:30
Linux Build Service Account
f8572fa192 Merge "ASoC: msm: Update codec name in HDMI dai link" 2019-05-20 16:49:49 -07:00
Linux Build Service Account
64c7fea7a6 Merge "serial: msm_serial_hs: Align to HW assisted flow control support" 2019-05-20 09:12:57 -07:00
Mitul Golani
095ed32dd7 serial: msm_serial_hs: Align to HW assisted flow control support
If client enables HW AUTOCTS mode then set UPSTAT_AUTOCTS,otherwise
serial core disables TX fully at the framework layer and
no communication happens.

Signed-off-by: Mitul Golani <mgolani@codeaurora.org>
Change-Id: I13d6048fc2aeacd2f0078fc38f43e07cfd5a5850
2019-05-20 02:51:25 -07:00
Linux Build Service Account
14ff0dc12e Merge "ARM: dts: msm: add support for apq8096pro CDP" 2019-05-20 00:44:10 -07:00
Rama Krishna Phani A
79e903bcd9 soc: qcom: ipc_router_mhi_xprt: Handle error condition
Handle error condition and clean up resources in case of
failure with mhi driver.

Change-Id: I6de1ebe9063bc0cf4492a8334f242bf34e352e70
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2019-05-20 10:21:54 +05:30
Linux Build Service Account
4efd54ad69 Merge "pwm: pwm-qpnp: Fix the order of configuring PWM value" 2019-05-17 06:09:27 -07:00
Linux Build Service Account
af0d3ed849 Merge "msm: camera: jpegdma: Added missing lock for dqbuf and streamon" 2019-05-16 23:53:24 -07:00
Linux Build Service Account
cd1e9004dd Merge "defconfig: msm8996: Enable PAN emulation" 2019-05-16 09:29:55 -07:00
Linux Build Service Account
a4b99d2c64 Merge "defconfig: msm8996: Disable DEVPORT" 2019-05-16 09:29:53 -07:00
Vijay kumar Tumati
b79e25fe58 msm: camera : Lock Implementation for avoid race condition
Lock Implementation for avoid race condition leading
to out-of-bound write in "msm_vb2_queue_setup

CRs-Fixed: 2362627
Change-Id: I7f7420c7437b9ac2f215929a8614b0846e890c98
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2019-05-15 22:04:10 -07:00
Anirudh Ghayal
c9fa4db90a pwm: pwm-qpnp: Fix the order of configuring PWM value
The hardware expects the PWM MSB value to be written
before LSB to avoid glitches in the output. Fix this.

Change-Id: I048bdbd0c096a6d03501bdd5b1d2d4bb50d45dd7
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2019-05-15 09:03:34 +05:30
Rahul Sharma
592adc4849 drm/msm: ensure display driver probe completion
This change is done so that in non display platform
indefinite wait is not introduced, however for platforms where
display driver is probed asynchronously we still
wait for completion.

Change-Id: I14932ee2c0e52330975529ca0be34b6e2521d05e
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-05-13 22:09:04 -07:00
Linux Build Service Account
77c04577d9 Merge "msm: camera_v2: handle the error value returned during get clock" 2019-05-13 07:29:42 -07:00
Naman Padhiar
5e14415719 icnss: Add check on msa region
When icnss receive server arrive it send wlfw_msa_mem_info_send_sync_msg
QMI request to firmware and in response expect range of addresses and size
to be mapped. Add condition to check whether addresses in response falls
under valid range otherwise it asserts.

Change-Id: I9a8542cb6c3b3cefe112d1f08a76dd2eadf68d2f
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2019-05-12 22:37:36 -07:00
Sumalatha Malothu
6183ceb8d1 msm: camera_v2: handle the error value returned during get clock
currently only NULL pointer check is used to validate the return
value from clk_get, this change to handle all the failures.
This snapshot is taken from msm-4.9
Ported it from 4.9 to 4.4

Change-Id: Icd8b7e33d0f235a7c5dde2307972a594908e6a60
Signed-off-by: Sumalatha Malothu <smalot@codeaurora.org>
2019-05-13 10:46:43 +05:30
Venkata Rao Kakani
8b5d9f6f8e ARM: dts: msm: add support for apq8096pro CDP
Add board-id support for APQ8096pro CDP in device tree.

Change-Id: I4d233ed465f0b59a695d9ba04a97571c771987b8
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2019-05-10 16:14:50 +05:30
Soumya Managoli
59dda5e0dc ASoC: msm: Update codec name in HDMI dai link
Change HDMI codec name in dai link to
align with the hdmi codec driver name.

Change-Id: I77fa781bb5149a21d7f7aadd819dc0c0296ac4f2
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2019-05-10 02:03:18 -07:00
Soumya Managoli
f32a4e2dec ARM: dts: msm: Enable HDMI audio support for 8996
Add missing entries in sound node
to enable HDMI audio.

Change-Id: Id748a06a28237c051f1410e9ae4d4492c4b038f1
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2019-05-09 05:32:14 -07:00
vagdhan kumar kanukurthi
c44c78fab1 ARM: dts: msm: Update avb flag and partition names for auto
Update vendor avb flag and remove recovery partition from vbmeta
partition list as auto does not support recovery partition.

Change-Id: Idc6c5e2c2eb2cccd32223e77404fb06ef9e02908
Signed-off-by: Vagdhan Kanukurthi <vagdhank@codeaurora.org>
2019-05-09 13:43:54 +05:30
Linux Build Service Account
22dc337a69 Merge "msm: mdss: mdp: mixer allocation for pluggable primary display" 2019-05-08 18:49:44 -07:00
Linux Build Service Account
830b7b50b3 Merge "msm: kgsl: Fix race condition while making page as dirty" 2019-05-08 18:49:43 -07:00
Linux Build Service Account
cd6e1cd22b Merge "diag: Validate command length against size of command structure" 2019-05-08 18:49:42 -07:00
Linux Build Service Account
7939ca71f8 Merge "misc: ksbridge: Add support for sending uevent with pid/vid" 2019-05-08 18:49:41 -07:00
Linux Build Service Account
a4b2d7442d Merge "usb: misc: lvstest: allow specifying port for compliance mode" 2019-05-08 18:49:38 -07:00
Linux Build Service Account
0052d71715 Merge "usb: misc: lvstest: add entry to place port in compliance mode" 2019-05-08 18:49:38 -07:00
Linux Build Service Account
64baae1cd9 Merge "usb: xhci: Support enabling of compliance mode for xhci 1.1" 2019-05-08 18:49:37 -07:00
Linux Build Service Account
5ee084c812 Merge "drm/msm/sde: fix null pointer dereference" 2019-05-08 03:00:03 -07:00
Linux Build Service Account
40adef7ded Merge "Merge android-4.4.179 (aab9adb) into msm-4.4" 2019-05-08 03:00:02 -07:00
VijayaKumar T M
8e638383c1 msm: camera: jpegdma: Added missing lock for dqbuf and streamon
Added missing lock to avoid race conditon for dqbuf and
streamon

CRs-Fixed: 2376566
Change-Id: I1c0ef9014914a9892c4d443600618c52d0aeebfa
Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
2019-05-08 02:29:50 -07:00
Manoj Prabhu B
061ce1d939 diag: Validate command length against size of command structure
While processing a packet containing command request, buffer size
need to be checked against size of the command structures that is
being parsed to prevent possible out of bound access.

CRs-Fixed: 2432633
Change-Id: I048bdbd0c096a6d03501bdd5b1d2d4bb50d45dd6
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2019-05-08 14:12:28 +05:30
Vijayavardhan Vennapusa
2b163b082a misc: ksbridge: Add support for sending uevent with pid/vid
Add required support in ksbridge driver to send uevent with vendor id
and product id details.

Change-Id: I22974dfa63665e6ddcbda2f7d11c68f716c1c760
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2019-05-08 11:32:46 +05:30
Rajesh Kemisetti
1d02b55727 msm: kgsl: Fix race condition while making page as dirty
set_page_dirty() is racy if the caller has no
reference against page->mapping->host, and if
the page is unlocked. This is because another
CPU could truncate the page off the mapping and
then free the mapping.

Use set_page_dirty_lock() to avoid this race condition.

Change-Id: I517fb9aee66560618c7676b311368f7a7498011f
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2019-05-08 10:05:28 +05:30
Rahul Sharma
adebb0daf7 drm/msm/sde: fix null pointer dereference
This change is done to fix null pointer dereference
in sde_core_irq_preinstall().

Change-Id: I448e275e2ce5708738651d1cf7f66329bcf47451
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-05-07 21:05:30 -07:00
Linux Build Service Account
589a44d37a Merge "icnss: Add a flag to indicate PDR" 2019-05-07 16:55:13 -07:00
Jack Pham
d5f5ce0570 usb: misc: lvstest: allow specifying port for compliance mode
In some cases when connecting to a test fixture the host port
might not have triggered a connect change. As a result, dev->portnum
does not get updated and an attempt to enable the port for
compliance mode will pass 0 as the port number to the HCD, which is
invalid. Instead allow the user to pass an explicit port number
from the command line to specify the port to act on. Otherwise, if
omitted, the behavior is the same as before.

Change-Id: I2e323c9016915b2d535ac227fd6f3d5846aa4026
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-05-07 20:09:42 +05:30
Jack Pham
210c76dde3 usb: misc: lvstest: add entry to place port in compliance mode
Add support for the SuperSpeed Link Layer test case TD.7.34
which requires the operator to place the port into compliance
mode, and to subsequently bring it out via reset. Historically
according to the (now deprecated) USB 3.0 specification a
SuperSpeed host downstream port would automatically transition
to Compliance mode from the Polling state if LFPS polling times
out. However the language in USB 3.1 as well as xHCI 1.1 states
it may be required to explicitly enable this transition. For
such hosts this is done by sending a SET_FEATURE(PORT_LINK_STATE)
with the state set to Compliance to the root hub port.

Similar to the other supported commands, to do this via sysfs:

     echo  > /sys/bus/usb/devices/2-0\:1.0/enable_compliance

According to xHCI 1.1 section 4.19.1.2.4.1, this enables the
transition to compliance mode upon LFPS timeout. Note that this
can only be issued when the port is in disconnected state. And
in order to disable this behavior on subsequent transitions, a
warm reset should be issued. So add another entry to do that:

     echo  > /sys/bus/usb/devices/2-0\:1.0/warm_reset

In general these attributes can also be useful for other USB
SuperSpeed compliance tests such as electrical and eye diagram
testing which require CPn patterns to be transmitted.

Change-Id: I550a4064f90bc640f80e46c7251bcdbc0797c354
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-05-07 20:06:55 +05:30
Jack Pham
b989396a44 usb: xhci: Support enabling of compliance mode for xhci 1.1
To perform SuperSpeed compliance testing the port should first
be placed into compliance mode. For xHCI 1.0 and prior this
transition happens automatically when the port is in Training
and encounters an LFPS timeout. Thus running compliance tests
against a test appliance may simply just work by simply plugging
in to the downstream port.

However starting with xHCI 1.1 the transition from Polling.LFPS
to compliance mode may be disabled by default and needs to be
explicitly enabled by writing to the PLS field of the PORTSC
register, which sets an internal 'CTE' (Compliance Transition
Enabled) flag so that the port will perform the transition the
next time it encounters LFPS timeout. Whether this is disabled or
not is determined by the 'CTC' (Compliance Transition Capability)
bit in the HCCPARAMS2 capability register.

In order to allow a test operator to change this if needed, allow
a test driver (such as drivers/usb/misc/lvstest.c) to send a
SET_FEATURE(PORT_LINK_STATE) control message to the root hub to
update the link state prior to connecting to the port. Subsequently,
placing the port in warm reset would then disable the flag.

Change-Id: I798b978f05a79b52648b650ec8111a065d7e369e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-05-07 19:58:03 +05:30
Linux Build Service Account
57cc803c86 Merge "defconfig: msm: Enable USB3 Link Layer test driver for 8996 Auto" 2019-05-06 22:14:56 -07:00