Commit graph

604320 commits

Author SHA1 Message Date
Jack Pham
c4085b6ce2 usb: pd: Don't reject sink request based on max current
A fixed sink PDO request includes both operating current and
max current. Although the max current requested may be greater
than the available source advertisement, as per spec only the
operating current request needs to be considered. The sink will
likely have also set the Capability Mismatch bit as well. Hence,
don't reject the request otherwise the sink will keep
re-requesting and never enter a contract.

Change-Id: Ia15e2e17abe43f2bcbc1fe7011b70ab0e0f5d9eb
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-01-18 09:36:07 -08:00
Linux Build Service Account
2215f1c582 Merge "msm-camera: add support for cx_ipeak" 2019-01-17 23:33:47 -08:00
Linux Build Service Account
8e3c05cbeb Merge "soc: qcom: hab: adapt to the new get_user_pages()" 2019-01-17 23:33:46 -08:00
Linux Build Service Account
174c638dec Merge "msm: camera: isp: Fix invalid type conversion" 2019-01-17 14:03:35 -08:00
Linux Build Service Account
becfa3ce3a Merge "defconfig: Enable and disable few configs for MSM8996" 2019-01-17 14:03:34 -08:00
Linux Build Service Account
df68b03a48 Merge "ARM: dts: msm: msm8996-mtp bringup changes" 2019-01-17 14:03:33 -08:00
Linux Build Service Account
81f1a27fb8 Merge "arm: dts: msm: add msm8996-auto.dtsi" 2019-01-17 14:03:30 -08:00
Srikanth Uyyala
089953ea5b msm-camera: add support for cx_ipeak
camera drivers need to vote when moving to turbo clock
and unvote when moving out of turbo. cx_ipeak driver
then makes sure to limit the current drawn from cx
based on this vote. This dirver provides common utility
functions to track vote and unvote.

Change-Id: I34d860003518924ab3233d8de24ccdb11f513f7e
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
2019-01-17 17:04:39 +05:30
Swetha Chikkaboraiah
6cf7c009ef ARM: dts: msm: msm8996-mtp bringup changes
Changes done to bringup msm8996 on 4.4 kernel.

Change-Id: Ie0629dddeed2ef861e3b15f47015a7a8fb482ba7
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2019-01-17 00:59:37 -08:00
Swetha Chikkaboraiah
5ea378cb20 defconfig: Enable and disable few configs for MSM8996
This change enables and disables below list of configs to
address the MSM8996-MTP bootup issue on 4.4 kernel.

Enable configs:
CONFIG_QUOTA
CONFIG_QUOTA_NETLINK_INTERFACE
CONFIG_QFMT_V2
Disable config
CONFIG_PRINT_QUOTA_WARNING

Change-Id: Iccd69be08842926e00c3d24321ec51683fabd406
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2019-01-17 00:57:48 -08:00
Linux Build Service Account
b8b0a039da Merge "msm: drm: add hibernation support" 2019-01-16 21:41:55 -08:00
Linux Build Service Account
1562e8091a Merge "fbdev: msm: validate mdp clk rate and cwb for msm8996" 2019-01-16 21:41:53 -08:00
Linux Build Service Account
7d6dcc39e4 Merge "cnss2: USB:skip ce config for USB transport" 2019-01-16 21:41:52 -08:00
Amar Singhal
fdf0731fd5 msm: wlan: Remove DSRC channels for US
DSRC channels are not required when SRD channels are enabled. Therefore
remove them.

Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
Change-Id: I1b2937c45d43d31c5689c7c4d134fcfb9a265b0e
CRs-Fixed: 2174850
2019-01-16 16:42:03 +05:30
Amar Singhal
7cc2cf22bf msm: wlan: Add support for UNI-III ETSI sub-band
Per the EU STD. ETSI EN 300 440, sub-band 5725-5875 is
allowed in EU at reduced power of 25 mW. Add the sub-band to
the EU countries that support this sub-band.

CRs-Fixed: 2141740
Change-Id: I0a43e99c4357527f607110faecddd9d0fd444fc6
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2019-01-16 16:18:43 +05:30
Yong Ding
07ebb0bad9 soc: qcom: hab: adapt to the new get_user_pages()
The previous write and force parameters of get_user_pages() are
replaced with gup_flags, so HAB needs the relevant change since
it uses this API.

Change-Id: I8bb8eac3bd9ef0090a29fce28745b9904e087e0c
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2019-01-16 18:08:10 +08:00
Rahul Sharma
5a2f143582 msm: drm: add hibernation support
Enable device PM callbacks to support hibernation feature.
Facilitates system restore from hibernation golden image when
early display services are running concurrently.

Change-Id: I380a7bf59d9af21468b56c121a7ac7293c32fca2
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-01-15 21:35:52 -08:00
Firoz Khan
93a439f771 arm: dts: msm: add msm8996-auto.dtsi
Add msm8996-auto.dtsi file to override auto specific
node information and include in the auto dts files.

Change-Id: Idf724a8f2e6b43ddc6c563245fb8dfa0755182ee
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
2019-01-16 09:06:03 +05:30
Rajasekaran Kalidoss
d76cb454ed cnss2: USB:skip ce config for USB transport
For USB transport, ce config request should not be
sent. In cnss_wlan_enable, skip ce config if bus type
is USB.

Change-Id: Icf7c2a7c01c4b93a0856442f8a78d733a9858183
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2019-01-15 06:53:12 -08:00
Yiming Cao
eb84e2653d msm: vidc: Support interlaced clips playback
Add a new event to configure if allow to trigger
port reconfig event for scan type change for
UBWC interlaced video playback

Change-Id: Ie20d6a006a82511b18ea0a6fe8de0cf43d6a0582
Signed-off-by: Yiming Cao <cyiming@codeaurora.org>
2019-01-13 19:13:23 -08:00
Linux Build Service Account
b1b5065335 Merge "defconfig: msm: Enable USB HID driver on MSM8996 Auto" 2019-01-12 23:48:04 -08:00
Linux Build Service Account
ac0b1cb2c7 Merge "nl80211: Fix external_auth check for offloaded authentication" 2019-01-11 00:58:12 -08:00
Linux Build Service Account
8b15253b89 Merge "cnss2: Add QCN7605 device ID for elf ramdump" 2019-01-11 00:58:12 -08:00
Ajay Agarwal
63af97f02b defconfig: msm: Enable USB HID driver on MSM8996 Auto
Enable USB HID function driver on MSM8996 Auto target to support
HID over USB.

Change-Id: Iea1b04b88a6a0af816ef9f45f67875ece8d68657
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-10 21:03:40 -08:00
Ajay Agarwal
e5f5ba3002 usb: gadget: f_hid: Add support for HID function
Add support for the HID function with the configfs framework.

Change-Id: I4da589aa453f892bf26cf16ce1a80426100ac02d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-10 21:03:34 -08:00
Abdulhadi Mohamed
fda16fc183 usb: gadget: f_hid: {GET,SET} PROTOCOL Support
The current f_hid driver doesn't handle GET_PROCOTOL and
SET_PROCOTOL requests, which are required to operate HID
gadgets in BOOT mode. This patch implements this feature for
devices that have the same implementation for REPORT and BOOT mode
so that these devices are recognized by older BIOSes.

Change-Id: I2279d9083bf9093f5a96c16df5d7ae48d11fd503
Signed-off-by: Abdulhadi Mohamed <abdulahhadi2@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: b3c4ec71ec413c2e5bfb028bdf1737af07f1fde0
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-10 21:03:30 -08:00
Krzysztof Opasiak
b3b13a88db usb: gadget: f_hid: fix: Don't access hidg->req without spinlock held
hidg->req should be accessed only with write_spinlock held as it is
set to NULL when we get disabled by host.

Change-Id: Ic933da63cc2e7087b8e68398499d367fae328499
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: 25cd9721c2b16ee0d775e36ec3af31f392003f80
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-10 21:03:25 -08:00
Matthew Wilcox
d160ea3368 idr: add ida_is_empty
Two of the USB Gadgets were poking around in the internals of struct ida
in order to determine if it is empty.  Add the appropriate abstraction.

Change-Id: I48338e05940ee795953a3323d4d08b5c5c1e2fcc
Link: http://lkml.kernel.org/r/1480369871-5271-63-git-send-email-mawilcox@linuxonhyperv.com
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Konstantin Khlebnikov <koct9i@gmail.com>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 99c494077e2d4282a17120a772eecc00ec3004cc
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-10 21:03:00 -08:00
Janusz Dziedzic
6f3ba887e4 usb: gadget: f_hid add super speed support
Add super speed descriptors to f_hid.

Change-Id: I81f9c89963218d27c37f2a25e71245f2ee81a388
Signed-off-by: Janusz Dziedzic <januszx.dziedzic@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: dbf499cf720a0096acea7641492d9edeffc25d10
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[ajaya@codeaurora.org: drop changes for SSP descriptors]
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-10 21:02:54 -08:00
Krzysztof Opasiak
825084cdc1 usb: gadget: f_hid: fix: Move IN request allocation to set_alt()
commit 749494b6bdbbaf0899aa1c62a1ad74cd747bce47 upstream.

Since commit: ba1582f22231 ("usb: gadget: f_hid: use alloc_ep_req()")
we cannot allocate any requests in bind() as we check if we should
align request buffer based on endpoint descriptor which is assigned
in set_alt().

Allocating request in bind() function causes a NULL pointer
dereference.

This commit moves allocation of IN request from bind() to set_alt()
to prevent this issue.

Change-Id: I02a832bfd3008efb041450156da11e62f1ec8e5c
Fixes: ba1582f22231 ("usb: gadget: f_hid: use alloc_ep_req()")
Cc: stable@vger.kernel.org
Tested-by: David Lechner <david@lechnology.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 8dd5c0c47332c67a04830e3842d4d6282f1824fd
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-10 21:02:47 -08:00
Linux Build Service Account
f9e5993dff Merge "drm/msm/sde: add panel stacking support" 2019-01-10 15:59:45 -08:00
Linux Build Service Account
363d4a457d Merge "drm/msm/sde: add shared display support" 2019-01-10 15:59:44 -08:00
Linux Build Service Account
8e9ed04da3 Merge "usb: gadget: f_hid: Use spinlock instead of mutex" 2019-01-10 07:27:56 -08:00
Linux Build Service Account
17c6aaf2ae Merge "cfg80211: indicate support for external authentication" 2019-01-10 07:27:55 -08:00
Rajasekaran Kalidoss
b8d62600fc cnss2: Add QCN7605 device ID for elf ramdump
For QCN7605 device ID, the collected dump
segments are not dumped to /dev/ramdump_QCN7605.
Device ID of QCN7605 needs to be added to the
ramdump path.

Change-Id: Ib3931f13f99f9c219f4a0e64b5bc92fb2f0b3902
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2019-01-10 07:10:25 -08:00
Xiaowen Wu
7894acdb9a drm/msm/sde: add panel stacking support
To support transparent panel stacking, application will pass non-panel-
stacking buffer roi to kernel and let kernel to extend to panel-stacking
size.  A special flag is defined on source config for this purpose.

Change-Id: I59eb290f0f7b92744972391d7db743e2da12300b
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-01-10 01:32:38 -08:00
Linux Build Service Account
076faf0b2f Merge "msm: ais: ispif: Fix invalid type conversion" 2019-01-09 23:23:11 -08:00
Krzysztof Opasiak
601c68d342 usb: gadget: f_hid: Use spinlock instead of mutex
commit 33e4c1a9987a1fc3b42c3b534100b5b006d55c61 upstream.

As IN request has to be allocated in set_alt() and released in
disable() we cannot use mutex to protect it as we cannot sleep
in those funcitons. Let's replace this mutex with a spinlock.

Change-Id: I44c16823165b25c6d8d7e1697de75e373226272a
Tested-by: David Lechner <david@lechnology.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 6d0511ed15db30965f8a3be8f0733bb6efd2b95e
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09 23:14:36 -08:00
raghavendra ambadas
07742dfc89 fbdev: msm: validate mdp clk rate and cwb for msm8996
Add mdp rev check for concurrent writeback support and
calculate the mdp clk rate before validating.

Change-Id: Id81045468d9eb08f39ec51fffb657341b5a3c6a9
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
2019-01-09 21:51:37 -08:00
raghavendra ambadas
acf1340268 ARM: dts: msm8996: Add display nodes for 8996 target
Add FB1, rotator, and WB node in msm8996 dtsi file

Change-Id: I26d471eb64b3a1ccaf2fb201c4d0baf6505cae17
Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
2019-01-09 21:51:23 -08:00
Rahul Sharma
7079e398af drm/msm/sde: add shared display support
Add support to shared display for panel stacking and split screen
application.

The current DRM framework only allows one atomic commit for
each display, this change will create virtual display pipelines
based on the physical display pipeline, and each virtual display
can support independent async atomic commit.

With the change user mode application can setup and update
display on each virtual display and share the same physical port.
No mode switch is allowed on virtual display. When all virtual
displays are powered off,  the physical display will also power off.

Change-Id: Ibf9a7dd1a96c59b6db9891d826cb4f11b409696c
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-01-09 20:55:04 -08:00
Srinivas Dasari
682aa32d09 nl80211: Fix external_auth check for offloaded authentication
Unfortunately removal of the ext_feature flag in the last revision of
the patch ended up negating the comparison and prevented the command
from being processed (either nl80211_external_auth() or
rdev_external_auth() returns -EOPNOTSUPP). Fix this by adding back the
lost '!'.

Fixes: 40cbfa90218b ("cfg80211/nl80211: Optional authentication offload to userspace")

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: db8d93a7a355121d49777c059afbca23c53c8628
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
CRs-Fixed: 2210017
Change-Id: I41f7c25d68a5060d7b5e24fb5bd164e063311ed0
Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org>
Signed-off-by: Jiachao Wu <jiacwu@codeaurora.org>
Signed-off-by: Min Liu <minliu@codeaurora.org>
2019-01-10 11:16:59 +08:00
Srinivas Dasari
3d2a81a626 cfg80211: indicate support for external authentication
Define macro to indicate backport support for
external authentication where authentication can be
offloaded to userspace in specific cases such as SAE.

Change-Id: Ib253b303e82f583f61bc13d14c8d491d5ea2af15
CRs-Fixed: 2182553
Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org>
Signed-off-by: Jiachao Wu <jiacwu@codeaurora.org>
Signed-off-by: Min Liu <minliu@codeaurora.org>
2019-01-10 11:14:54 +08:00
Linux Build Service Account
6cc6df43ed Merge "usb: gadget: f_hid: fix: Free out requests" 2019-01-09 16:22:30 -08:00
Linux Build Service Account
45286c6557 Merge "ARM64: dts: gvm: Enable USB2 pass through for LA Guest" 2019-01-09 16:22:28 -08:00
Linux Build Service Account
977d9e3afe Merge "defconfig: msm: Enable UAC1 driver on 8996 Auto" 2019-01-09 16:22:09 -08:00
Linux Build Service Account
cdd53d2de8 Merge "usb: gadget: f_uac1: Add support for UAC1 function" 2019-01-09 16:22:05 -08:00
Linux Build Service Account
c2161416e7 Merge "cnss2: Add cnss usb API to check the target status" 2019-01-09 08:54:50 -08:00
Krzysztof Opasiak
712a014d96 usb: gadget: f_hid: fix: Free out requests
commit 20d2ca955bd09639c7b01db5761d157c297aea0a upstream.

Requests for out endpoint are allocated in bind() function
but never released.

This commit ensures that all pending requests are released
when we disable out endpoint.

Change-Id: Ifeab1eff6223e6380b7a1f6db6900ca33ade9de1
Fixes: 99c5150058 ("usb: gadget: hidg: register OUT INT endpoint for SET_REPORT")
Tested-by: David Lechner <david@lechnology.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: b6092a57150c1641dffb6bfeebbe2cbde7275d1f
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2019-01-09 05:56:22 -08:00
Meera Gande
1120965f90 msm: camera: isp: Fix invalid type conversion
Due to improper type conversion compilation
issue will be seen. Made change to access the
appropriate type.

Change-Id: I2c61364f0385c83aa304788cc705bf4ca48ac2cc
Signed-off-by: Meera Gande <mgande@codeaurora.org>
2019-01-09 16:26:11 +05:30