Commit Graph

256866 Commits

Author SHA1 Message Date
Sidipotu Ashok
ab34ca44fc msm: board-msm7x27a: Correcting SND_CURRENT dev id.
Change the SND_CURRENT dev id to align it
with change in Modem software.

Signed-off-by: Sidipotu Ashok <sashok@codeaurora.org>
2011-10-03 16:19:27 -07:00
Stephen Boyd
d4de6d7efd msm: clock-8960: Properly hand off QDSS clocks
Some QDSS clocks come out of reset enabled. This causes problems
for drivers which wish to use the clocks during kernel init as
the clock driver view of the hardware isn't in sync with the
actual hardware state causing clk_set_rate() to hang the device
when it switches the clock to a PLL that is off. Hand off these
clocks so that drivers can call clk_set_rate() during kernel init
and not hang the system.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:19:26 -07:00
Stephen Boyd
fcfd4ddf4f msm: clock-8960: Remove branch control for qdss_at_clk
This clock always needs to be on for suspend/resume to work.
Remove control for this branch so that it never turns off.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:19:26 -07:00
Carl Vanderlip
18f6308797 video: msm: Defining functions for MIPI CMD panel
Defining do_histogram and lut_update functions for MIPI CMD panel

CRs-Fixed: 294029
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
2011-10-03 16:19:25 -07:00
Abhijeet Dharmapurikar
ef2293e734 genirq: explicitly mask a freed irq
When an interrupt is freed, the shutdown or the disable callback
is called for that interrupt. These calls might not be implemented
or even if they were, might not mask the interrupt.

Explicitly mask the interrupt when it is freed. If not masked, the
interrupt could trigger, set the pending bit in the irq controller
and cause unnecessary wakeup or exits from idle power collapse.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>

Conflicts:

	kernel/irq/manage.c
2011-10-03 16:19:25 -07:00
Ravishangar Kalyanam
c42862ab0b msm_fb: display: Fix division by zero error in MDP downscale check
Fix division by zero error in MDP downscale validation by rejecting
destination rectangle width and height params with 0

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2011-10-03 16:19:24 -07:00
Stepan Moskovchenko
eed82a54b7 msm: 8064: Add SPI Ethernet support for the Rumi3 target
Add the SPI device declarations, GPIO configuration, and
initialization code needed to use the SPI Ethernet
controller found on the APQ8064 Rumi3.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:19:24 -07:00
Santosh Mardi
e918585470 msm: audio: qdsp5v2: Broadcast fake audpp enable message
For multiple playback session for the first session audpp
Is enabled and successive sessions audpp driver generates
Fake dsp event but not broadcast the audpp layer enable message.

If two sessions are active, and if one of the session issues audpp
Disable command audpp driver generates the fake audpp disable event
to ACDB driver as one more session still active.

This patch address to broadcast fake audpp enable and disable message.

CRs-Fixed: 300489
CRs-Fixed: 304331
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2011-10-03 16:19:23 -07:00
Matt Wagantall
448db0fde5 msm: clock-8960: Correct rot_clk voltage requirements
The voltage requirements 96MHz is only LOW, not NOMINAL.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:19:22 -07:00
Tianyi Gou
334304198b msm: clock-8064: Add phys to virt address mapping for clock registers
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
2011-10-03 16:19:22 -07:00
Kevin Chan
8b0d232254 msm: camera: Add support for privacy light on 8960 Liquid
MPP 12 is used for privacy light on Liquid device.
Setting sink to low to turn the light on.
Privacy light is only turn on for front camera.

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:19:21 -07:00
Vikram Mulukutla
7a28909b3b msm: subsystem_restart: Add mutex_unlock to return path
do_epoch_check needs a mutex_unlock in its return path,
when epoch checking is disabled.

Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2011-10-03 16:19:21 -07:00
Stephen Boyd
dbeca47ca2 msm: clock-8960: Don't disable QDSS roots
Disabling the roots of the QDSS clocks prevents an external
debugger from coming in and enabling the debug clocks it requires
to operate. Therefore never disable the roots of these clocks so
that debugging continues to work.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:19:20 -07:00
Mohan Pallaka
20c876f412 board-8960: Add regulator info for atmel touchscreen
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 16:19:20 -07:00
Mohan Pallaka
002e9e0303 board-8960: Add keymap for liquid platform
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2011-10-03 16:19:19 -07:00
Bradley Rubin
939ff3f7e1 ASoC: WCD9310: Fix issue with ANC firmware parsing
Incorrect parsing of ANC firmware can lead to DAPM
failing to successfully enable ANC, which can cause
a kernel panic.

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 16:19:18 -07:00
kuogee hsieh
054dc107f9 msm_fb: display: add mutex during lcdc off
There has possibility that suspend operation and screen
update happen simultaneously. There mutex at lcdc_off is
necessary to serialize both lcdc off and pan display.

CRs-fixed: 302527
Signed-off-by: Khsieh <khsieh@codeaurora.org>
2011-10-03 16:19:18 -07:00
Ravishangar Kalyanam
7a7e46f6c1 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC
Set DSI Video mode dest type as DISPLAY_LCDC to return
correct fps to userspace in reserved[4]

CRs-Fixed: 302910
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2011-10-03 16:19:17 -07:00
Mona Hossain
5f5dde17cb crypto: Add support for larger ce block size
Adds support for CE block size larger than 16 bytes
by setting appropriate bits in CRYPTO_CONFIG register.
NOTE:  This bits are functional in rev 4.2 and higher
of the CE hardware. Setting the bits in 4.0 HW does not
do anything.

Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2011-10-03 16:19:17 -07:00
Mona Hossain
962ff20afa crypto: Remove configuration of CRYPTO_CONFIG register
CRYPTO_CONFIG is configured by secure code and the register
is XPU protected. Writing to this register has no effect.

Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2011-10-03 16:19:16 -07:00
Brian Gix
64bd5309f8 Bluetooth: Fix balance of hci_dev_get/hci_dev_put
Signed-off-by: Brian Gix <bgix@codeaurora.org>
2011-10-03 16:19:16 -07:00
Eric Holmberg
7dfd197f98 msm: smd: Update subsystem restart support
Add Modem FW support to the subsystem restart code.

Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2011-10-03 16:19:15 -07:00
Eric Holmberg
357a4676be msm: smd: Add Q6FW edges
Add Q6FW (modem FW) edge definitions.

Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2011-10-03 16:19:14 -07:00
Rohit Vaswani
71c86b7acb msm: iomap: Add the RPM, APCS_GLB base for MSM9615
This patch corrects the APCS_GCC base used by the RPM and
adds the RPM, RPM_MPM and APCS_GLB base to the iomap.

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2011-10-03 16:19:14 -07:00
Stephen Boyd
545e836759 msm: peripheral-loader: Ignore pil_put(NULL|ERR_PTR)
Instead of printing a warning just skip doing anything in
pil_put() if the pointer is NULL or an error pointer. This should
make error paths simpler.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 16:19:13 -07:00
Manoj Rao
bbf9a472c9 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver
Requirement for customer (Samsung) to have support
for 720x480p 16:9 aspect ratio, prior to this we
supported only 4:3 aspect ratio for 720x480p.
Adding the appropriate Lookup Table changes.

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
2011-10-03 16:19:13 -07:00
Laura Abbott
57f6500885 msm: remove outdated comment for strongly ordered memory
The comment related to strongly ordered memory no longer describes
what the code does. Remove it.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 16:19:12 -07:00
Matt Wagantall
66cd093ac6 msm: clock-8x60: Add support for ebi2_clk and ebi2_2x_clk
These clocks are linked in a dependency chain by software
so that enabling ebi2_clk is sufficient to cause both
clock to enable.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:19:12 -07:00
Harini Jayaraman
738c931e69 msm: Add SPI QUP support for MSM9615.
Add the device definitions and platform data to support
SPI QUP on MSM9615.

Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
2011-10-03 16:19:11 -07:00
Neema Shetty
0747758d80 ASoC: msm: Release CVD handles on LPASS restart.
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
2011-10-03 16:19:10 -07:00
Saravana Kannan
988feaf8de msm: scm: Add API to query for service/command availability.
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
2011-10-03 16:19:10 -07:00
Harini Jayaraman
bcef77324e spi_qsd: Fix for SPI Operational State Invalid error
This error is reproted randomly when the SPI core is put
into RUN state and occurs when the ACPU clock is low.
When the timer expires, we check again to ensure that the
STATE_VALID bit is set before returning.

CRs-fixed: 304672
Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
2011-10-03 16:19:09 -07:00
David Collins
b823cd5750 defconfig: msm8960: enable RPM log for 8960
Signed-off-by: David Collins <collinsd@codeaurora.org>

Conflicts:

	arch/arm/configs/msm8960_defconfig
2011-10-03 16:19:09 -07:00
Eric Holmberg
391ec1be2f msm: smem_log: Handle disabled logging regions
Properly handle disabled logging regions.

CRs-fixed: 300312
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2011-10-03 16:19:08 -07:00
Eric Holmberg
cf065315c0 msm: smem_log: Fix handling of default logging area
Fix code that was always using the default logging
area when copying log data to userspace, even if
a different logging area had been selected.

Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2011-10-03 16:19:08 -07:00
Jordan Crouse
fd97843e7e msm: kgsl: Fix an over greedy CONFIG_ANDROID_PMEM ifdef
kgsl_get_phys_file is used for both PMEM and the framebuffer,
so adjust the #ifdef CONFIG_ANDROID_PMEM to only omit the
PMEM specific parts.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2011-10-03 16:19:07 -07:00
Jordan Crouse
976cf0e965 msm: kgsl: Avoid a possible variable dereference in kgsl_mmap
There was a possiblity that a variable would be dereferenced
in a loop, so use a temporary holder to avoid any corner
case problems.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2011-10-03 16:19:06 -07:00
Jordan Crouse
75a25ca6f8 msm: subsystem-restart: Fixup variable declaration
A variable in do_epoch_check could possibly be
uninitialized when it gets used, so initalize to NULL
and check for failure.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2011-10-03 16:19:06 -07:00
Matt Wagantall
d727efce41 msm: clock-fsm9xxxx: Add dummy clocks for additional crypo devices
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:19:05 -07:00
Maya Erez
c29f2911c9 msm: sdio: add sdio_close support for stream mode channels
Signed-off-by: Maya Erez <merez@codeaurora.org>
2011-10-03 16:19:05 -07:00
Sahitya Tummala
efa6af86db mmc: msm_sdcc: Fix issue with msmsdcc_enable()
Due to the recent commit 68338b, any pending runtime PM
work (runtime suspend/resume request) is not getting
cancelled before enabling the host for a new request.
This results in a possibility for suspend work to happen
in parallel while processing any active SD/MMC command.

CRs-fixed: 305399
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2011-10-03 16:19:04 -07:00
Rahul Kashyap
88124ba634 board: msm7x27a: Put BT vregs in LPM Pin control.
BT vregs are put in LPM with D1_XO_EN. It doesn't disable
the vreg anymore.Capacitive charging Current Spikes are
seen if the vreg is disabled, instead of putting in LPM.

Signed-off-by: Rahul Kashyap <rkashyap@codeaurora.org>
2011-10-03 16:19:04 -07:00
Santosh Sajjan
0e506aba9a wlan: Put vregs in LPM Pin control.
WLAN vregs are put in LPM with A0_XO_EN. It doesn't disable
the vreg anymore.Capacitive charging Current Spikes are
seen if the vreg is disabled, instead of putting in LPM.

Signed-off-by: Santosh Sajjan <ssajjan@codeaurora.org>
2011-10-03 16:19:03 -07:00
Sriranjan Srikantam
269de7fc66 ASoC: msm8960: Fix LPA volume saturation at higher volume levels
LPA volume is saturated at higher volume levels as maximum gain
value is higher than unity gain value. Maximum LPA volume value
should be set to unity gain value i.e. 0x2000 to avoid saturation
at higher volume levels. Fix the saturation issue by changing the
maximum gain value

CRs-Fixed: 304858
Signed-off-by: Sriranjan Srikantam <cssrika@codeaurora.org>
2011-10-03 16:19:02 -07:00
Kevin Chan
bb8404804e msm: camera: Update csi interrupt trigger conditon
Csi interrupt is a active high trigger,
updated to match hardware spec.
Update csi interrupt mask to show error only.
Mask csi interrupt when camera exit

Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2011-10-03 16:19:02 -07:00
Harini Jayaraman
eba526719a msm: Add I2C QUP support for MSM9615
Add the device definitions and platform data to support
I2C QUP on MSM9615.

Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
2011-10-03 16:19:01 -07:00
Sriranjan Srikantam
8912c38948 Revert "ASoC: msm8960: Use DAPM_PRE and POST for MCLK"
This reverts commit 7687dc0741be36ed1537180e9ac716724dd704b9.

Signed-off-by: Sriranjan Srikantam <cssrika@codeaurora.org>
2011-10-03 16:19:01 -07:00
Matt Wagantall
77db73fe40 msm: msm_bus: Downgrade some halt/unhalt error messages to debug level
These errors are returned to the caller, which may not always
care about its success.  Leave it up to the caller to check
the return code and print an error message when failures
do matter.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 16:19:00 -07:00
Stepan Moskovchenko
20a123325f msm: platsmp: Support waking up more than two CPUs
Add handling to boot_secondary to take an arbitrary number
of CPUs out of reset.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2011-10-03 16:19:00 -07:00
Ramesh Masavarapu
c1d2b68990 crypto: Driver cleanup
Removed printk messages and replaced them with corresponding
pr_err, pr_debug messages. Added log messages when memory
allocation fails.

Signed-off-by: Ramesh Masavarapu <rameshm@codeaurora.org>
2011-10-03 16:18:59 -07:00