Xoom modem driver
ARM: tegra: dma: Clear dma interrupt status with lock held

The dma interrupt status should be cleared with spin lock held
to provide the proper synchronization between get_channel_status()
and dma isr.
The interrupt status flag is used to get the transferred data
done by dma and hence the status check and transfer count update
should be atomic.

Change-Id: I9c60f818e95eb32b362abea1afe19c92a23e6827
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/79191
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: tegra: dma: Calculate transferred count based on req size

In order to get the correct the transferred count done by dma,
use the requested size from client request instead of transfer
count programmed on dma.

Change-Id: I6d78b0435820ecb1db4b2de2569a2f9d728b2d05
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/77795
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
asoc: tegra: aic326x: add support for aic326x on cardhu

add support for aic326x on cardhu and also cleanup unused code
of t30 voice call since it has never been tested as aic326x is
not used on any t30 phone platform yet

Change-Id: I32e916f53f6e73031d39bc09afef8ad7f872639b
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84545
Reviewed-by: Scott Peterson <speterson@nvidia.com>
asoc: codecs: remove device id for aic326x codec driver

Change-Id: Ia6fac687a6b302fa49b6f8a7cfd74abfde5b45f9
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84544
Reviewed-by: Scott Peterson <speterson@nvidia.com>
arm: tegra: kai: Clock audio from clk_m

Clock audio from clkm as a pre-condition of disabling pllp_out1
and plla when I2S is in slave mode.

Change-Id: If6cf1037598969ae99224e30edd8fecba8a78d1f
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/85147
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
spi: tegra: checkpatch cleanups

Removing checkpatch error and warnings from spi driver
resulted from checkpatch.

Change-Id: I92160e802781b583048f46a93dee7d2465689cc0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/85163
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Conflicts:
	drivers/spi/spi-tegra.c
ARM: tegra: clock src initialisation for debug port in common place

Moving clock source rate initialisation of  debug ports in
common place from board files.
In this way, it does not need to call the same function from
all board files and so avoid duplicating.

Change-Id: I4e0292c7760488125c0dd8ee5fa23f50faca3436
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/85174
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: tegra: power: Notify clock event in CPU mode switch

Add clock event notification to switch timekeeping to broadcast
timer during Tegra3 CPU mode switch. Skip notifications if mode
switch happens on entry/exit to/from suspend state when timekeeping
is already suspended.

Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 236fd35c40a748d8373d7f34b53c320045fa4d3a)

Change-Id: I38386dfe3d4ffb89f35828cd911d254b976f0063
Reviewed-on: http://git-master/r/84713
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
arm: tegra: pci: fix lost interrupts condition

Clear the interrupt status before posting events to driver code, to avoid
losing interrupts for devices with high interrupt rate.

Change-Id: I776dff33e273b7d1c0dd10615ce4405acdc867e8
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/84356
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
ARM: tegra: power: Don't lower clocks on LP0 entry

Do not change (lower) CPU and system clocks, and do not disable PLLs
on entry to LP0, since all clocks and PLLs are stopped in h/w, anyway.

Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 0142197cf7b1828fa7935c9d8715f37313864db1)

Change-Id: I2f175882d4d3dcfe5aee9c460f873a5e907e4ece
Reviewed-on: http://git-master/r/84714
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
driver: wireless: bcmdhd: add missed wake_unlocks

handled missed wake_unlocks in bcmdhd wlan driver

Bug 924611

Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/84302
(cherry picked from commit d54a9823622acf981b782260a717f0091ea69fd7)

Change-Id: I4faff6d6fbee8ac62e3d19d6b5ef27ee5a20e60b
Reviewed-on: http://git-master/r/85692
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
ARM: config: tegra3: enable advanced routing and multiple routing table

These options are needed for multiple PDP context support

bug 926236

Change-Id: I2a7149ca829d015375132b1f882924cab825d945
signed-off-by: Stephane Dion <sdion@nvidia.com>
Reviewed-on: http://git-master/r/85533
Reviewed-by: Jean-Marc Guiraudet <jguiraudet@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
ARM: tegra: cardhu: enable TI aic326x codec

Change-Id: I05f436146def9a2a7f55ff3fa1af6b560d3b289c
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84541
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
ARM: defconfig: enable TI aic326x codec for cardhu

Change-Id: I847b06fb9e69469221ddc2e7d88b7836b1316f76
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84540
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
arm: tegra: kai: Set TEGRA_IOMMU_SMMU for platform_device

This platform_device will be used for struct iommu_ops for SMMU in
addition to iovmm-smmu exclusively.

Change-Id: I95734e16764f148e4d91c767d98f399ed2acb593
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/85146
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
net: wireless: bcmdhd: move CSCAN enable to a Kconfig option

Move CSCAN driver compilation flag to CONFIG_BCMDHD_CSCAN_ENABLE
Kconfig option; CSCAN is not supported in all userspace environments.

The driver implementation of PNO_SUPPORT has a dependency on CSCAN, so
make that option controlled by CONFIG_BCMDHD_CSCAN_ENABLE.

This CL is inspired from http://git-master/r/#change,76730

Bug 924521

(cherry picked from commit 240664309eaba6ec56297ff7c2704176708189e7)

Signed-off-by: Mursalin Akon <makon@nvidia.com>
Change-Id: I3481b48750089800c0aa977f05d7512880d6d74c
Reviewed-on: http://git-master/r/82876
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

Conflicts:
	drivers/net/wireless/bcmdhd/Kconfig
	drivers/net/wireless/bcmdhd/Makefile
net: wireless: bcmdhd: make delayed firmware loading a Kconfig option

Make delayed firmware loading a Kconfig option.
Config option BCMDHD_INSMOD_NO_FW_LOAD controls
this feature.

Bug 924521

(cherry picked from commit 9a0219b500f677381b3d912c73a9755cb0eb1caa)

Signed-off-by: Mursalin Akon <makon@nvidia.com>
Change-Id: I5d48f6c7484bbf8d5d6825f4b3a08d711ff86558
Reviewed-on: http://git-master/r/82877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

Conflicts:
	drivers/net/wireless/bcmdhd/Kconfig
net: wireless: bcmdhd: let BCMDHD_WEXT control wireless extension features

In the driver code wireless extension features are
controlled through WIRELESS_EXT config option.
However, WIRELESS_EXT is turned on by the BCMDHD_WEXT
option of this driver.

Hence, the instead of using WIRELESS_EXT, BCMDHD_WEXT
is used to control wireless extension features.

Bug 924521

(cherry picked from commit 22a9df35537080fbd8a2045c574c5b3e5d08f1ab)

Signed-off-by: Mursalin Akon <makon@nvidia.com>
Change-Id: I68a49271fd3f3616b3beb07f5350d616f3bd9459
Reviewed-on: http://git-master/r/82878
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
PM Qos: Add min online cpus as PM QoS parameter

Bug 940061

Change-Id: Ibae842fdc3af3c92ec7e6125c602417110d8b55e
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/84521
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>