Commit graph

593923 commits

Author SHA1 Message Date
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
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
Linux Build Service Account
1c078745a0 Merge "Revert "ANDROID: sched/tune: Initialize raw_spin_lock in boosted_groups"" 2017-09-22 17:26:53 -07:00
Linux Build Service Account
61eb33bc00 Merge "serial: msm_serial_hs: Keep Rx and Tx path clean while going inactive" 2017-09-22 17:26:51 -07:00
Linux Build Service Account
21be58daa3 Merge "ARM: dts: msm: reserve memory for early-audio on msm8996" 2017-09-22 17:26:50 -07:00
Linux Build Service Account
2a4db076c7 Merge "arm/arm64: Define backport flag for save_stack_trace_tsk()" 2017-09-22 17:26:50 -07:00
Linux Build Service Account
374db4f744 Merge "drm/msm: Add save/restore functions for perfcounters" 2017-09-22 17:26:46 -07:00
Linux Build Service Account
bf0fbeead5 Merge "power: qpnp-fg-gen3: synchronize ESR extraction control configuration" 2017-09-22 17:26:45 -07:00
Linux Build Service Account
751d87898b Merge "vidc: Enable skip output buffers for video encoder" 2017-09-22 17:26:44 -07:00
Linux Build Service Account
6d73a0bbe1 Merge "udpv6: Fix the checksum computation when HW checksum does not apply" 2017-09-22 17:26:43 -07:00
Linux Build Service Account
3e07e9cdb5 Merge "ASoC: msm: qdsp6v2: change to no-wait command for RTIC event" 2017-09-22 17:26:42 -07:00
Sujeev Dias
554cfbe86c mhi: core: move mhi_states_transition_str out of stack
To prevent un-initialized address returning from MHI
state transition lookup table, move mhi_states_transition_str
array out of stack

CRs-Fixed: 2111049
Change-Id: Ife5f907a711cc0c615161f2b2a677275d6773686
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-09-22 14:58:55 -07:00
Yue Ma
7f6f914d71 cnss2: Set debug state when using debugfs dev_boot node
When using debugfs dev_boot node to trigger firmware download,
debug state should be set as well so that subsequence shutdown
and powerup can be handled correctly.

Change-Id: Id85d28dca104f8938d78655d682a0a7d1491c04c
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-09-22 12:57:50 -07:00
Linux Build Service Account
18dd1a7105 Merge "msm: camera: sensor: Add OIS read functionality" 2017-09-22 09:13:45 -07:00
Linux Build Service Account
42326e9777 Merge "ion: fix the return value of shrinkers" 2017-09-22 09:13:44 -07:00
Linux Build Service Account
cfe37b1eb4 Merge "arm64: stacktrace: avoid listing stacktrace functions in stacktrace" 2017-09-22 09:13:42 -07:00
Linux Build Service Account
b92301abd0 Merge "msm: mdss: Fix potential race condition in rotator" 2017-09-22 09:13:41 -07:00
Linux Build Service Account
ba64f1b64f Merge "ASoC: msm: qdsp6v2: Fix dangling pointer access" 2017-09-22 09:13:40 -07:00
Vikram Mulukutla
2bbf3a762a Revert "ANDROID: sched/tune: Initialize raw_spin_lock in boosted_groups"
This reverts commit c5616f2f874faa20b59b116177b99bf3948586df.

If we re-init the per-cpu boostgroup spinlock every time that
we add a new boosted cgroup, we can easily wipe out (reinit)
a spinlock struct while in a critical section. We should only
be setting up the per-cpu boostgroup data, and the spin_lock
initialization need only happen once - which we're already
doing in a postcore_initcall.

For example:

     -------- CPU 0 --------   | -------- CPU1 --------
cgroupX boost group added      |
schedtune_enqueue_task         |
  acquires(bg->lock)           | cgroupY boost group added
                               |  for_each_cpu()
                               |    raw_spin_lock_init(bg->lock)
  releases(bg->lock)           |
      BUG (already unlocked)   |
			       |

This results in the following BUG from the debug spinlock code:
	BUG: spinlock already unlocked on CPU#5, rcuop/6/68

CRs-fixed: 2113062
Change-Id: I1cd780d9ba5801cf99bfe46504b18a88e45f17a8
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2017-09-22 04:24:28 -07:00
Guchun Chen
8c9aaddd85 ARM: dts: msm: disable secondary adv7533 on msm8996 lite board
Msm8996 adp lite board has two displays, native HDMI display and one
DSI-HDMI display through ADV7533 bridge chip. So only one ADV7533
instance is needed here. And at the meanwhile, total sde_kms components
need to match the configuration, otherwise, display driver probe will be
skipped due to this mismatch.

Change-Id: If596a64a9e47416e0810039914a958cae61c7e3e
CRs-Fixed: 2113147
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2017-09-22 17:53:56 +08:00
Xu Han
414a690797 msm: camera: sensor: Add OIS read functionality
Adding capability to read OIS data, provided in the driver
register settings.

CRs-Fixed: 2114654
Change-Id: Ie10b55f597a4daa29267c6d4333ce9d9c7702d63
Signed-off-by: Xu Han <hanxu@codeaurora.org>
2017-09-21 23:35:03 -07:00
Shiju Mathew
8397353755 vidc: Enable skip output buffers for video encoder
Added feature to configure video h/w to send empty output buffer
for skipped frame due to rate control.

Change-Id: Id47344c3bae216fec6384ff205bcb658ec27cb06
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-09-21 20:45:02 -07:00
Cong Tang
516bd75a2a ASoc: msm: Support primary TDM interface
Support primary TDM interface dai link and export kcontrols to update
primary TDM interface slot configuration.

CRs-fixed: 2095930
Change-Id: I693b99f295f6476c96d681e10459842c0011467f
Signed-off-by: Cong Tang <congt@codeaurora.org>
2017-09-21 20:10:27 -07:00
Yue Ma
08b5a0333b cnss2: Return proper error code for nonsupported devices
Platform driver only forces FW assert for supported devices.
Return proper error code for nonsupported devices so that WLAN
host driver can handle properly.

Change-Id: Iaf88f64564b14425404404db6a7789a7913db74f
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-09-21 14:13:40 -07:00
Naveen Rawat
f396bc3578 msm: Add CLD80211_ATTR_META_DATA vendor attribute
Add CLD80211_ATTR_META_DATA vendor attribute, which will be used by
userspace RTT application to send meta data to wlan driver allowing
it to peek into RTT request message without opening up complete
definition of RTT message.

Change-Id: If2f8253b59c6860fbaecab05f1b76f11da1ddb6f
CRs-Fixed: 2114181
Signed-off-by: Naveen Rawat <naveenrawat@codeaurora.org>
2017-09-21 11:33:14 -07:00
Yue Ma
72281a8854 defconfig: msm-auto: Enable CNSS2 platform driver
Use CNSS2 platform driver instead of CNSS in AUTO platforms.

Change-Id: I0b5df067d05ceafd759b3cefab1b506a659af50e
CRs-fixed: 2071634
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-09-21 10:00:45 -07:00
Govind Singh
7235e034df ath10k: Vote for hardware resources for WCN3990
During recovery, there are cases where in WLAN driver running on
APPS can access CE register causing exceptions because of
hardware in reset state. Fix the issue by not resetting the
hardware in WLAN firmware during recovery but halt the CE and MAC
and reset the hardware only when reinitialization starts. For
this to work, wcn3990 ath10k driver needs to keep the clock and
regulator votes so that WLAN hardware will not go into weird
state because of not resetting it but cutting the resources.

Change-Id: I765fd4aaa2fea6f41f4760564b8d1cb8c3d9651b
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-09-21 06:44:55 -07:00
Govind Singh
2b0e054796 ARM: dts: msm: update wcn3990 wlan device node for APQ8098
Add clock and regulator nodes for WCN3990.
During recovery, there are cases where in WLAN driver running on
APPS can access CE register causing exceptions because of
hardware in reset state. Fix the issue by not resetting the
hardware in WLAN firmware during recovery but halt the CE and MAC
and reset the hardware only when reinitialization starts. For
this to work, wcn3990 ath10k driver needs to keep the clock and
regulator votes so that WLAN hardware will not go into weird
state because of not resetting it but cutting the resources.

Change-Id: Iaaa793956bed687e4d76acda93f7fa467773f013
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-09-21 06:43:21 -07:00