Commit graph

597230 commits

Author SHA1 Message Date
Kiran Kumar Lokere
98d5572dd2 cfg80211: Define new API to send reg change event
Define new exported cfg80211 api cfg80211_send_reg_change_event()
to send regulatory update event to user-space.

CRs-Fixed: 2183721
Change-Id: I32e12c8db22a63b9166481dfec937716fb15d855
Signed-off-by: Kiran Kumar Lokere <klokere@codeaurora.org>
2018-02-19 22:39:51 -08:00
Linux Build Service Account
a961632a48 Merge "msm: kgsl: Properly remove ref count on gpuobj_sync failure" 2018-02-19 16:07:24 -08:00
Mohammed Javid
d0ad541f26 msm:ipa: Return mux id only for valid interface
Value of MAX_NUM_OF_MUX_CHANNEL is greater than
number of valid interfaces. So empty interface
is also getting mux id. Return mux id only for valid
interfaces.

Change-Id: I7852df0aa0ccee781c1bf6857a4183b99194f3ee
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-02-19 03:12:49 -08:00
Manaf Meethalavalappu Pallikunhi
835bbf01f4 ARM: dts: msm: Disable BCL for all msm8996 auto targets
The auto target doesn't require battery current limit (BCL) solution.
Disable BCL devicetree node for all msm8996 auto targets.

Change-Id: I70f249de2d7d1304287a9f71a7d48f1b90fabee7
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2018-02-18 11:54:05 -08:00
Manaf Meethalavalappu Pallikunhi
354770e7c5 defconfig: msm: Enable battery current limit module for msm8996
Enable battery current limit module, which can monitor the
battery current, voltage, and SoC and mitigate the CPU cluster.

Change-Id: I2ba17fe5fe76d42999f71c6197200ac90ff68877
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2018-02-18 11:53:23 -08:00
Linux Build Service Account
b8cb4d63cb Merge "msm: secure_buffer: Add SPSS_SP_SHARED vmid" 2018-02-16 14:41:53 -08:00
Linux Build Service Account
035b037e74 Merge "msm: camera: Add RAW12 support for meta data" 2018-02-16 14:41:52 -08:00
Linux Build Service Account
47aeb59367 Merge "msm: camera: Handle actuator close before power down" 2018-02-16 14:41:50 -08:00
Linux Build Service Account
5b91f0e883 Merge "msm: kgsl: Add a check for valid frequency of RBBM timer clock" 2018-02-16 06:14:20 -08:00
Carter Cooper
4ae2e3bd18 msm: kgsl: Properly remove ref count on gpuobj_sync failure
The user can pass bad data into kgsl_ioctl_gpuobj_sync(). If
_copy_from_user() fails do to bad data, undo any current
references taken through this ioctl call.

Change-Id: I56195520b9dadba20ee419658fc2cbb282b8449c
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Signed-off-by: samit vats <svats@codeaurora.org>
2018-02-16 15:22:12 +05:30
Sudarshan Rajagopalan
b07c54bfd1 msm: secure_buffer: Add SPSS_SP_SHARED vmid
Add support for SPSS_SP_SHARED vmid. This vmid is equivalent
to TZ VM, which can be used for sharing memory with TZ with
the assign call.

Change-Id: I10b98820796e8bab7b8275f5ddf44e8814dc0fb0
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2018-02-16 01:35:43 -08:00
Vaishnavi Kommaraju
d5ed522486 ASoC: wcd934x-dsp-cntl: Limit array size of val
Limit size of val to WCD_DSP_CNTL_MAX_COUNT to avoid stack overflow.

CRs-Fixed: 2177167
Change-Id: I5d2b91e92305d6a485b2e8f959036504f0f55b13
Signed-off-by: Vaishnavi Kommaraju <vkommara@codeaurora.org>
2018-02-16 12:14:57 +05:30
Linux Build Service Account
38edeeedb5 Merge "icnss: Remove vote for hardware resources when FW is not down" 2018-02-15 12:21:04 -08:00
Archana Obannagari
bb5ab9b337 msm: kgsl: Add a check for valid frequency of RBBM timer clock
rbbmtimer_clk hardwired fixed XO frequency 19.2Mhz. clock_round_rate()
for RBBM timer clock fails with -EPERM as it is fixed. So added a
check to make sure that rbbmtimer_clk clk_set_rate() has valid
frequency. This avoids warning message in the driver log.

Change-Id: I8f8bcec88e6a39e1550bb67590e6b66dba8e7a27
Signed-off-by: Archana Obannagari <aobann@codeaurora.org>
2018-02-15 17:23:33 +05:30
Manoj Prabhu B
26f01d728e diag: Prevent unnecessary data ready counter update
The patch fixes unnecessary data ready counter update by
adding proper checks.

CRs-Fixed: 2180045
Change-Id: Iff34a9c6203324cd07964d69a1f525325b3a011b
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2018-02-15 13:32:53 +05:30
Sreelakshmi Gownipalli
29ab15b994 diag: Increment data ready only if it is first update
Increment data ready only if it is not incremented earlier.

Change-Id: Ia61e638bcf18e17dfe4bef15fc8ed4168b4c1891
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2018-02-14 23:18:40 -08:00
Linux Build Service Account
1abb9c9f07 Merge "ath10k: Set fw feature flag for no 4addr hdr padding" 2018-02-14 13:20:10 -08:00
Linux Build Service Account
c8ca44d520 Merge "msm: ais: isp: Handling buffer use after getting it freed" 2018-02-14 05:30:59 -08:00
Linux Build Service Account
c69f889e85 Merge "ASoC: msm: qdsp6v2: Fix memory allocation issue in afe_sidetone" 2018-02-14 05:30:58 -08:00
Linux Build Service Account
26c7349d3a Merge "ASoC: msm: Upgrade Machine Driver to Support 32 Channels" 2018-02-14 05:30:57 -08:00
Linux Build Service Account
2788d67a50 Merge "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards" 2018-02-14 05:30:56 -08:00
Linux Build Service Account
a31a1a0c2e Merge "leds: qpnp-flash-v2: Fix the macro calculations" 2018-02-14 05:30:54 -08:00
Linux Build Service Account
68f5ca4182 Merge "defconfig: msm: Enable PCAN-USB for msm8996" 2018-02-13 18:52:11 -08:00
Linux Build Service Account
e467eef0ec Merge "ARM: dts: msm: Remove rh850 device node from mizar" 2018-02-13 18:52:09 -08:00
Linux Build Service Account
a7dbc5dea2 Merge "eventpoll.h: fix epoll event masks" 2018-02-13 12:17:09 -08:00
Linux Build Service Account
9591e476bb Merge "USB: gadget: Replace %pM with %pm" 2018-02-13 12:17:08 -08:00
Linux Build Service Account
0100d380ab Merge "SDE: HDMI: Disable HPD if non-pluggable flag is set" 2018-02-13 12:17:06 -08:00
Linux Build Service Account
76ee1b8d18 Merge "DRM: DBA: Adding hardware power sequence to DBA power off code" 2018-02-13 12:17:05 -08:00
Linux Build Service Account
3b67a3866b Merge "DRM: SDE: Avoid vblank request to the same state" 2018-02-13 12:17:04 -08:00
Aditya Bavanari
7e2b30f53a ASoC: msm: qdsp6v2: Fix memory allocation issue in afe_sidetone
When afe sidetone params are set, memory allocation is not
done before packing the param data. Allocate memory before
packing the param data to fix this.

CRs-Fixed: 2189218
Change-Id: I38cc5a1a948228235e178f46bfce99fa8dec3bd8
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-02-13 23:14:05 +05:30
Ajay Agarwal
20fca09e45 USB: gadget: Replace %pM with %pm
commit c173d5504d ("USB: gadget: Replace %pK with
%pM") modified the MAC address format specifier to %pM.
So when the host PC asks for the MAC address, the
device sends the address with colons present. Linux
Host machines cannot handle this and ECM function fails
to bind. Fix this by changing the format specifier to
%pm which removes the colons and sends the MAC address.

Change-Id: Id3eebfa371bd2cf976ee0f44e8a7b54690f43e77
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-02-13 15:32:14 +05:30
Rakesh Pillai
88b589eaa3 ath10k: Set fw feature flag for no 4addr hdr padding
WCN3990 gives no padding for llc header in the rx pkts.
The rounding off of hdrlen causes extra bits from LLC header
being stripped off and hence the pkt is misinterpreted and
subsequently discarded.

Set the fw flag to skip the hdrlen rounding off for wcn3990.

CRs-Fixed: 2189079
Change-Id: I038791707977f0d4ee81986e6c76d86606a69d9c
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2018-02-13 15:32:02 +05:30
Yimin Peng
ba15fa752d spmi: msm: Add virtual SPMI PMIC front end driver
Add basic infrastructure for SPMI front end driver. Frontend driver
communicates with backend to service SPMI request from clients.

Change-Id: Icff567a2f224fb49f370bf760287d9d3615a3325
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2018-02-13 10:23:45 +08:00
Camus Wong
def1bee62a DRM: DBA: Adding hardware power sequence to DBA power off code
Adding power off register sequence to reduce power in power off.
Adding switch GPIO sequence in power on/off call.

Change-Id: Ifbe57852a43e1b1d0f05594a84a10540cfeb6be7
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-02-12 19:36:58 -05:00
Camus Wong
1921a9ede6 SDE: HDMI: Disable HPD if non-pluggable flag is set
For non-pluggable display, HPD hardware should be disabled.
HPD related clocks should also shutdown during suspend.

Change-Id: I59475b07b44c2a7f1784d160263a6bca7701a702
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-02-12 06:50:15 -08:00
Linux Build Service Account
9d5748ab14 Merge "ARM: dts: msm: disable wdog wakeup on msm8996 vplatform" 2018-02-12 05:01:44 -08:00
Linux Build Service Account
2c24f5e2c0 Merge "ASoC: msm: qdsp6v2: Add support to query AVCS version info" 2018-02-12 05:01:43 -08:00
Linux Build Service Account
01829b3780 Merge "ASoC: msm: Update Audio Header File for 32 Channels Support" 2018-02-12 05:01:42 -08:00
Rahul Sharma
08c8d3a714 msm: ais: isp: Handling buffer use after getting it freed
In the code, start_fetch can try to access the
buffer pointer variable after free, as the
same pointer can be freed at RELEASE_BUF call too
at the same time. Hence fixing this race condition.

Change-Id: Ifb643bace27064e1324d714aebed706b48e44b65
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2018-02-11 22:25:30 -08:00
Linux Build Service Account
631acc8fdd Merge "ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform" 2018-02-11 21:34:56 -08:00
Yimin Peng
1d6d0c7817 ARM: dts: msm: disable wdog wakeup on msm8996 vplatform
The wdog always bites with the flag when guest virtual machine enters
into suspend.

Change-Id: Ie239dcb8a48cdaffcddf923a3114210ec5947ff9
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2018-02-12 11:33:07 +08:00
Greg KH
8de43829d7 eventpoll.h: fix epoll event masks
[resend due to me forgetting to cc: linux-api the first time around I
posted these back on Feb 23]

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

When userspace tries to use these defines, it complains that it needs to
be an unsigned 1 that is shifted, so libc implementations have to create
their own version.  Fix this by defining it properly so that libcs can
just use the kernel uapi header.

Change-Id: Iac4e9f2a30ef3ea444c984c9eb8d6c5edc1f8264
Reported-by: Elliott Hughes <enh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 6f051e4a685b768f3704c7c069aa1edee3010622
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
[schikk@codeaurora.org: resolved merge conflicts]
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2018-02-11 19:31:13 -08:00
Ghanim Fodi
b57f252a8b msm: ipa: Prevent deletion of the default route rule
The first APPS default routing table rule is installed
at the IPA driver initialization. To prevent routing
exception, this rule cannot be deleted by user application.
This change prevents deleting this rule.

Change-Id: Ia27434fd24a15fea5956018a1271b11bbe227df7
CRs-fixed: 2165859
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2018-02-11 01:04:16 -08:00
Zhiqiang Tu
989e608baa ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform
Move the basic part and audio common part to separated device tree
include files for msm8996 virtual platform.

Change-Id: Id1847f6bbf083fb82230f6eb67d32fea401baa5d
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2018-02-11 15:07:44 +08:00
Linux Build Service Account
f2604c4f48 Merge "msm: ais: Synchronize v4l2 subscribe and unsubscribe event" 2018-02-09 17:07:17 -08:00
Linux Build Service Account
5ea3f07aec Merge "ARM: dts: qcom: add wdog to the baseline msm8996 vplatform" 2018-02-09 17:07:15 -08:00
Linux Build Service Account
d0c522b2ff Merge "msm: thermal: Add support to monitor only one tsens for VDD restriction" 2018-02-09 17:07:14 -08:00
Linux Build Service Account
5e5f1941b4 Merge "msm: ais: sensor: Fix out of bound read for region params" 2018-02-09 08:25:36 -08:00
Linux Build Service Account
5072ad3bd5 Merge "soc: qcom: hab: fix the panic in shmem device shutdown" 2018-02-09 02:11:52 -08:00
Vijay kumar Tumati
2fe9f37f2e msm: camera: Handle actuator close before power down
In case when userspace process is killed, actuator
subdev is first closed and then power down is called.
In this sequence, we need to handle actuator states
properly to shutdown all the regulators during close.

Change-Id: I843b463a1b576971e16d1554ded20984dd0ec436
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2018-02-09 12:30:59 +05:30