Commit graph

569870 commits

Author SHA1 Message Date
Andrey Markovytch
e29851c910 PFK: fix race between key set and key invalidate in TZ
When working with multiple files and multiple threads, the following
scenario can occur:
1. File Close -> Key cache removal -> context switch
2. Open new file -> occupy the entry cleaned in 1
   -> TZ_ES_SET_ICE_KEY -> context switch
3. Back to 1 -> TZ_ES_INVALIDATE_ICE_KEY
4. Back to 2 -> ICE uses the key that is already invalid
5. Crash due to PARTIALLY_SET_KEY_USED

To fix this, pfk must know when requests using some key are completed.
Only then key removal shall be allowed and until then key invalidation
must wait.
A new callback was added to let clients inform PFK when requests end.

Change-Id: Id7f8a3302fac9fafd1203d8d56ca13d59b45bbd5
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-04-25 17:45:36 -07:00
Andrey Markovytch
03a29a9ee5 md: dm-req-crypt: Increase mempool size for dm-req-crypt data
DM layer allocates pool size of 256 for request based module while
dm-req-crypt internally allocates pool for minimum 16 requests.
Increasing pool size of dm-req-crypt to be consistent with DM layer.
Also, changing GFP mask for allocation from pool, depending upon
whether call is made from atomic context or not.

Change-Id: I9dfeb46520e0d1b1fc6f850a007fce35bdc60d35
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-04-25 17:45:24 -07:00
Andrey Markovytch
0fb5a0c53e crypto: ice: add stub bus scaling functions
Bus scaling might be disabled in the kernel configuration of
some platforms, in which case initialization will fail due
to the lack of bus scaling support.
Add stub functions to allow initialization without bus scaling.

Change-Id: Ib1edeac145ef1696e657f775cd938839b79dbac0
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-04-25 17:45:12 -07:00
Andrey Markovytch
07d9b132b4 crypto: ice: update ICE HCI v3
ICE HCI has been updated to v3 so some registers and sequences
were changed. Update the driver to reflect the updated HCI.

Change-Id: I59ba98d86bf0532a7e4c2cfa03d65e57e6a7fdcf
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-04-25 17:45:01 -07:00
Aravind Venkateswaran
2dc00c9bd7 ARM: dts: msm: add MDSS DSI device node for msmcobalt
Add MDSS DSI device node for msmcobalt which is needed to drive the
primary display no the DSI interface.

CRs-Fixed: 1000724
Change-Id: Ib2fe58e6c4f0da7a14c10b74328c17fc5abaa7c8
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-25 17:44:50 -07:00
Joonwoo Park
f8bf0307bc sched: revise sched_boost to make the best of big cluster CPUs
At present sched_boost changes scheduler to place tasks on the least
loaded CPU under the assumption both big and little clusters capacities
are same at the same level of frequency.  This is suboptimal for the
big.Little system that doesn't have such a symmetrical capacity between
big and little CPUs.

Fix sched_boost to place tasks on the big CPUs for the non-symmetrical
capacity target.

CRs-fixed: 1006303
Change-Id: I752f020acf1a76580edb5cd0e5ad283b62edfeed
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-04-25 17:44:39 -07:00
Sagar Dharia
6ad949a126 ARM: dts: Add slimbus instance entries for msmcobalt
Add QCA and audio slimbus instance entries. QCA entry is disabled
by default and will need to be enabled on applicable boards where
QCA slimbus slave is present.

CRs-Fixed: 998162
Change-Id: I3255322fe3ee9784c688dd4ec6eea69974a4d684
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-04-25 17:44:32 -07:00
Aravind Venkateswaran
250367b21b ARM: dts: msm: add MDSS DSI PLL device node for msmcobalt
List all the resources needed by the MDSS DSI PLL device and add the
corresponding device node for msmcobalt. The DSI PLL is the source for
all the branch clocks needed to drive pixel data over the DSI interface.

CRs-Fixed: 1000576
Change-Id: If851190cc2ec863d8d8a556e1002d7a9f08668d1
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-25 17:44:15 -07:00
Aravind Venkateswaran
cffac32b87 clk: msm: mdss: add support for dsi pll on msmcobalt
Add support to program the DSI PLL on msmcobalt which is needed to drive
the DSI byte and pixel clocks.

CRs-Fixed: 1000576
Change-Id: Ic11a3747a0e008e1f71df91a1a79d33242d2a2a4
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-25 17:44:03 -07:00
Sungjun Park
e1cbb2f68d bluetooth: Fix populating issue for no DT node
In case no DT node name, it return error and doesn't go
through other DT node for Bluetooth regulators. To support
multiple Bluetooth chipset, it need to continue to check
remaining DT node since some DT node maybe not available for
some Bluetooth Chipset.

Change-Id: I2427f674ef4889c39580dc2568a6b9566f03f8f2
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2016-04-25 17:43:52 -07:00
Abhimanyu Kapur
d6c0557cb7 ARM: dts: msm: Move QUSB PHY device node from dt to st on msmcobalt
This change moves QUSB PHY device node from dt source file to st
include file for msmcobalt.

CRs-Fixed: 1003142
Change-Id: I113c42a906b2b455026326a98e4d68bb85c5b10b
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-04-25 17:43:41 -07:00
Deepak Katragadda
ac6a03867d clk: msm: clock-gcc-cobalt: Source HMSS RCGs off cxo ao input
The hmss_gpll0_clk_src is being sourced off the gpll0 which
uses the cxo_clk_src RPM resource. This causes XO shutdown
to fail. Use the gpll0_ao source instead.
The hmss_ahb_clk_src RCG frequency table is also updated to
use the cxo_clk_src_ao to generate XO frequency.

CRs-Fixed: 1001330
Change-Id: Ic5cba530ea22cd19a20a21f0c33433c5e023debc
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-04-25 17:43:29 -07:00
Subbaraman Narayanamurthy
d0d54f4a11 ARM: dts: msm: add LPG and LABIBB devices to pmicobalt
Add the following devices that are present in pmicobalt.

- 6 LPG channels from address 0xb100-0xb600 along with LPG_LUT
  @ address 0xb000.
- LABIBB regulator device that can support configuring LAB and
  IBB modules @ address 0xde00 and 0xdc00.

CRs-Fixed: 1005724
Change-Id: Ic252e83f8a7273796ddc0e42c0ae37f339931499
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-04-22 15:06:51 -07:00
David Dai
30add65348 soc: qcom: msm_bus: remove legacy msm_bus support
Remove unused legacy bus code and APIs

CRs-Fixed: 1006336
Change-Id: I15811b787b54004e1aaba859e4c911be8f9eb285
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2016-04-22 15:06:40 -07:00
Ujwal Patel
866cf4aab9 msm: mdss: remove obsolete code related to write-back and rotator
Remove write-back and rotator related obsolete code in order to reduce
dead code maintenance.

CRs-Fixed: 987777
Change-Id: I917d9b5b777fb41f3f87213d8d9e6e7ddf73f92c
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
2016-04-22 15:06:30 -07:00
Ramesh V
3e1bedddbd msm: camera: Disable CSIPHY IRQ after sof freeze
Issue: CSIPHY IRQ enabled when kernel recivies possible sof freeze
and will not disable if there is no csiphy release call from backend
which inturn leads watchdog bark.

Resolution: Dump the CISPHY IRQ at the time of possible sof freeze
and disable them.

CRs-Fixed: 996571

Change-Id: I3c6040b81c04660d3a0ac7ed707e1f4b22498dbd
Signed-off-by: Ramesh V <ramev@codeaurora.org>
2016-04-22 15:06:18 -07:00
Venkat Gopalakrishnan
82e1a184e6 scsi: ufs-qcom: Fix bus scaling usage in UFS driver
Use QCOM_BUS_SCALING as opposed to MSM_BUS_SCALING

Change-Id: I23945a040914d55aa483cfec6ef81e7342421f2e
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-04-22 15:06:07 -07:00
Joonwoo Park
9e41199889 defconfig: msmcortex: Enable CONFIG_SCHED_HMP_CSTATE_AWARE
Enable CONFIG_SCHED_HMP_CSTATE_AWARE in order to optimize task
placement with CPUs C-state.  This brings better system performance.

CRs-fixed: 1006303
Change-Id: I18e62015371143bca56396c747eaad3b22c5e3a3
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-04-22 15:05:56 -07:00
Joonwoo Park
0af7da0589 ARM: dts: msm: update CPU efficiency property
Update CPU efficiency property for msmcobalt so that scheduler can utilize
for task placement decision.

CRs-fixed: 1006303
Change-Id: Ifb59d6b1fcb1207053438786df2472417a2db93f
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-04-22 15:05:45 -07:00
Joonwoo Park
16c433e4c5 sched: fix excessive task packing where CONFIG_SCHED_HMP_CSTATE_AWARE=y
At present among the same power cost and c-state CPUs scheduler places
newly waking up task on the most loaded CPU which can incur too much of
task packing on the same CPU.  Place onto the most loaded CPU only when
the best CPU is in idle cstate, otherwise spread out by placing onto the
least loaded CPU.

CRs-fixed: 1006303
Change-Id: I8ae7332971b3293d912b1582f75e33fd81407d86
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-04-22 15:05:34 -07:00
Joonwoo Park
2e0ebb0155 sched: add option whether CPU C-state is used to guide task placement
There are CPUs that don't have an obvious low power mode exit latency
penalty.  Add a new Kconfig CONFIG_SCHED_HMP_CSTATE_AWARE which controls
whether CPU C-state is used to guide task placement.

CRs-fixed: 1006303
Change-Id: Ie8dbab8e173c3a1842d922f4d1fbd8cc4221789c
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-04-22 15:05:24 -07:00
Syed Rameez Mustafa
d4ca4d767f sched: update placement logic to prefer C-state and busier CPUs
Update the wakeup placement logic when need_idle is not set. Break
ties in power with C-state. If C-state is the same break ties with
prev_cpu. Finally go for the most loaded CPU.

CRs-fixed: 1006303
Change-Id: Iafa98a909ed464af33f4fe3345bbfc8e77dee963
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
[joonwoop@codeaurora.org: fixed bug where assigns best_cpu_cstate with
 uninitialized cpu_cstate.]
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-04-22 15:05:13 -07:00
Syed Rameez Mustafa
c34b0b85aa sched: Optimize wakeup placement logic when need_idle is set
Try and find the min cstate CPU within the little cluster when a
task fits there. If there is no idle CPU return the least busy
CPU. Also Add a prev CPU bias when C-states or load is the same.

CRs-fixed: 1006303
Change-Id: I577cc70a59f2b0c5309c87b54e106211f96e04a0
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-04-22 15:05:01 -07:00
Prakash Kamliya
3edc12e8ea msm: kgsl: Update ucode workarounds for A5xx GPUs
Update ucode workarounds for A5xx GPUs based on new
microcode and hardware changes.

CRs-Fixed: 1000396
Change-Id: I87a1ba9bfc441cad2ed6a6959d07af1cc1e2c7bc
Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org>
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-04-22 15:04:52 -07:00
Hemant Kumar
bbb0b3be44 usb: gadget: f_gsi: Add free_func call back
Without free_func call back config causes NULL pointer
dereference.

CRs-Fixed: 1003784
Change-Id: Idb7717315da20fa3331303136d7ba1d05696f063
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-04-22 15:04:40 -07:00
Hemant Kumar
7ab51c2789 usb: gadget: f_gsi: Fix bug in handling control transfer
Driver is overriding the ep0 request context with gsi driver
context even if it does not intend to handle the setup completion.
This is causing flood of warnings when composite_setup_complete()
is type casting the function driver context as cdev and failing to
match ep0 request pointer with cdev->req. Hence only override
context when driver is overriding the complete call back.

CRs-Fixed: 1003784
Change-Id: I176671ae09f17d920643eeeec8262a6f97856712
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-04-22 15:04:29 -07:00
Hemant Kumar
99e000989b usb: gadget: f_gsi: Allocate dma memory using gadget device's parent device
Use "gadget->dev.parent" instead of "&gadget->dev" in the first argument
of dma_zalloc_coherent() because the parent has a udc controller's device
pointer. Otherwise, iommu functions are not called in ARM environment and
allocation is failing.

CRs-Fixed: 1003784
Change-Id: I2ea75b533f857189856840e437a96891eea5699c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-04-22 15:04:18 -07:00
Hemant Kumar
599b6b32a0 usb: gadget: f_gsi: Fix bug in accessing evt queue lock
In case gsi_update_function_bind_params() returns failure
before initializing spin lock for event queue, gsi_bind()
continues further by calling post_event() which acquires
the uninitialized spin lock causing BUG. Hence check for
return value of gsi_update_function_bind_params() before
calling post_event().

CRs-Fixed: 1003784
Change-Id: I0fcad2467d15f311feecf3b9cee9209f7453485c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-04-22 15:04:06 -07:00
Devdutt Patnaik
a431c4747f usb: dwc3: Allocate fixed h/w eps for GSI endpoints
Adds support to allocate specific hardware EPs to
GSI enabled endpoints. Creates EP list with names
"gsi-epin" for IN and "gsi-epout" for OUT EPs that
are intended for use by the GSI function driver.
The EPs are reserved from the end of the EP list.

CRs-Fixed: 1003784
Change-Id: I70ebce8c2717baaea38f7b6235976d8a522eb9fd
Signed-off-by: Devdutt Patnaik <dpatnaik@codeaurora.org>
2016-04-22 15:03:56 -07:00
Hemant Kumar
5488a16eb9 ARM: dts: msm: Set number of GSI event buffer for msmcobalt
This allows configuration of event buffers for GSI based
hardware accelerated endpoints.

Change-Id: If9ae84c0de214bcb5057d14a6960b6fb528c6c14
CRs-Fixed: 1003784
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-04-22 15:03:44 -07:00
Hemant Kumar
b279a34274 usb: dwc3: Add support for GSI event buffer configuration
Add additional event buffers for GSI based hardware accelerated
endpoints and its related configuration.

CRs-Fixed: 1003784
Change-Id: Ibedf73690040b8bd872f5621835680a66c22e265
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-04-22 15:03:29 -07:00
Gidon Studinski
6a4f3ec86c msm: ipa3: enable smart prefetch control for xDCI
Enable smart prefetch control for xDCI channels.
This is done by configuring the channel scratch in GSI.

Change-Id: I9a301da3c5426649b40069103d545e50bc75aad2
CRs-Fixed: 1004467
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
2016-04-22 15:03:18 -07:00
Gidon Studinski
b391ac1b48 msm: ipa3: enable smart prefetch control for MHI
Enable smart prefetch control for MHI channels.
This is done by configuring the channel scratch in GSI.

Change-Id: Icff18699ce96e224d6f58b8aadce006f3d5210ee
CRs-Fixed: 1004468
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
2016-04-22 15:03:05 -07:00
Ashwini Rao
752fcde3d8 ARM: dts: msm: Add jpeg, FD and CPP HW dtsi changes for msmcobalt
Add jpeg, FD and CPP HW dtsi nodes for jpeg encoder, jpeg DMA,
face detection and CPP on msmcobalt.

CRs-Fixed: 1001324
Change-Id: Ia62486e070310c3dccc0dc84490e5a9147ba8a56
Signed-off-by: Ashwini Rao <ashwinik@codeaurora.org>
2016-04-22 15:02:40 -07:00
Hardik Kantilal Patel
4621d9062c ARM: dts: msm: Add icnss node for msmcobalt
Add Adrestea base memory address and Copy Engine interrupt
mapping entry.

CRs-Fixed: 999575
Change-Id: Iab3d4aceeafc28b1df73fa9570405c6f21535f29
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-04-22 15:02:30 -07:00
Stephen Oglesby
634f85a4ab ASoC: msm: qdsp6v2: Limit codec register config packet size
APR packet size is now capped at 512 bytes. The codec register
config data is 740 bytes. We now break up this data into multiple
packets no larger than the defined maximum.

CRs-fixed: 974874
Change-Id: I2bd3cb01ff389ffd1d319239019e11d35d8c16b6
Signed-off-by: Stephen Oglesby <soglesby@codeaurora.org>
2016-04-22 15:02:18 -07:00
Mohit Aggarwal
de210aad0f defconfig: arm64: msm: Enable QPNP RTC config flag
RTC driver is responsible for reading RTC value
and also used for reading/setting Alarm value.
This patch enables QPNP RTC config.

Change-Id: Ibc2aee233e657ba73b42f41e9b20859e818d9e1d
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2016-04-22 15:02:08 -07:00
Shiv Maliyappanahalli
52ba772633 soc: pcm: add arch_setup_dma_ops call
Make sure that DMA ops are initialized before attempting to allocate
the DMA substream buffer.

Change-Id: I03bcb4ac7ea415c00ce3047b844455f5c6546400
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-04-22 15:01:57 -07:00
Jack Pham
2d242b7ef9 usb: dwc3: msm: Move extcon registration later in probe
It is possible that the extcon notifier may be triggered
soon after it is registered, but before the mdwc->dwc3
has been populated. This leads to a NULL pointer dereference
in vbus_notifier. Fix this by moving the extcon_register()
call later in the probe until when the the driver would be
ready to handle an immediate notification.

CRs-Fixed: 1003908
Change-Id: I403da246f18c25a77fa7f66e152cbcdca8c00b16
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-04-22 15:01:46 -07:00
Yuanyuan Liu
e1ed71b374 cnss: Fix compilation error of missing CONFIG_CNSS_SECURE_FW
Add #ifdef CONFIG_CNSS_SECURE_FW for cnss_get_fw_ptr and
cnss_get_sha_hash.

Change-Id: I884b4ab3d552b12dd83f852be565a5dc4e69e21a
CRs-Fixed: 971688
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-04-22 15:01:34 -07:00
Skylar Chang
a5e4baeeeb msm: ipa3: set GPI channels to DB mode
In order to enable prefetch control in GSI,
channels needs to be configured to doorbell mode.

CRs-Fixed: 1000819
Change-Id: I4847982f48b09de1690bb474db9a60e018e0c0d6
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-04-22 15:01:21 -07:00
Mayank Rana
362a9cd138 USB: f_fs: Use HS and SS descriptors without checking gadget speed
User space function driver could always provide descriptors for all
speeds irrespective of USB speed supported with USB gadget. If USB
gadget is not high/super speed capable, f_fs driver doesn't parse
HS or SS descriptors which results into OS descriptors processing
fail due to checking against wrong offset within received descriptor
buffer. Fix this issue by always processing HS and SS descriptors
without checking USB gadget speed.

CRs-Fixed: 1003565
Change-Id: Icb6537271ce55e44f5fc3e1ef28dd4d6810b681f
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-04-22 15:01:13 -07:00
Aravind Venkateswaran
ed7b9f5828 msm: mdss: add support for configuring DSI PHY v3
Add the initialization and shutdown programming sequence for the DSI PHY
v3 which is used on msmcobalt. This includes configuring the phy lane
timings, strength control, and regulator settings.

CRs-Fixed: 1000724
Change-Id: I6a8d45ef71316b5a935a711a5b0a48c055c1c392
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-22 15:01:01 -07:00
Aravind Venkateswaran
2df9ce47f6 msm: mdss: add support dsi phy v3 timing used on msmcobalt
Add PHY timing calculation support for v3 PHY used on msmcobalt.
This needed to program the DSI PHY to drive the link at a specific
link rate based on the DSI panel configuration.

CRs-Fixed: 1000724
Change-Id: I180af3544c111cb9f491ea9fb77638beece8299c
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-22 15:00:49 -07:00
Aravind Venkateswaran
af48722765 msm: mdss: refactor dsi phy timing calculations
Refactor the DSI PHY timing calculations for v2 PHY. This will make things
easier when support has to be added for new revisions.

CRs-Fixed: 1000724
Change-Id: Icd99a3b29feddc64e42a2b4a18987579b7f52e77
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-22 15:00:37 -07:00
Aravind Venkateswaran
37b3e8da8b msm: mdss: add support for dsi byte interface clock
DSI controller version 2.0 and above require configuring an additional
link clock called the byte interface clock which is used to drive all
high-speed PPI signals. Add support to configure this clock.

CRs-Fixed: 1000724
Change-Id: I907823b21ad2c6152899233fc52f38d17bcc5ed1
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-22 15:00:27 -07:00
Padmanabhan Komanduru
d5faefb415 msm: mdss: refactor support for controlling LCD mode selection GPIO
For certain board configurations, the enable port on display
connector card needs to be controlled via LCD mode selection
GPIO. For example, for DSC/single DSI mode, the GPIO needs to
be driven high and for non-DSC/split DSI mode, the GPIO
needs to be driven low. Add support for this.

CRs-Fixed: 1000724
Change-Id: I3546fc2b5dacd77e9d2cd2ea843481dc34bfef54
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-22 15:00:15 -07:00
Aravind Venkateswaran
7dcf51415c msm: mdss: modify DSI phy init sequence for split-DSI config
For split-DSI hardware configuration, both the DSI controller clocks are
sourced from a single PLL (clock-master). In such cases, it is important
to initialize both DSI0 PHY and DSI1 PHY prior to enabling the PLL.
This is due to the fact that for certain HW versions, PLL programming
for the clock-master may require configure some PLL registers on the
clock-slave. If the PHY init sequence for the clock-slave is called
after PLL is programmed, it could reset those PLL registers leading to
unexpected behavior. Fix this by ensuring that PHY init sequence is done
for both controllers at the same time for split display usecases.

CRs-Fixed: 1000724
Change-Id: I09fb8097d31cd0390cea5c32bb7aabceeff2c37e
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-04-22 15:00:04 -07:00
Hemant Kumar
de2f55c7c0 usb: gadget: f_cdev: Fix recursive spin lock bug
Since driver context f_cdev is not freed until the driver
is unloaded, port_usb remains available to be accessed for
driver operations. Hence there is no need to protect port_usb
using spin lock. Hence remove un-needed spin lock/unlock from
some of the APIs which prevents recursive spin lock. Also, make
sure char device is destroyed before f_cdev context is freed up.

Change-Id: Ib91f23c070065185da72387300304f2690d5a8b1
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-04-22 14:59:50 -07:00
Mayank Rana
4579ab018e usb: gadget: composite: Set default value of bcdUSB as 0x0200
When l1_supported is false and USB gadget max speed is high speed
only, composite framework is not updating bcdUSB as 0x0200 which
results into bcdUSB set as 0x00 used as part of device descriptors.
This is against USB specification and also USB host may behave
differently. Fix this issue by setting default value of bcdUSB as
0x0200.

CRs-Fixed: 1006330
Change-Id: I8330f0609540d97f5bca78c42ed193537f497a73
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-04-22 14:59:39 -07:00