Commit Graph
266788 Commits
Author SHA1 Message Date
Jeremy Gebben 4204d0f3c0 msm: kgsl: use devres for register memory and irq
This simplfies probe error handling.

Change-Id: Ic5b333fd0d3209d9d3a655c2785191aead85f44f
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2012-05-16 09:00:22 -06:00
Jeremy Gebben 4f5f0de6d9 msm: kgsl: restructure common probe and remove
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>
2012-05-16 09:00:22 -06:00
Jeremy Gebben 84d75d0949 msm: kgsl: use more static initializers for struct kgsl_device
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>
2012-05-16 09:00:21 -06:00
Linux Build Service Account 3d45def14b Merge "usb: serial: Fix race between write after suspend and resume" into msm-3.0 2012-05-16 04:57:36 -07:00
Linux Build Service Account cdc432fff3 Merge "msm: camera: Fix for high power issue in s5k4e1 actuator" into msm-3.0 2012-05-16 04:57:32 -07:00
Linux Build Service Account 6883e539ee Merge "msm: iomap: Add the io mappings for MSM9625" into msm-3.0 2012-05-16 00:50:48 -07:00
Linux Build Service Account 52b0e03400 Merge "msm: socinfo: Add support for MSM9625" into msm-3.0 2012-05-16 00:50:44 -07:00
Linux Build Service Account fcb27e8e2d Merge "msm: kgsl: Update clock API" into msm-3.0 2012-05-15 23:10:41 -07:00
Linux Build Service Account 2aee0c8d77 Merge "msm: restart: initialize reboot code at early initcall time" into msm-3.0 2012-05-15 21:33:28 -07:00
Linux Build Service Account 3bcdc1d525 Merge "msm: vidc: Metadata memory release issue." into msm-3.0 2012-05-15 21:33:27 -07:00
Linux Build Service Account 04089e88ec Merge "msm: camera: Update gpio numbers for SKU7" into msm-3.0 2012-05-15 21:33:25 -07:00
Linux Build Service Account f46fc36c7d Merge "msm_fb: display: Add support for MIPI NT35510 client on SKU5" into msm-3.0 2012-05-15 21:33:22 -07:00
Linux Build Service Account 1fbda9905f Merge "msm: camera: Make memory allocation atomic in vfe irq handler" into msm-3.0 2012-05-15 21:33:19 -07:00
Linux Build Service Account d0f59cd73e Merge "msm: devices-8960: Add L1 cache size" into msm-3.0 2012-05-15 21:33:17 -07:00
Raju P.L.S.S.S.N d77287be02 msm: camera: Make memory allocation atomic in vfe irq handler
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>
2012-05-16 06:46:06 +05:30
Raju P.L.S.S.S.N c71e1a8704 msm: camera: Update gpio numbers for SKU7
Update front (ov7692) & back (ov5647) sensor gpio
numbers for 8x25 SKU7 target.

Change-Id: I94867c99f9bda04c149203d60ba1e173a96d8ec1
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2012-05-16 06:41:16 +05:30
Linux Build Service Account 76e812b638 Merge "msm: dma: Use clk_prepare and clk_unprepare" into msm-3.0 2012-05-15 18:07:16 -07:00
Linux Build Service Account b9ea22e741 Merge "msm: camera: Change OV2720 exposure setting" into msm-3.0 2012-05-15 18:07:15 -07:00
Linux Build Service Account 74b52ccd0c Merge "msm: audio: qdsp5: Fix for logical errors in qdsp5" into msm-3.0 2012-05-15 18:07:13 -07:00
Linux Build Service Account a88c3f88a7 Merge "devices-8064: Enable Content Protection for 8064." into msm-3.0 2012-05-15 18:07:12 -07:00
Linux Build Service Account 645ce60997 Merge "msm: bam_dmux: fix duplicate dfab vote" into msm-3.0 2012-05-15 18:07:10 -07:00
Linux Build Service Account 522fdfd4dc Merge "msm: dma: Convert spinlocks to mutexes for new clock apis" into msm-3.0 2012-05-15 18:07:06 -07:00
Linux Build Service Account 7f6c6f3116 Merge "msm: dma: unify flush and stop_cmd interfaces" into msm-3.0 2012-05-15 18:07:05 -07:00
Hemant Kumar 8e52b1270a usb: serial: Fix race between write after suspend and resume
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
2012-05-15 15:02:33 -07:00
Laura Abbott 2ad48f9441 msm: devices-8960: Add L1 cache size
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>
2012-05-15 14:36:15 -06:00
Linux Build Service Account 58dfe38b0a Merge "msm: camera: Fix Greenish Edges in corners for CW & Horizon images" into msm-3.0 2012-05-15 12:07:11 -07:00
Linux Build Service Account 006b6264cb Merge "msm: 8960: Configure SDIO on SDC4 slot" into msm-3.0 2012-05-15 12:07:07 -07:00
Linux Build Service Account 9b258a3a69 Merge "msm: mpq8064: Enable VCAP by default, allow board to enable" into msm-3.0 2012-05-15 12:07:04 -07:00
Linux Build Service Account da7983d4a5 Merge "msm: 8960: Configure SDIO on SDC2 slot" into msm-3.0 2012-05-15 12:06:59 -07:00
Jeff Ohlstein 82dd166185 msm: dma: Use clk_prepare and clk_unprepare
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>
2012-05-15 11:34:25 -07:00
Jeff Ohlstein c650174173 msm: dma: Convert spinlocks to mutexes for new clock apis
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>
2012-05-15 11:34:24 -07:00
Jeff Ohlstein c00383d302 msm: dma: unify flush and stop_cmd interfaces
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>
2012-05-15 11:34:24 -07:00
Phani Kumar Allada ee940eb44f msm: audio: qdsp5: Fix for logical errors in qdsp5
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>
2012-05-15 11:40:38 -06:00
Linux Build Service Account a455d80e94 Merge changes Ia0648af6,Ie257475a into msm-3.0
* changes:
  msm: kgsl: add a225-specific registers to dumps
  msm: kgsl: fix format of the rbbm read error message
2012-05-15 10:35:41 -07:00
Linux Build Service Account 7cb2c9d904 Merge "msm: board-8x60: Migrate to new clock APIs" into msm-3.0 2012-05-15 10:35:36 -07:00
Linux Build Service Account 1424c53ce7 Merge "msm: Add support for FMEM and MM heap at fixed location on 8930" into msm-3.0 2012-05-15 10:35:31 -07:00
Linux Build Service Account 39180682d9 Merge "msm: pil: Handle reference counts correctly on boot failure" into msm-3.0 2012-05-15 10:35:28 -07:00
Linux Build Service Account 7f151a5616 Merge "board-msm7627a-io: Add touch support for EVT device" into msm-3.0 2012-05-15 10:35:27 -07:00
Linux Build Service Account 2a14b9288d Merge "msm: defconfig: 9615: Disable the HVC_DCC and DCC consoles" into msm-3.0 2012-05-15 10:35:23 -07:00
Linux Build Service Account dd8c962864 Merge "Revert "Revert "mmc: sdio: optimized SDIO IRQ handling for single irq""" into msm-3.0 2012-05-15 10:35:20 -07:00
Deepak kotur eda295a146 devices-8064: Enable Content Protection for 8064.
This variable enables Content Protection support
for 8064 target.

Change-Id: Iac3c1190b7e0e985729e8527ae8f043d499d3ddb
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
2012-05-15 10:06:01 -07:00
Jeff Hugo 5f57ec970b msm: bam_dmux: fix duplicate dfab vote
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>
2012-05-15 10:59:06 -06:00
Anil Gahlot af296715bd msm: vidc: Metadata memory release issue.
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>
2012-05-15 09:46:19 -07:00
Rohit Vaswani 58fc0c6cfe msm: iomap: Add the io mappings for MSM9625
Initial support to add the iomaps for MSM9625

Change-Id: Iae4bb671bd5246c6c211474a0a27ac2c6ed6cde8
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2012-05-15 09:07:47 -07:00
Rohit Vaswani 47ee9e98c7 msm: socinfo: Add support for MSM9625
Add dummy socinfo for MSM9625.

Change-Id: I839c1afa97b7a37c80df6aa8edbd857f4cd738c3
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2012-05-15 09:07:26 -07:00
Linux Build Service Account 7d45dd5c26 Merge "msm: camera: Update vfe clock rate specific to sensor" into msm-3.0 2012-05-15 09:03:21 -07:00
Terence Hampson 36b70729a7 msm: mpq8064: Enable VCAP by default, allow board to enable
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>
2012-05-15 11:16:21 -04:00
Lokesh Kumar Aakulu 94eeeaad68 msm: camera: Fix Greenish Edges in corners for CW & Horizon images
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>
2012-05-15 19:54:06 +05:30
Pratibhasagar V 26cf26516e msm: 8960: Configure SDIO on SDC4 slot
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>
2012-05-15 18:18:30 +05:30
Pratibhasagar V 57c808e9cc msm: 8960: Configure SDIO on SDC2 slot
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>
2012-05-15 18:18:05 +05:30