Commit graph

581550 commits

Author SHA1 Message Date
Santosh Mardi
3d3e9e5885 cpufreq: restore policy min and max freq after hotplug
After hotplug policy max and min should be restored
to the user defined values.

Update to restore the policy min and max values defined
by user before going into hotplug.

Change-Id: I6a87fb7e84fae647e76e65734c7e1e9b498f82e3
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2017-01-25 10:29:47 +05:30
Subbaraman Narayanamurthy
7189487770 ARM: dts: msm: update battery profiles for GEN3 FG
Update the battery profiles for ascent, itech and st1031ga
batteries that are used with 8998 platforms as per the recent
characterized profile data.

Change-Id: I8dda10320f216e8fe40fda405817c1afc3b436de
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-24 20:46:54 -08:00
Subbaraman Narayanamurthy
7d937eff0e ARM: dts: msm: add batterydata to pmi8998 FG for msm8998 MTP and QRD
Add batterydata phandle to pmi8998 FG device so that it can be
used for obtaining the battery profiles that is required for
msm8998 MTP and QRD platforms.

Change-Id: I2255cd6475f3e49394cbdf3dd4594cb96fd70c31
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-24 20:46:53 -08:00
Taniya Das
807c806fa8 clk: qcom: Fix uninitialized variable and null pointer exception
Initialize the variables before their usage and add null pointer checks
before dereferencing pointers.

Change-Id: Ibe4140c6e0aa25c37583e6e5e6e2331d86f389aa
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-25 10:00:36 +05:30
Skylar Chang
170979c4fd msm: gsi: fix event ring handle in gsi_alloc_channel
Add a check to event ring handle.

Change-Id: If835e7e610745aeb82d4d0e363ef833d0f8d857a
CRs-Fixed: 1115476
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-01-24 19:22:25 -08:00
Yuanyuan Liu
bdea8a5178 icnss: Don't check return value of sending dynamic feature mask
Don't check return value of sending dynamic feature mask in cold
boot initialization sequence as it is an optional message.

CRs-Fixed: 1115626
Change-Id: Ieb2f86f3a5c2c368b2699755a716a3e385562f48
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-01-24 18:03:46 -08:00
Azam Sadiq Pasha Kapatrala Syed
d6f2fbcca5 msm: camera: Find and return mapped fd's from the list
Change to iterate the mapped buffer list and use the secure buffer
info structure instead of dma buffer info to return the secure mapped
fd's pertaining to the corresponding session.

Change-Id: I6dbfef3741d7ae0b24a4e101eebbf8dc62da630a
Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
2017-01-24 15:21:13 -08:00
Sathish Ambley
f779271498 defconfig: sdm660: Enable CDSP loader driver
Enable the CDSP loader driver to load CDSP image at boot
time.

Change-Id: Iaf0b60b09f98c67ae512620a225ddf385baec20c
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-24 10:07:50 -08:00
Govind Singh
29a9abf1f9 ath10k: Add copy engine register MAP for wcn3990 wlan module
The copy engine is a host to target communication interface
between wlan firmware and wlan wcn3990 platform driver. Add copy
engine register map for wcn3990 snoc wlan module. This add support
for the copy engine source/destination ring configuration for
wcn3990 chipset.

CRs-Fixed: 1114412
Change-Id: If1a87fd9fffc62605ebc6d3fd8ed22980c5518e9
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-01-24 04:53:47 -08:00
Lior David
626e3caa78 wil6210: bus_request platform operation refinement
The driver uses the bus_request platform operation to
request resources from the platform for a specific bandwidth.
Currently the driver requests resources for the maximum
theoretical bandwidth, when interface is brought up.
Refine this process a bit: now the driver will request a
small amount of resources when interface is up, and will only
issue the maximum request when connected.
This mechanism will be improved further in the future to make
more refined requests based on actual bandwidth.

Change-Id: Iada383f8183338190bfb082c1128d2ea38053ebc
CRs-Fixed: 1114406
Signed-off-by: Lior David <liord@codeaurora.org>
2017-01-24 13:30:19 +02:00
Lior David
18ae38826c msm_11ad: basic support for CPU boost
Added basic support for CPU boost: when driver calls ops_bus_request
with a high bandwidth requirement, enable the big CPU cluster
and adjust the affinity of the wil6210 interrupt to run on
the first big core. The first big core is selected because
WLAN driver uses the other cores.

Change-Id: Ia752b9a8ca343b56e2839a30a4fdb59231f9a634
CRs-Fixed: 1114406
Signed-off-by: Lior David <liord@codeaurora.org>
2017-01-24 13:30:09 +02:00
Udaya Bhaskara Reddy Mallavarapu
37d262a5a5 ARM: dts: msm: Resolve TSIF GPIO conflicts for APQ8098
For APQ8098 TSIF GPIOs are allocated dedicately.
Remove TSIF GPIO references from other device nodes.
For SD Card detect GPIO86 is allocated and freed GPIO95.
Disable MDSS DSI configuration & free references of
GPIO91, GPIO94 pins.

CRs-Fixed: 1113595
Change-Id: Ib65231df58d4a9fc7cd5b1f744c406bf9d9c5885
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
2017-01-24 15:01:15 +05:30
cyizhao
cafa17dfc7 ARM: dts: msm: Enable home key for qrd sdm660
GPIO11 is used for home key on QRD sdm660 device.
Configure it to input/pull-up mode and add it to gpio-keys
device for key detection.

CRs-Fixed: 1115040
Change-Id: I7144a784c8cae4fbb026c4822b757ea76502bf7d
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
2017-01-24 14:02:03 +08:00
Sahitya Tummala
80240ba72a ARM: dts: msm: Add remote fs device node on sdm630
It is needed to enable remote file system on modem processor, which
needs access to store data onto eMMC/UFS device.

The shared memory size used by modem and apps for this purpose is 2MB
on sdm630.

Change-Id: Ib41f8c542e10add6ec5d77632a104028e51e6b8c
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2017-01-24 11:23:13 +05:30
Kiran Gunda
7b39a54287 ARM: dts: msm: Add LAB-IBB/OLEDB support for PM660A
PM660A supports LAB-IBB and OLEDB regulator while they are not
existing in PM660L. Add device nodes and enable them for PM660A.

Change-Id: I0210accea5e3a358830acf2235f72bad003d8144
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-01-23 21:09:47 -08:00
Kiran Gunda
e30ab2df19 regulator: qpnp-oledb: Correct the conditional checks
Correct the conditional check in the oledb_hw_init to avoid programming the
configuration registers if module is already enabled. Also correct the
conditional check in the oledb_regulator_disable.

CRs-Fixed: 1114628
Change-Id: I1af6c5ba6427050832ae04e693f161c517ef03a2
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-01-23 21:08:29 -08:00
Kiran Gunda
08db9f492d regulator: qpnp-labibb: Do not program LAB_CURRENT_SENSE for PM660A
Programming the default (1.5x) LAB_CURRENT_SENSE configuration is not
required for PM660A. Configure it only if explicitly specified in the
DT config.

CRs-Fixed: 1114628
Change-Id: Ib09e6430e99a7f39a9d2f837494a977daff354ba
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-01-24 10:29:12 +05:30
Liangliang Lu
cd36afbdb7 usb: gadget: f_diag: allocate diag USB channel when not found
Currently usb function instance driver depends on diag char driver to
create the channel (using usb_diag_open api). Failing to create channel
can result in enumeration failure. Avoid this dependency by creating
diag channel from function instance if not available. Same channel
will be reused when diag char driver creates/opens the channel.

Change-Id: I11debd0189d81542762af22b3d203728d2266a42
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-01-24 08:57:06 +08:00
Abhijeet Dharmapurikar
7cbc0c2159 smb-lib: report discharging when charger is absent
Currently, the code reports whatever is in the BATTERY_CHARGING_STATUS_1
register for the battery status.

We have seen that the register continues to report FAST charging
even when the chg_ok pin could be low or dc path is in collapsed
state (collapsed state is treated as dc not online). This unexpected
report of charging while it is not really charging breaks certain
features.

Fix it by checking for usb_online and dc_online. But make sure that
if the battery is full it continues to report so.

Change-Id: I732c916b4f63f9ff0fd8d9c77ce5253c309698a4
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-01-23 16:21:02 -08:00
Runmin Wang
778031ccb5 genirq: Add IRQ_AFFINITY_MANAGED flag
Add IRQ_AFFINITY_MANAGED flag and related kernel APIs so that
kernel driver can modify an irq's status in such a way that
user space affinity change will be ignored. Kernel space's
affinity setting will not be changed.

Change-Id: Ib2d5ea651263bff4317562af69079ad950c9e71e
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-01-23 16:01:01 -08:00
Skylar Chang
ede327d5d7 msm: ipa3: fix prod drain for WDI 2.0
Drain WLAN_PROD pipe by sending a QMI to modem only in case
that the pipe is not empty. Also for SSR case, set a timeout
for QMI message response.

Change-Id: Iecd63a929b622d80ad4d4ebf15e8de9251f7d9d3
CRs-Fixed: 1113156
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-01-23 13:53:56 -08:00
Linux Build Service Account
314869eb56 Merge "crypto: msm: check integer overflow on total data len in qcedev.c" 2017-01-23 12:54:11 -08:00
Linux Build Service Account
9223e16750 Merge "defconfig: msm: enable dvb demux modules compilation for sdm660" 2017-01-23 12:54:10 -08:00
Linux Build Service Account
a4f78ef096 Merge "ASoC: msm: Include interrupt registers in pdata" 2017-01-23 12:54:09 -08:00
Linux Build Service Account
5b51bcade5 Merge "msm: ipa: Fix WDI2.0 stats" 2017-01-23 12:54:08 -08:00
Linux Build Service Account
82b5ff09ae Merge "defconfig: msm: Remove LOCKUP detector in sdm660 perf config" 2017-01-23 12:54:08 -08:00
Linux Build Service Account
2151340268 Merge "mac80211: pass block ack session timeout to to driver" 2017-01-23 12:54:06 -08:00
Tatenda Chipeperekwa
4709f01bbd msm: mdss: dp: fix HBR2 pattern generation
Fix the HBR2 pattern generation by ensuring that the pattern
selection bit is not overwritten by a subsequent register write
that updates the scrambler reset count.

CRs-Fixed: 1108048
Change-Id: I2d2dcc79de82756eab015a343c24411a735947c9
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2017-01-23 12:25:08 -08:00
Thomas Gleixner
1cc869442a genirq: Introduce IRQD_AFFINITY_MANAGED flag
Interupts marked with this flag are excluded from user space interrupt
affinity changes. Contrary to the IRQ_NO_BALANCING flag, the kernel internal
affinity mechanism is not blocked.

This flag will be used for multi-queue device interrupts.

Change-Id: I204c49bb1c8ce87fbcd163119093163b120bfe83
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: linux-block@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Cc: linux-nvme@lists.infradead.org
Cc: axboe@fb.com
Cc: agordeev@redhat.com
Link: http://lkml.kernel.org/r/1467621574-8277-3-git-send-email-hch@lst.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Git-commit: 9c2555835bb3d34dfac52a0be943dcc4bedd650f
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[runminw@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-01-23 11:23:37 -08:00
Sathish Ambley
c82086f404 ARM: dts: msm: Add CDSP loader device tree node
Add a device tree node for CDSP loader, that is used for loading
CDSP image during boot.

Change-Id: I955ca3b89d36426a46554a62c11efb5fafb0e2c7
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-23 09:58:47 -08:00
Sathish Ambley
224c188111 msm: CDSP: Enable CDSP loader driver
Add CDSP loader driver to bring compute DSP out of reset
during boot.

Change-Id: I2571e2158fcf7706efc5a5922da24f22755eeed7
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-23 09:56:24 -08:00
Samyukta Mogily
e45f50997b ARM: dts: msm: Enable camera for sdm630
Adding sdm660-camera dtsi nodes in sdm630 dtsi files.

Change-Id: I1ddcd27e2133eb601bb43b368d815d17767df8d3
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
2017-01-23 18:23:23 +05:30
Pavankumar Kondeti
448f83e347 defconfig: msm: Enable SCHED_AUTOGROUP for sdm660
This config is already enabled in perf defconfig but missed
in the debug defconfig.

Change-Id: I85ba0624318a0141fb8b6418e8e923201a108c55
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-01-23 18:21:40 +05:30
Linux Build Service Account
4f1f60e00d Merge "ARM: dts: msm: add nt35597 sharp panel node for sdm660" 2017-01-23 04:04:11 -08:00
Linux Build Service Account
96a84f78be Merge "ARM: dts: msm: Enable continuous splash on sdm660" 2017-01-23 04:04:10 -08:00
Linux Build Service Account
b2664632f0 Merge "msm: ipa: SDM660 miscellaneous changes" 2017-01-23 04:04:09 -08:00
Linux Build Service Account
17f521e882 Merge "diag: Synchronize threads to fix possible deadlock" 2017-01-23 04:04:08 -08:00
Linux Build Service Account
d846339612 Merge "msm: ADSPRPC: Remove references to SMD" 2017-01-23 04:04:07 -08:00
Linux Build Service Account
5b5a6be59f Merge "msm: kgsl: Dump preemption record only if it is enabled" 2017-01-23 04:04:06 -08:00
Linux Build Service Account
5bf6056e40 Merge "msm: kgsl: Try lower order mempools incase of mismatch" 2017-01-23 04:04:05 -08:00
Taniya Das
1f6a843f94 clk: Add separate function to print clocks enabled during suspend
When debug_suspend is set to true and the low power code invokes the
function to print the enabled clocks during suspend the function fails to
execute the do while loop in clock_debug_print_enabled_clocks, so separate
out the function to handle the same.

Change-Id: I014750637bc17c1107c7f0745d2d44caf6c96e62
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-23 14:00:49 +05:30
Laxminath Kasam
4c3ed0da3a ASoC: msm: Include interrupt registers in pdata
To fix access of unmapped memory region, add
lpi registers in pdata of node. This enables
unmapping when pdata is destroyed.

Change-Id: I62b2e50f8db39bdc430299a817ba621288ab4f3e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-23 13:33:31 +05:30
Sara Sharon
6af69d2d6b mac80211: pass block ack session timeout to to driver
Currently mac80211 does not inform the driver of the session
block ack timeout when starting a rx aggregation session.
Drivers that manage the reorder buffer need to know this
parameter.
Seeing that there are now too many arguments for the
drv_ampdu_action() function, wrap them inside a structure.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Git-commit: 50ea05efaf3bed7dd34bcc2635a8b3f53bd0ccc1
[rsirasan@codeaurora.org: resolved conflicts in include/net/mac80211.h and
net/mac80211/agg-rx.c and not pulled changes for drivers/net/wireless/intel/ and
drivers/net/wireless/st/ since path is not maintained]
CRs-Fixed: 1112956
Change-Id: I15d86f60cd3bd33e392b313f7a4ee2fca91207d4
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2017-01-22 23:57:27 -08:00
Rajeev Kumar Sirasanagandla
b5230894f5 Revert "mac80211: pass block ack session timeout to to driver"
This reverts commit 71384687ff ("mac80211: pass block ack session
timeout to to driver") which is incomplete cherry-pick.

CRs-Fixed: 1112956
Change-Id: I63fdf95d25ca5bdfa87c54cea8e9a68eae715e44
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2017-01-22 23:36:19 -08:00
Jayant Shekhar
0f87e7ba03 ARM: dts: msm: Enable continuous splash on sdm660
Add splash memory node for sdm660 to enable continuous
splash.

Change-Id: I01e6e967fc0f733b050027901f3a65b60cefd569
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2017-01-23 11:16:41 +05:30
Sathish Ambley
99f5e59bf5 msm: ADSPRPC: Remove references to SMD
SMD is being removed from defconfig of SDM660. All the references
to SMD like macros and header files are removed from fastrpc driver.

Change-Id: Iaa961e7faee4b59562fc92133c5154027c325f53
Acked-by: Vishnu Karthik <vikarthi@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-22 21:36:22 -08:00
Sathish Ambley
dd2d22f7b7 msm: ADSPRPC: Expose information about open devices
Using Debugfs virtual file system to make debug information available
to userspace. A directory called adsprpc is created in debugfs root
directory and a debugfs file is created in this directory for every
device open in the fastrpc driver.

Change-Id: Ie944424e30ddc810ff29116481d63b266c47c037
Acked-by: Vishnu Karthik <vikarthi@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-22 21:35:53 -08:00
Utkarsh Saxena
63e1143473 msm: ipa: Fix WDI2.0 stats
New stat param "num_qmb_int_handled" is added to rx_ch_stats
by IPA uC in WDI2.0. This results in a size mismatch and
WDI stats feature is broken. Make a change to update the
new param "num_qmb_int_handled" in rx_ch_stats structure.

Also make a change to read all the rx_ch_stats to avoid
printing stale values.

Change-Id: I5d141f531f1cfdab0bd0056041e22acb26657960
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-01-23 11:03:24 +05:30
Venkatesh Yadav Abbarapu
9e36db9f5a defconfig: msm: Remove LOCKUP detector in sdm660 perf config
Disable the LOCKUP detector configuration for secondary images.

Change-Id: I4df2f180ba560cf531fe97403775d4fa47061e6b
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2017-01-23 10:32:34 +05:30
Sandeep Panda
e07a387eef ARM: dts: msm: add nt35597 sharp panel node for sdm660
Add nt35597 sharp video and command mode panel node to
sdm660 target.
Also enable NULL packet insertion for DSI controller
to avoid corruption seen with nt35597 sharp panel.

Change-Id: I42813cecd68059f835810cd015cd6654c3507dfa
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2017-01-23 09:44:45 +05:30