Commit graph

572259 commits

Author SHA1 Message Date
Linux Build Service Account
57fdba1a12 Merge "ASoC: msm: qdsp6v2: DAP: Update check to validate data length" 2016-07-26 23:34:31 -07:00
Linux Build Service Account
cb50168ee3 Merge "qcom-charger: smb2: configure input from wipower" 2016-07-26 23:34:30 -07:00
Linux Build Service Account
e698c6eeea Merge "msm: Camera buffer overflow fix" 2016-07-26 23:34:30 -07:00
Linux Build Service Account
667469218d Merge "iommu/arm-smmu: Print device name in context fault handler" 2016-07-26 23:34:29 -07:00
Linux Build Service Account
0de8ef1f3e Merge "sound: usb: Update USB audio QMI data structure" 2016-07-26 23:34:28 -07:00
Osvaldo Banuelos
bb02457c09 clk: osm: msm: add support for DxFSM workaround
Support a new OSM sequence which optimizes the number of
instructions required to program MEM-ACC settings and
the APM configuration of the CPUSS. This frees up sufficent
space to implement the DxFSM workaround.

CRs-Fixed: 1043040
Change-Id: I9499497cb558efcf3c73e7145ce65d3f129be696
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:43:06 -07:00
Osvaldo Banuelos
770bcca37a clk: msm: osm: add workaround for C2D/C3 + D2D collapse issue
Program architectural register 6 with the address of the SPM
core count hysteresis register and architectural register 7
with the up and down core-count SPM hysteresis values. The
sequencer uses this information to ensure stable operation
when CPU retention or power-collapse and cluster collapse
LPMs are enabled.

CRs-Fixed: 1045435
Change-Id: I5e41ce376c694736128ceb051db86f93467fdaea
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:42:06 -07:00
Osvaldo Banuelos
b924164a05 ARM: dts: msm: update frequency to ACC level mappings for msmcobalt
Since LowSVS and SVS frequencies share the same ACC settings,
map any frequency in the LowSVS to SVS range to the same ACC
level. By doing so, the OSM device need only support 3 levels
instead of 4 thus saving sequencer instruction space. Also,
update the ACC setting to ensure bit 31 of the last ACC register
in each cluster is set when running at LowSVS/SVS frequencies.

CRs-Fixed: 1021659
Change-Id: I322b9b57ec89f5cdc75336d83010ff89a6bb5726
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:40:57 -07:00
Osvaldo Banuelos
cb2a4195c3 ARM: dts: msm: specify APM threshold voltage in OSM for msmcobalt
Define the APM threshold voltage to be used by the OSM device
to determine the correct APM supply selection for different
DCVS setpoints.

CRs-Fixed: 1021656 1030444
Change-Id: Iebeb45eaa2503bd5be19f00938d0dbec1163c5a5
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:39:33 -07:00
Osvaldo Banuelos
3c7530a2d8 clk: msm: osm: add support for APM crossover corner
Add support to determine the APM threshold corner via open-loop
voltages in the VDD regulator OPP table. The threshold corner
is used by OSM to determine the APM supply for each DCVS setpoint.
The crossover corner is used by OSM to request a specific voltage
during the APM switch transition.

CRs-Fixed: 1021656 1030444
Change-Id: Iac04f6db8e85b3651a33b6c9bff667365cae891d
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:38:28 -07:00
Osvaldo Banuelos
9992623763 regulator: cprh-kbss-regulator: add support for APM crossover corner
Add support for a corner whose open-loop voltage corresponds to the
VDD supply voltage required during an APM switch transition. This
corner is requested by OSM hardware to the CPRh controller when
the VDD supply must be set to a specific voltage to ensure a stable
APM switch procedure. Define a crossover corner of 880 mV for both
VDD_APC CPR devices.

CRs-Fixed: 1021656
Change-Id: Icf4b640ec2c330b0d9721d3494297e2d8445c9b6
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:35:52 -07:00
Skylar Chang
ef0049eefd ARM: dts: msm: put ipa3 in smmu s1-bypass on msmcobalt
Enable SMMU on IPA3 and put in stage1-bypass mode to
not do the memory mapping.

Change-Id: Id2811c67a423c82201993b3119647a3d4caf4517
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-07-26 15:28:54 -07:00
Linux Build Service Account
d1313a37fe Merge "clk: msm: osm: support PLL droop detector workaround" into msm-4.4 2016-07-26 15:08:56 -07:00
Linux Build Service Account
cc915a3931 Merge "clk: qcom: clk-dummy: Add a dummy clock provider" 2016-07-24 09:55:39 -07:00
Linux Build Service Account
5e3b522e77 Merge "ARM: dts: msm: Add GDSC data for mnoc fab for msmcobalt" 2016-07-24 02:02:45 -07:00
Linux Build Service Account
5f77b228da Merge "msm: mdss: mdp: fix handling of GDSC off notifier" 2016-07-24 02:02:44 -07:00
Linux Build Service Account
4b20cd07d7 Merge "ASoC: wcd: add wcd934x gpio controller device" 2016-07-23 16:05:25 -07:00
Linux Build Service Account
3f4a2a724e Merge "input: touchscreen: remove dead code in it7258 driver" 2016-07-22 08:56:34 -07:00
Linux Build Service Account
68913b1d37 Merge "input: touchscreen: Add Touch screen driver for IC it7258" 2016-07-22 08:56:34 -07:00
Linux Build Service Account
10b41ef511 Merge "of_batterydata: Pass battery id directly to find battery profile" 2016-07-22 08:56:33 -07:00
Linux Build Service Account
ac21f49840 Merge "clk: msm: Fix MDSS compilation issue" 2016-07-22 08:56:32 -07:00
Linux Build Service Account
820e736182 Merge "dwc3: gadget: Add debug event for pull up operation" 2016-07-22 08:56:30 -07:00
Linux Build Service Account
8cc16db1d9 Merge "msm: camera: isp: Vote bandwidth with clock enabled" 2016-07-22 08:56:29 -07:00
Linux Build Service Account
a092b9d11e Merge "msm: camera isp: Control camif interrupts on camif enable/disable" 2016-07-22 08:56:28 -07:00
Linux Build Service Account
ccb831883f Merge "msm: mdss: fix mdss errors on 32-bit compilation" 2016-07-22 08:56:27 -07:00
Linux Build Service Account
a21b7b7eb3 Merge "soc: qcom: glink: Included sched.h to avoid build error" 2016-07-22 08:56:26 -07:00
Linux Build Service Account
54911af486 Merge "arm: dma-mapping: Export arch_setup_dma_ops symbol" 2016-07-22 08:56:24 -07:00
Linux Build Service Account
00f2ccdbf8 Merge "soc: qcom: smem_xprt: Add CDSP entry in smem xprt driver" 2016-07-22 08:56:22 -07:00
Linux Build Service Account
55a7d839d0 Merge "ARM: dts: msm: Add G-Link SSR entries for MSMFALCON" 2016-07-22 08:56:21 -07:00
Linux Build Service Account
c29dc4ae0a Merge "ARM: dts: msm: Add SMEM entry for MSMFALCON" 2016-07-22 08:56:20 -07:00
Linux Build Service Account
a75cdc332b Merge "Bluetooth: HID: Add support for building hid drivers" 2016-07-22 08:56:19 -07:00
Sudhakar Manapati
1bb8dffb61 input: touchscreen: remove dead code in it7258 driver
IT7258 touchscreen driver creates a character device which is
not used by anyone. Remove this dead code

Change-Id: Ied8a0048d8af17fa593c1970cabb572aac338786
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-07-22 01:33:44 -07:00
Alfred.Deng
2e21c93ee9 input: touchscreen: Add Touch screen driver for IC it7258
This is the reference driver source code of it7258 touchscreen driver.
Signed-off-by: Alfred Deng <Alfred.Deng@ite.com.tw>
Git-commit: 3852a7ccce89c17ec3c4165acf9c81753c940104
Git-repo: git://github.com/ite-touch/touchscreen-driver

Change-Id: Ic1eab3ba79b8e8e5c259bb92f2692fd0db5fc8d3
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
(cherry picked from commit c25c3f1a0f29d7989b7d7058da74e465665bf279)
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-07-22 12:21:01 +05:30
Taniya Das
d81650468e clk: msm: Fix MDSS compilation issue
The MDSS clock drivers were not getting compiled due to an extra 'y', fix
the same.

CRs-Fixed: 1041122
Change-Id: I21e62361f40eb654c369048d01e158d4b96dd551
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-07-22 10:14:33 +05:30
Subbaraman Narayanamurthy
f56fc4b5af of_batterydata: Pass battery id directly to find battery profile
Currently power supply name is passed to get the battery profile
in of_batterydata_get_best_profile(). This creates a dependency
of waiting for the driver that has the power supply class device.

Improve this by passing the battery id directly to the API. This
way, getting battery id will be the responsibility of caller.

CRs-Fixed: 1043798
Change-Id: I7a8c2b2fcc9b43e2e858114f7312fccf96dc3f78
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-07-21 12:23:07 -07:00
Shubhraprakash Das
2826659913 msm: camera: isp: Vote bandwidth with clock enabled
Vote for bandwidth after clocks are enabled. For bandwidth
voting clocks need to be on.

CRs-Fixed: 1044777
Change-Id: I9be1ee26419c082cda6351ef6d5aeedc6e17de55
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-07-21 11:41:09 -07:00
Taniya Das
190ac0a1b8 clk: qcom: clk-dummy: Add a dummy clock provider
Add a dummy clock provider that registers a simple callback that
in turn always returns the dummy clock for any clk_get call. This is useful
for unimplemented clocks.

Change-Id: I08fcb174fd0e0c49f8069e106b48597bcdfe847d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-07-21 22:04:06 +05:30
Ashish Jain
e9276dfdcd ASoC: msm: qdsp6v2: DAP: Update check to validate data length
A big negative data length value can bypass the current check,
update the condition to ensure that only valid data length is used
to copy the params.

CRs-Fixed: 1041130
Change-Id: I6e1a58e901e4c042acfb0ab0a6223dec2949aefe
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2016-07-21 07:46:43 -07:00
Dhoat Harpal
c2e4cfd2db ARM: dts: msm: Add G-Link SSR entries for MSMFALCON
SSR entries contain the list of subsystems to notify when an SSR for a
given subsystem occurs. This information enables G-Link to handle
closing and re-opening channels in the case of SSR.

CRs-Fixed: 1043377
Change-Id: Ibd8ceb8149b3041ce1f58ac4c3642d7391b89385
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:52:30 +05:30
Dhoat Harpal
d375ea2d63 ARM: dts: msm: Add SMEM entry for MSMFALCON
Add the SMEM entry to enable the use of shared memory by different
processors in the SoC.

CRs-Fixed: 1043377
Change-Id: Ic36a67c724d7f8a0e64affba92856160cce914bb
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:38:32 +05:30
Dhoat Harpal
7e1c3ad225 soc: qcom: smem_xprt: Add CDSP entry in smem xprt driver
CDSP processor entry in function add subsys_name_to_id to convert
string cdsp to corresponding id.

CRs-Fixed: 1043377
Change-Id: Iba226aa328906427593ecae35fab3396f34c19ae
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:28:56 +05:30
Dhoat Harpal
ed6db47f7e soc: qcom: glink: Included sched.h to avoid build error
32 bit Compilation is failed due to undeclared usage of
TASK_UNINTERRUPTIBLE.

Include sched.h header file for the definition of
TASK_UNINTERRUPTIBLE.

CRs-Fixed: 1042813
Change-Id: I947b8d08f61624b914bd82caf4276364b9833cef
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:13:40 +05:30
Venkatesh Yadav Abbarapu
52096a1896 arm: dma-mapping: Export arch_setup_dma_ops symbol
Some test modules need to call "arch_setup_dma_ops" to setup
the proper dma operations.

Change-Id: Icc884b53c85941f59f84bed108b536cc18b8be60
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-07-21 17:42:20 +05:30
Dhoat Harpal
a3f2ed3879 soc: qcom: smem: Add CDSP processor ID
The local table of processor IDs maintained by SMEM must match the table
of processor IDs maintained by SMEM on remote processors, because the
IDs are global.

Update the local table of processor IDs to match the table on remote
processors.

CRs-Fixed: 1043377
Change-Id: I6df0575cf54003374a5ebdbfa54e169d3545ffe7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 17:40:52 +05:30
Hemant Gupta
0ef7e894f7 Bluetooth: HID: Add support for building hid drivers
This patch adds support for enabling uhid driver in kernel which
provides interface for user space hid module to interact with
hid drivers of kernel. Without support for uhid driver, Bluetooth
HID functionality is broken completely. Also support for vendor
hid drivers is enabled so that HID profile can be connected with
these HID devices.

Change-Id: If56742a9c6b6c4ef774da6e83d57aee56bf28842
CRs-Fixed: 553571
Signed-off-by: Hemant Gupta <hemantg@codeaurora.org>
2016-07-21 03:46:48 -07:00
Manish Poddar
80eb335deb msm: Camera buffer overflow fix
find_first_zero bit is considering addr parameter as unsigned
long and we are passing int variable.In the function it access
addr[i], so it tries to access 8 bytes , actual size of
open_idx and stream_id are 4 bytes.we change open_idx and
stream_id to long to fix it.

Change-Id: I510059cc8f495957bd2b5af9973b3495761edd06
Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
2016-07-20 22:50:49 -07:00
Abhijeet Dharmapurikar
bc356bece8 qcom-charger: smb2: configure input from wipower
Wipower feeds to the DCIN input of the smb2 charger and relies on
input current configurations on six different voltage ranges for
optimal power draw.

Provide means to configure the current limits in them via a device
tree setting.

Change-Id: I81d1dc3ed1d588d67525b15120e7d8b947536099
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-07-20 16:50:54 -07:00
Jordan Crouse
a5c4e52c5e msm: kgsl: Keep the active draw context until it is switched out
Instead of trying to make a decision to switch out the active
draw context for NULL at detach time leave the reference count
for it until the next context switch or until the next slumber
whichever comes first. This avoids races with the preemption
code and ensures a smooth transition.

A side effect is that we were depending heavily on the context
detach to reset the ringbuffer to the default at power down and
we didn't touch it on power up (though we did on soft reset and
wake from slumber. Curious).  Obviously if we are no longer
switching we will need to force the default pagetable during start
but it seems to me like this would be the right thing to do even
if we were still switching out.

CRs-Fixed: 1009124
Change-Id: Ic0dedbadff8df192096292b221130c8ef5b31e12
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-07-20 15:19:35 -06:00
Jordan Crouse
d8fa23c244 msm: kgsl: Force all command level context switches to the GPU
Force any command triggered context switch to the GPU - it should
be on the GPU anyway, but we were already passing a flags parameter
(unused) so this is a good chance to force the issue and make sure
that the cpu path decision isn't in play here.

CRs-Fixed: 1009124
Change-Id: Ic0dedbadb277a6498d0840b45c90e1265e2f354a
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-07-20 15:19:34 -06:00
Jordan Crouse
cdb650787d msm: kgsl: Record the ringbuffer start of pipeline timestamp
We are only writing the ringbuffer start of pipeline timestamp for
internal commands that do not have a draw context associated which
happen rarely (if ever).  We should be recording the timestamp for
*ALL* commands so when something goes wrong we can get a fuller
idea of the timestamp picture for each ringbuffer.

CRs-Fixed: 1009134
Change-Id: Ic0dedbad6d99130e31cd8a06dfe025610e9157a8
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-07-20 15:19:34 -06:00