Initialization code was split between kgsl_device_probe
and kgsl_register_device, which made the code unclear and
error handling difficult. Now all initialization of data
structures happens in probe, and kgsl_register_device only
manages the /dev file.
Change-Id: I85d49c305310b943ab7600762f1f230804a3b9a8
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
There are many fields in kgsl_device that are always initialized
the same way. Move them to a macro, KGSL_DEVICE_COMMON_INIT,
so the correct static initializers can be used by both 3d and 2d.
Change-Id: I8362957548199112517457e0f94bfe2bd5f707f9
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
Use GFP_ATOMIC instead of GFP_KERNEL to make kalloc atomic
in vfe irq handler.
Change-Id: Ie91d60e1301cdb45b925b5699441ea3c37ff41ef
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
wwan serial driver sets suspend flag when it goes to suspend.
Driver puts any write request to delayed queue during suspend
and submits the delayed write requests while resuming and clears
the suspend flag after that. This creates a race condition where
write request comes between queuing the delayed write request and
clearing the suspend flag.
CRs-Fixed: 360555
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Change-Id: Ib15b80bb7e289db66a6306b6147f058b5e78f3e5
Add the size of the L1 cache buffer to the cache dumping
platform data to allow the L1 cache to be properly dumped.
Change-Id: I0394aafe8e949ead8631d48f18fdc53ecc40c0c4
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
clk_prepare and clk_unprepare are now required to be called before
clk_enable and after clk_disable. Do this for the dma driver.
Additionally, split the msm_dmov_clk_toggle function into two, since we
always know the value of the second argument at compile time.
Change-Id: Ib6904c551d7d76badadd47e63c3b7f1cdf51ad33
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Converting the dma driver to mutexes is a requirement for using the new
clk_prepare and clk_unprepare apis. In order to deal with callers who
run in atomic context, refactor the enqueuing code to run in a
workqueue. Introduce a new spinlock that only protects the command lists
and not the hardware so the enqueue routine can add to the lists in
atomic context.
Change-Id: If681dece4421a0e28afa27a1aa7ccebf19f60056
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Previously there were two interfaces for flushing a channel, the
difference between them being rather ill defined. Both would end up
with the same result if used correctly, and they only varied in error
conditions.
Change-Id: If8dcf1d1b7fc2e7417508b67ca3ceeffe77fa658
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Add missing break statement in AUDIO_FLUSH ioctl in audio_out driver.
Add missing braces for the conditional check for buffer size in
AUDIO_SET_STREAM_CONFIG ioctl for AMR NB, EVRC and QCELP drivers.
Correct the loop terminating logic in audpcm_in_flush() function.
Add break statement in AUDPP_MSG_FLUSH_ACK ioctl in WMA and WMAPro
drivers.
CRs-Fixed: 355773
Change-Id: Iba07194c9a7332ff45490533f2ca09ab6a8742aa
Signed-off-by: Phani Kumar Allada <pallad@codeaurora.org>
This variable enables Content Protection support
for 8064 target.
Change-Id: Iac3c1190b7e0e985729e8527ae8f043d499d3ddb
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
If the A2 power collapse feature is disabled, bam_dmux will likely vote
for dfab twice in a row, which should not happen. This is because the
first vote is done when it is assumed that A2 PC will be enabled, and that
vote is not accounted for in the internal driver state when A2 PC is
disabled.
CRs-Fixed: 361733
Change-Id: Ib3b1063dde5f3542b81d699b53d3e2cb35e40fa7
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Metadata memory is not freed when there is
memory allocation failure in ddl open. Fixed
this issue by freeing the metadata memory.
CRs-Fixed: 353109
Change-Id: I3f6fd93498aea0ce78092bd3a28cf08625b0ca77
Signed-off-by: Anil Gahlot <anilg@codeaurora.org>
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
Initial support to add the iomaps for MSM9625
Change-Id: Iae4bb671bd5246c6c211474a0a27ac2c6ed6cde8
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
VCAP was disabled by default since board checks were not fully
in place before.
Change-Id: Ie74e0d2fb6b1eb1a62adb8e2b38b20c19c4a804b
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
1.Add Black Level Trigger register values to register set.
2.Change Group hold ON/OFF register base address & data.
3.Update correct exposure calculations,especially during exposure
switch from light to dark.
4.Access of Frame lenght lines is protected under Group Hold ON/OFF
CRs-Fixed: 359509
Change-Id: I8dd748f1b82850e565928bf4ea4c890ebae71d63
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
Configure SDIO over SDC4 slot.
Do not enable SDC4 as the needed GPIO lines(GPIO#84-88)
are already in use by RIVA for WLAN.
CRs-fixed: 330232
Change-Id: I0755022fe6e19ee12b2ae078bd8f73eb30f1dcc2
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
Configure SDIO over SDC2 slot.
Do not enable SDC2 as the needed GPIO lines are already
in use by HSIC(GPIO#91) and Ethernet(GPIO#89-90).
CRs-fixed: 330232
Change-Id: Ia6efc61f2cb898009be06b3b426e7da755fcfcd3
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>