Commit graph

604332 commits

Author SHA1 Message Date
Gustavo Solaira
f5894158c8 usb: misc: ks_bridge: Fix support for 901F PID
Add a missing switch-clause for 0x901F to
avoid enumeration failure.

Change-Id: I909cf4ac9a65c0fa02daa03654a2f81fa17c38a2
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2019-01-31 13:39:24 -08:00
Linux Build Service Account
1e1f5e57c5 Merge "usb: pd: Don't reject sink request based on max current" 2019-01-22 23:51:09 -08:00
Linux Build Service Account
1e87dfb19c Merge "cnss2: Return 0 from susped/resume for driver_ops null" 2019-01-22 14:52:12 -08:00
Linux Build Service Account
87e827c3fd Merge "msm: adsprpc: Fix memory out of bounds error" 2019-01-22 04:06:44 -08:00
Linux Build Service Account
4798f35626 Merge "iommu/iommu-debug: fix buffer overflows in debugfs read functions" 2019-01-21 02:43:13 -08:00
Rajasekaran Kalidoss
94a480760a cnss2: Return 0 from susped/resume for driver_ops null
During usb suspend/resume call from USB SS, if driver
ops is not present cnss should return success. presently
it is returning -EINVAL if driver_ops is NULL.

Change-Id: I43a268489107bdad1945b4a842bb9ab3abe1b4ea
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2019-01-19 05:52:43 -08:00
Linux Build Service Account
66843b30ec Merge "msm: wlan: Update ETSI1 and ETSI13 countries" 2019-01-18 20:47:36 -08:00
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
e972894a06 Merge "msm: wlan: Update regulatory database" 2019-01-18 08:05:13 -08:00
Rajeev Kumar Sirasanagandla
9a65952670 msm: wlan: Update ETSI1 and ETSI13 countries
In db.txt, update ETSI1 and ETSI13 countries with NO-OUTDOOR flag
for frequency ranges: (5170 - 5250) and (5250 - 5330).

CRs-Fixed: 2379868
Change-Id: I8a9ce955e82b14814ead5f0bf118608ea90cbc53
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2019-01-18 15:23:34 +05:30
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
gaolez
b38d3e39ba msm: wlan: Update regulatory database
Update country ETSI13 related country's frequency range and tx
power.

Change-Id: Iae27b12df3b36621c395ef9e8a3b1b46461848b6
CRs-Fixed: 2246140
Signed-off-by: Gaole Zhang <gaolez@codeaurora.org>
2019-01-17 15:31:28 +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