Commit graph

594013 commits

Author SHA1 Message Date
Varun Balaraj
0a1c253171 ASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes
Change the downmix/pan_scale control data type from integer to bytes
to make it compatible across different archs.

Change-Id: I9282673dc1e124185d7c545206bba31966b803dc
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
2017-09-28 11:41:04 +05:30
Linux Build Service Account
b33f617917 Merge "msm: Add CLD80211_ATTR_META_DATA vendor attribute" 2017-09-27 20:05:49 -07:00
Linux Build Service Account
f468a5a27d Merge "power: smb-lib: Disable USB IRQs during high duty cycle" 2017-09-27 20:05:47 -07:00
Linux Build Service Account
dc908f16a5 Merge "soc: qcom: pil: Avoid possible buffer overflow" 2017-09-27 20:05:46 -07:00
Linux Build Service Account
653e0157e3 Merge "pwm: pwm-qpnp: Fix uninitialized variable use" 2017-09-27 20:05:45 -07:00
Mohammed Javid
43a3a58e49 msm:ipa: Fix to slab out of bounds access
Accessing of incorrect structure pointer is causing
slab-out-of-bounds access, fixed issue by accessing
the correct structure pointer.

Change-Id: I23d3c9afbbabba88be92ef5cae83c4708a211e88
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-09-27 05:20:24 -07:00
Kaushal Kumar
dc81965316 soc: qcom: pil: Avoid possible buffer overflow
MBA image size comparison check is currently being
done with a signed count whose value can possibly be
negative. If count value is negative then comparison
will always succeed and invoke memcpy with incorrect
value of count leading to buffer overflow. Fix this
by not using signed comparison.

Change-Id: Id2d0cafae01f940f36cfd559d4656fc0f022d6a5
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2017-09-27 04:41:48 -07:00
Ankit Jain
f411e6c386 mmc: sdhci-msm: flush mmc detect work asynchronously.
Block device should be available before mounting of root
device. In some cases block device is not available at the
time of root device mounting because mmc detect work is not
completed by that time which is causing mount failure. This
change flush mmc detect work asynchronously after device probe
and before mounting of root device, async_synchronize_full
will make sure all asynchronous function calls have been done.

Change-Id: I22be6c4b528c952fd73ea5d5e8ba533ce7165f86
Signed-off-by: Ankit Jain <jankit@codeaurora.org>
2017-09-27 02:08:00 -07:00
Vatsal Bucha
59996159bf ASoC: codecs: Fix pop noise in HPH plus LO4 concurrent usecase
Pop sound happens after start playback on HPH when
ultrasound playback on LO4 is enabled.
This is because CnP is sequence dependent and enabling
design blocks in specified order is causing minimum CnP.

CRs-Fixed: 2100346
Change-Id: If10f9013cc1a2aa61fe9c719d3190f2df0b00950
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-09-27 14:04:56 +05:30
Archana Sriram
8662023651 msm: kgsl: Fix calculation of size in _load_regfile
During firmware load, there could be data over reads
due to calculation of lm_size and lm_sequence from
block and block_size. Added bounds checking to prevent
this and improved the size calculation.

CRs-Fixed: 2107981
Change-Id: Ib4283951b0d6c8fb699af1f85e657981ad4c0318
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2017-09-26 23:12:04 -07:00
Ajay Agarwal
30dd41caee ARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP
This change adds device tree flag to allow system suspend
on automotive platform with USB devices connected that do
not support runtime suspend.

Change-Id: I3ddda5052c866e16c46e5a46255acc28ab6f9363
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-09-27 11:23:58 +05:30
Vatsal Bucha
5cca96ffa7 ARM: dts: msm: Add AFE clock version for primary auxpcm
Kernel crash is observed when trying to access component
because wcd_dsp_ctl is deregistered. This is due to failure in
soundcard registration. The failure occurs due to msm
unable to set aanc version. Update afe clock version for
primary auxpcm resolves the issue.

CRs-Fixed: 2113187
Change-Id: I8bb3c9a6946f1c1af88a62d7ee154b6e7ff904f4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-09-27 11:16:42 +05:30
Ajay Agarwal
c97f5a36d5 usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM
DWC3 driver uses wakeup_source and allows pm_suspend only after
entering low power mode as part of runtime suspend. This prevents
PM suspend in host mode if connected device's driver doesn't
support runtime or selective suspend.
Add support in driver where user can specify using dtsi attribute
to not use wakeup source in host mode. It will allow system to enter
deep sleep or pm_suspend irrespective of runtime PM state of XHCI.
On high level below are the changes in default behavior:
 -Do not use wakeup_source for DWC3 when operating in host mode.
 -For host mode, devices will suspend upon PM suspend and resumed
  after PM resume.

Change-Id: Ia1d450e6dd99e094e48caf9723a355b7870b54dd
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-09-27 11:13:37 +05:30
Linux Build Service Account
22b400edb3 Merge "scsi: ufshcd: Flush exception event before suspend" 2017-09-26 21:50:09 -07:00
Linux Build Service Account
ac9cb81445 Merge "mdss: mdp: Validate null commit for secure display" 2017-09-26 21:49:58 -07:00
Linux Build Service Account
7498a748e3 Merge "msm: kgsl: Don't read stale crashdumper data" 2017-09-26 21:49:57 -07:00
Linux Build Service Account
a77b833858 Merge "ath10k: Fix unwanted probe requests sent during p2p scan" 2017-09-26 21:49:55 -07:00
Linux Build Service Account
6696828627 Merge "ARM: dts: msm: disable secondary adv7533 on msm8996 lite board" 2017-09-26 21:49:53 -07:00
Linux Build Service Account
8abd424c59 Merge "battery: reduce SMB only for taper stepper" 2017-09-26 21:49:51 -07:00
Linux Build Service Account
07c0eb6c3b Merge "drm/msm: add HDCP_VERSION property for connector" 2017-09-26 21:49:50 -07:00
Linux Build Service Account
151d9db74b Merge "qseecom: check return value of __qseecom_process_reentrancy" 2017-09-26 21:49:49 -07:00
Linux Build Service Account
c31369585f Merge "ARM: dts: msm: Add laser LED support on MSM8998 MTP" 2017-09-26 21:49:48 -07:00
Ankit Jain
ce81b24589 mmc: core: add mmc flush detect work.
Block device should be available before mounting of
root device. In some cases block device is not available
at the time of root device mounting because mmc detect
work is not completed by that time which is causing mount
failure. To fix this, flush mmc detect work after device
probe completion.

Change-Id: I785a1e01a691652cfdb5a82acee2475e23fe3766
Signed-off-by: Ankit Jain <jankit@codeaurora.org>
2017-09-26 21:35:05 -07:00
Fenglin Wu
8b42673d20 pwm: pwm-qpnp: Fix uninitialized variable use
Fix uninitialized variable use which would cause unexpected return
value.

CRs-Fixed: 2070945
Change-Id: I874ec28904149061246fb4c2b24444a4c33e0116
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2017-09-27 12:31:08 +08:00
Sriharsha Allenki
8b53c3c3d6 platform: msm: Fix USB device does not enumerate in SS mode
The max speed for the USB device is high speed. So
the device is always enumerated in high speed indpendent
of the connection. Fix this by setting the EXTCON_USB_SPEED
to 1 which in turn sets the max speed as super speed.

CRs-Fixed: 2108100
Change-Id: I8f313cc3ee015a1340ab78650e17334ca85ddd27
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-09-26 12:09:55 -07:00
Sriharsha Allenki
3ef7befadd platform: msm: Check USB ID state on probe
If the device is booted up with OTG cable connected,
the device does not switch to host mode. The trigger
is lost because the irqs are enabled at a later time.
Fix this by checking the ID state during probe.

CRs-Fixed: 2106351
Change-Id: I742d0839832219e757348e102252f97d95a8335b
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-09-26 12:09:44 -07:00
Rakesh Pillai
75ab52cc23 ath10k: Fix unwanted probe requests sent during p2p scan
During p2p find unwanted probe requests with broadcast SSID is
sent along with the probe requests with p2p wildcard SSID.

The addition of survey report flag in scan flags initiates an
active scan along with the p2p scan, due to which we see probe
requests with broadcast SSID along with the probe requests having
p2p wildcard SSID.

Fix the flags sent during scan command for p2p scan.

CRs-Fixed: 2093805
Change-Id: I7c2a1502ef86bc5151e8c86f4a89f073e75a925d
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-09-25 23:42:39 -07:00
Rakesh Pillai
8e65f8799f ath10k: Fix p2p_listen for wcn3990
p2p_listen not working due to inncorrect scan flags
passed to firmware.

Disable the fitlering out of probe request flag in
scan flag during remain on channel in p2p listen.

CRs-Fixed: 2095628
Change-Id: Ie39222c487160ba4001771fc8e1c6f6f161dfb65
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-09-25 23:41:37 -07:00
Linux Build Service Account
b56464c7cb Merge "drm/msm: fix zero device count HDCP repeater test cases" 2017-09-25 20:52:54 -07:00
Linux Build Service Account
d9918fae67 Merge "ath10k: skip sending default IE in scan request added by firmware" 2017-09-25 20:52:52 -07:00
Linux Build Service Account
f6a77ac2d8 Merge "battery: wait 500mS between steps for taper stepper" 2017-09-25 20:52:51 -07:00
Linux Build Service Account
46c0ea4e45 Merge "smb-lib: allow reading vbus without presence" 2017-09-25 20:52:51 -07:00
Abhinav Kumar
c6535223b7 drm/msm: add HDCP_VERSION property for connector
Expose a HDCP_VERSION property for the connector.
This property is used by the userspace to decide the
proper handling of secure streams based on HDCP version
of the sink.

This also guarantees that sinks do not receive
secure content higher than their capability.

Change-Id: Ia4ada2f26a5cde088b24c8792c10c9f9097602b1
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-09-25 19:42:30 -07:00
Abhijeet Dharmapurikar
eea89ab36f step-chg-jeita: run only when charging
Currently the code ends up holding a wakelock even while discharging.
There is no need to hold wakelock or handle stepcharging/jeita
situations while discharging.

Change-Id: I0edfd16cef88ec45b0f0ebb80533b62c6e775116
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-09-25 18:12:29 -07:00
Zhen Kong
ec74a9da86 qseecom: check return value of __qseecom_process_reentrancy
make change to check return value of __qseecom_process_reentrancy,
and modify error processing.

Change-Id: I6a37de79f6c6b4245b9654ea9724b51e62b8e7a2
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-09-25 12:50:47 -07:00
Abhinav Kumar
2ee560a955 drm/msm: fix zero device count HDCP repeater test cases
Fix the handling of HDCP repeaters to mark part II
of the authentication as failure if they do not have
any devices connected to them.

Change-Id: I6b21ed2ce9a280f7e200404b05d111508a6d3dd8
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-09-25 09:42:36 -07:00
Sayali Lokhande
e6b1f12020 scsi: ufshcd: Flush exception event before suspend
Exception event can be raised by the device when system
suspend is in progress. This will result in unclocked
register access in exception event handler as clocks will
be turned off during suspend. This change makes sure to flush
exception event handler work in suspend before disabling
clocks to avoid unclocked register access issue.

Change-Id: I5a089a0387790a12f4cc3213c75e9677467a2a07
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-09-25 12:00:12 +05:30
Lynus Vaz
1e450489ff msm: kgsl: Don't read stale crashdumper data
After the crashdumper runs once, and the user sets the
snapshot_crashdumper sysfs node to 0, it is possible that stale data
is saved off into the snapshot. Check the value of the sysfs node at
the appropriate place to force a re-read of the data through the
legacy path.

Change-Id: Icf27c39b68d786003c33fd0eb22bd3e8b9a036be
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
2017-09-25 11:12:12 +05:30
Linux Build Service Account
fa33f6bd9a Merge "SoC: msm: change the MAX value of "App Type Config" kcontrol" 2017-09-24 19:54:04 -07:00
Linux Build Service Account
b95d667366 Merge "ALSA: info: Protect list access of new entry" 2017-09-24 11:54:02 -07:00
Linux Build Service Account
fd84661ff9 Merge "ASoc: msm: Support primary TDM interface" 2017-09-24 11:54:01 -07:00
Linux Build Service Account
c9a659fda7 Merge "drm:msm:sde: enable sde client customization" 2017-09-24 11:54:00 -07:00
Linux Build Service Account
c1bb4291db Merge "ARM: dts: msm: Override GPU speed bin 2 for MSM8996Pro" 2017-09-24 04:37:31 -07:00
Linux Build Service Account
b624f7fdc6 Merge "ARM: dts: msm: update PCIe WAKE for msm8998 to be pull-up" 2017-09-24 04:37:30 -07:00
Animesh Kishore
315de9a16b mdss: mdp: Validate null commit for secure display
Secure display entry/exit should be accompanied
by null commit in video mode to make sure there is
no non secure access.

Change-Id: I7928a2465de9c46f69e963977931f7a6618f01fb
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
2017-09-24 11:53:33 +05:30
Linux Build Service Account
f76f194117 Merge "msm: ais: Instead of read_lock use read_lock_irqsave" 2017-09-23 21:05:45 -07:00
Linux Build Service Account
eb1237204c Merge "msm: camera: Add laser LED support for depth sensor" 2017-09-23 11:51:00 -07:00
Linux Build Service Account
f3e5579307 Merge "cnss2: Set debug state when using debugfs dev_boot node" 2017-09-22 17:26:55 -07:00
Linux Build Service Account
242aa79d68 Merge "mhi: core: move mhi_states_transition_str out of stack" 2017-09-22 17:26:54 -07:00
Linux Build Service Account
51328a6128 Merge "cnss2: Return proper error code for nonsupported devices" 2017-09-22 17:26:53 -07:00