7 years agoarm: tegra3: enterprise: Set SPDIF_OUT mux to correct option.
Laxman Dewangan [Fri, 23 Dec 2011 13:04:59 +0000]
arm: tegra3: enterprise: Set SPDIF_OUT mux to correct option.

Setting the SPDIF_OUT pinmux option to valid option.

bug 919759

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: I359b947814e008cbaa9c6e22e496839b5f139b13
Reviewed-on: http://git-master/r/72014
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agovideo: tegra: dc: Fix dc stream random failure to stop
Animesh Kishore [Fri, 23 Dec 2011 06:25:10 +0000]
video: tegra: dc: Fix dc stream random failure to stop

Fix dc stream randomly failing to stop.
Add stablization delay during dsi interface reset.

Bug 913019

Change-Id: I1cf3013659de75d15cb1ff41b27c63abd953d614
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/71952
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoi2c: i2c-slave: Fix i2c_add_slave_adapter routine
Chaitanya Bandi [Mon, 19 Dec 2011 05:34:35 +0000]
i2c: i2c-slave: Fix i2c_add_slave_adapter routine

Fixed i2c_add_slave_adapter routine because id attribute has been
dropped from adapter.

Change-Id: I84a8d3a8fb3a16b772107a5d265cfadfb70dbaec

Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Change-Id: I3181507404e929b48ba2f1f7290e423d1a07f559
Reviewed-on: http://git-master/r/70944
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoSPI: tegra: Pass rx data only to req bit length
Varun Wadekar [Fri, 30 Dec 2011 05:05:17 +0000]
SPI: tegra: Pass rx data only to req bit length

When fifo is read, it can contain valid data bits and random bits
in rest of the fifo.
Reading only valid bits from fifo and resetting rest to zero
before sending to client.

Change-Id: I961279048aada6087b323ab6730bf72706730917
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/70534
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: cardhu: Add Ion device and it resouces.
Krishna Reddy [Tue, 20 Dec 2011 02:50:55 +0000]
arm: tegra: cardhu: Add Ion device and it resouces.

Add Ion device and its resources.

Change-Id: I77718dda4acc62074dc859a95441ef04181ae4a7
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71114
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

7 years agogpu: ion: tegra: add tegra custom ioctl handling.
Krishna Reddy [Mon, 19 Dec 2011 22:35:48 +0000]
gpu: ion: tegra: add tegra custom ioctl handling.

Add tegra specific custom ioctl handling.

Change-Id: If87b47f969fe0b3fdbb3bee965c370f6610fd4be
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71113
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

7 years agogpu: ion: Add api to get client from file id.
Krishna Reddy [Thu, 29 Dec 2011 19:18:44 +0000]
gpu: ion: Add api to get client from file id.

Change-Id: Ifb3bc3d7fa54cddda7e3f0acd34dbcc4b1ed39d3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/72644
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

7 years agoarm: tegra: nvmap: Prepare nvmap api's to support Ion.
Krishna Reddy [Mon, 19 Dec 2011 23:51:27 +0000]
arm: tegra: nvmap: Prepare nvmap api's to support Ion.

Prepare nvmap api's to be able to use Ion Memory Manger.

Change-Id: Ie7de2c4afc491290d61e8545667ffa477af32d8b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71112
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agogpu: ion: move ion priv data structs and methods to ion_priv.h
Krishna Reddy [Thu, 29 Dec 2011 19:15:11 +0000]
gpu: ion: move ion priv data structs and methods to ion_priv.h

Move ion priv data structs and methods to ion_priv.h.
This is needed to allow vendor spcific code dereferencing
ion data structs and accessing methods.

Change-Id: I4f863e0f4a59a80ec6b4468ca27ed7b96a78772b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71111
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

7 years agogpu: ion: Fix ion handle and buffer ref counting issue.
Krishna Reddy [Thu, 29 Dec 2011 19:06:36 +0000]
gpu: ion: Fix ion handle and buffer ref counting issue.

Handle and buffer are not ref counted correct during fork from
a process, which has mmap'ed ion memory.

Change-Id: Ida98f4639f29fef8397abd07bbf317c1baa0130e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/72643
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

7 years agovideo: tegra: host: Disable nvmap struct dereferencing.
Krishna Reddy [Mon, 19 Dec 2011 18:43:25 +0000]
video: tegra: host: Disable nvmap struct dereferencing.

Disable nvmap struct dereferencing, if nvmap is disabled.

Change-Id: If089adae92366865669389b2f965020cfb90c10b
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71031
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: configs: tegra: Regenerate the defconfig.
Preetham Chandru [Wed, 28 Dec 2011 13:24:54 +0000]
arm: configs: tegra: Regenerate the defconfig.

Majority of bugs on L4T bugs worked on so far were because
of a feature not enabled in L4T defconfig file.
To fix this recurring problem we need to enable all the valid
kernel config options from Android defconfig in L4T as
well (the not-valid config options are Android specific ones
like : ASHMEM, WAKELOCK, and other Android specific options)

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: Ia85249ca9faf4f0e23ed27d153e1338887e77c6e
Reviewed-on: http://git-master/r/72404
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: Use nvmap handle conversion macro.
Krishna Reddy [Wed, 28 Dec 2011 23:20:58 +0000]
video: tegra: host: Use nvmap handle conversion macro.

Use nvmap user space to kernel handle conversion macro.

Change-Id: I65ce6cee77e46ab2d3a7ac49a1b210fae7a85810
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71029
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: gadget: fsl_udc: check for transciever
Rakesh Bodla [Thu, 29 Dec 2011 04:05:39 +0000]
usb: gadget: fsl_udc: check for transciever

Need to run the controller only if transciever
is not present.

Bug 915706

Change-Id: I78b790e64fb24daf7a1df0d71c2e5ca1e9ef672b
Reviewed-on: http://git-master/r/72534
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: nvmap: add macro to convert mem handle.
Krishna Reddy [Mon, 19 Dec 2011 18:25:48 +0000]
arm: tegra: nvmap: add macro to convert mem handle.

Add macro to convert user space memory handle to kernel space.

Change-Id: I133669a7254e12efd857e1ff7cd56d2a15bfd13c
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71028
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

7 years agoarm: tegra: Create nvmap dev based on config flag.
Krishna Reddy [Sat, 17 Dec 2011 02:35:28 +0000]
arm: tegra: Create nvmap dev based on config flag.

Create nvmap dev and related resources only when CONFIG_TEGRA_NVMAP
is defined.

Change-Id: Iee9e43de79767353a750f73cddd6550a74315cff
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/70699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

7 years agoARM: config: enable profiling memory controller by default
Liang Cheng [Wed, 21 Dec 2011 22:05:38 +0000]
ARM: config: enable profiling memory controller by default

bug 918997

Change-Id: I134ac6b40a9af40edca6dc902af604da32cfdc2b
Reviewed-on: http://git-master/r/71698
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agocpu-hotplug: CPUx should be active before it is marked online
Varun Wadekar [Mon, 26 Dec 2011 11:20:05 +0000]
cpu-hotplug: CPUx should be active before it is marked online

CPU0 CPUn

_cpu_up()
  __cpu_up()

boostrap()
  notify_cpu_starting()
  set_cpu_online()
  while (!cpu_active())
    cpu_relax()

<PREEMPT-out>

smp_call_function(.wait=1)
  /* we find cpu_online() is true */
  arch_send_call_function_ipi_mask()
  /* wait-forever-more */
<PREEMPT-in>
  local_irq_enable()

  cpu_notify(CPU_ONLINE)
    sched_cpu_active()
      set_cpu_active()

Now the purpose of cpu_active is mostly with bringing down a cpu, where
we mark it !active to avoid the load-balancer from moving tasks to it
while we tear down the cpu. This is required because we only update the
sched_domain tree after we brought the cpu-down. And this is needed so
that some tasks can still run while we bring it down, we just don't want
new tasks to appear.

On cpu-up however the sched_domain tree doesn't yet include the new cpu,
so its invisible to the load-balancer, regardless of the active state.
So instead of setting the active state after we boot the new cpu (and
consequently having to wait for it before enabling interrupts) set the
cpu active before we set it online and avoid the whole mess.

Bug 916986

Original Patch: https://lkml.org/lkml/2011/12/15/255

Change-Id: Ia1c07bdc1b3eb07a7cd4d69756fa7bec509c9400
Reported-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/72130
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agobluetooth: bluesleep: call free_irq during driver unload only
Varun Wadekar [Thu, 1 Dec 2011 10:29:59 +0000]
bluetooth: bluesleep: call free_irq during driver unload only

Change-Id: Iabad9617752af43c7184d0335177c60fba6bd715
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/67654
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoRevert "i2c: tegra: use PM runtime framework"
Varun Wadekar [Mon, 26 Dec 2011 12:23:03 +0000]
Revert "i2c: tegra: use PM runtime framework"

This reverts commit fc56d07f59a3cafa33c31bf90a50af04a0235cf8.

7 years agoarm: configs: tegra2: regenerate defconfig
Preetham Chandru [Mon, 26 Dec 2011 11:20:29 +0000]
arm: configs: tegra2: regenerate defconfig

Regenerate defconfig file to reflect current kconfigs.

Change-Id: I0a3ae9deec33e619728a2c3e1cdad8812d6e0b5f
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/72129
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: configs: tegra3: regenerate defconfig
Preetham Chandru [Mon, 26 Dec 2011 09:25:37 +0000]
arm: configs: tegra3: regenerate defconfig

Regenerate defconfig file to reflect current Kconfigs

Change-Id: Ibb608f9af156d9833904ef691bb06e3773006871
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/72105
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agommc: card: increase command retries to 10 from 3
Varun Wadekar [Mon, 26 Dec 2011 07:09:20 +0000]
mmc: card: increase command retries to 10 from 3

When commands timeout, previously we had code to
retry the same command 3 times. But under some
situations 3 retries do not suffice. Increasing
the retries to 10 does the trick. Also if the card
does not respond after 10 retries then the card is
dead for sure. But if the same card responds in
between 3 to 10 retries then it is always beneficial
to have retries as 10.

Bug 914934

Change-Id: I6b1e95c10ca5a62dde84ce8cacbe53ad2197ab33
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/72092
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>

7 years agoRevert "ov5650: add fast set_mode"
Qinggang Zhou [Tue, 6 Dec 2011 19:04:02 +0000]
Revert "ov5650: add fast set_mode"

This reverts commit e0f1e9c61daa5faacb0e5cb404357f7e3284c8ae.
Some i2c registers have unexpected impacts over low-light
captures.

bug 901066
Original Gerrit: http://git-master/r/#change,68489
(cherry picked from commit I2ae122da60fa530155f8147b3b21576d79d6a1dd)
Signed-off-by: Qinggang Zhou <qzhou@nvidia.com>

Change-Id: Id84672c49f27821afce6f9b27cc72ba2217f77dc
Reviewed-on: http://git-master/r/71716
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Qinggang Zhou <qzhou@nvidia.com>
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Tested-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoARM: tegra[2]: config: enable touchscreen module
Sanjay Singh Rawat [Thu, 22 Dec 2011 12:51:13 +0000]
ARM: tegra[2]: config: enable touchscreen module

Touch screen module is not active. Enabling the directive to enable the
Atmel touch screen module.

Bug: 919257

Change-Id: I160136902f4a7dbae6eb4d541ac5bb1ad0a28eae
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/71826
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoi2c: tegra: use PM runtime framework
Peter De Schrijver [Tue, 20 Dec 2011 12:03:00 +0000]
i2c: tegra: use PM runtime framework

Convert tegra i2c driver to use PM runtime framework.

changes since last version:

fix hang when using resume_noirq

Change-Id: I1cce314ef4c06dbc7f1b3ddbdd1ad50255aa8b02
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/71192
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agommc: tegra: Add support for voltage switching
Pavan Kunapuli [Wed, 30 Nov 2011 13:19:23 +0000]
mmc: tegra: Add support for voltage switching

Enable SDHCI_QUIRK_NON_STD_VOLTAGE_SWITCHING.
Implement switch_signal_voltage callback for tegra
sdmmc controller to switch the voltage using regulator
calls.

Bug 906650

Reviewed-on: http://git-master/r/67138

Change-Id: I3237fde03fff1bd112db4f12ad66c5d68ffada09
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/69700

7 years agobluesleep: disable run time UART clock gating
Rakesh Goyal [Thu, 22 Dec 2011 19:54:08 +0000]
bluesleep: disable run time UART clock gating

There is no signaficant power saving by UART clock gating.

Bug 913214

Change-Id: I9266c812bae080ba50fa89d11684f18de2f05eab
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/71879
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com>

7 years agoarm: tegra: set cpu0 governor for early suspend
Sang-Hun Lee [Thu, 22 Dec 2011 19:06:29 +0000]
arm: tegra: set cpu0 governor for early suspend

The cpufreq sysfs entry for cpus other than cpu0 in T30 is
populated when the cpu becomes online and removed when the cpu
becomes offline. This caused race condition between setting cpu
governor and bringing cpu offline. The solution is to change
the governor for cpu0 only.

BUG 914009

Signed-Off by: Karthik Ramakrishnan <karthikr@nvidia.com>
Cherry-picked from: http://git-master/r/#change,50155

Change-Id: Ia604169f2a211083803f161d1e28bc0e3ca80ab2
Reviewed-on: http://git-master/r/70213
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoarch: arm: configs: Update defconfig for Minimal Linux for MODS
Dinesh Israni [Thu, 22 Dec 2011 00:20:14 +0000]
arch: arm: configs: Update defconfig for Minimal Linux for MODS

Remove CONFIG_HOTPLUG_CPU and set CONFIG_SUSPEND

Change-Id: I09278dd9ac0e9f75a17f7e231f83633a2151a410
Reviewed-on: http://git-master/r/71724
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Dinesh Israni <disrani@nvidia.com>
Reviewed-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoASoC: max98095: Convert codec->hw_write to snd_soc_write
Axel Lin [Sat, 15 Oct 2011 03:46:02 +0000]
ASoC: max98095: Convert codec->hw_write to snd_soc_write

codec->hw_write is broken now, convert codec->hw_write to snd_soc_write.

The hardware has 2 banks of registers sharing a section in I2C register space.
The 1st bank is the primary one and is cached.
The 2nd bank is for loading coefficients only and they do not need cache.
These coefficients registers are therefore direct writes.
Thus we set cache_bypass flag to deal with this before calling snd_soc_write.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 0d8d293898ff0ea395840cdf2ac85fbd53c8d3ea)

Change-Id: I162206b7c542d85c0349cb5c2af8048e8cee6700
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/69969
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoASoC: max98095 codec: Catch driver bugs for biquad channel name
Ryan Mallon [Mon, 3 Oct 2011 22:55:41 +0000]
ASoC: max98095 codec: Catch driver bugs for biquad channel name

Move the biquad channel names to a separate array and iterate over it in
max98095_get_bq_channel rather than duplicating the hardcoded channel
names. Add an error message if an invalid channel is passed and check
the error in the callers.

Also added a BUILD_BUG_ON to ensure that the bq_mode_name and controls
arrays are the same size.

Signed-off-by: Ryan Mallon <rmallon@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit c855a1a7ff49a43e1e35571d504e89b4c670693d)

Change-Id: Id8e6b672007292416ad60a5d988b987f841927b9
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/69968
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoASoC: Max98095: Move existing NULL check before pointer dereference.
Taylor Hutt [Wed, 18 May 2011 01:03:54 +0000]
ASoC: Max98095: Move existing NULL check before pointer dereference.

Visual inspection shows that max98095_put_eq_enum() and
max98095_put_bq_enum() each have a possible NULL deref of 'pdata'.

This change moves the NULL check above the use.

Signed-off-by: Taylor Hutt <thutt@chromium.org>
Acked-by: Peter Hsiang <Peter.Hsiang@maxim-ic.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 539494253547d078089cc15490e83f6e5f2e7213)

Change-Id: I587b8d2ea14cdf8ce33a4319b6c2ba3a4df067aa
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/69963
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: disable cluster switch messages
Diwakar Tundlam [Wed, 14 Dec 2011 23:10:27 +0000]
ARM: tegra: disable cluster switch messages

Bug 915962

Change-Id: Icece8c31a7e31b3871dd836aa79b5f7cc28d0af1
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/70121
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: mm: Fix CPA page count stats issue.
Krishna Reddy [Thu, 1 Dec 2011 01:37:52 +0000]
arm: mm: Fix CPA page count stats issue.

Bug 865816

Change-Id: Iebdfdbd650cb82f25487ebee1c2b3839ed1fcf94
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/71729
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agocrypto: tegra-se: Make workqueue CPU unbound
Sang-Hun Lee [Tue, 20 Dec 2011 22:23:54 +0000]
crypto: tegra-se: Make workqueue CPU unbound

 - Workqueue of tegra-se does not need to be CPU bound

Bug 911397

Change-Id: I8786e8574cf3ec2e33b3869de8c8be3f0939e13f
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/71527
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agostaging: iio: magnetometer: ak8975: set I2c client data
Preetham Chandru [Wed, 21 Dec 2011 16:50:30 +0000]
staging: iio: magnetometer: ak8975: set I2c client data

Set i2c client data before we call ak8975_setup() in the probe function
because ak8975_setup() is making a call to ak8975_write_data() which in
turn calls i2c_get_clientdata(). If this is not done then
i2c_get_clientdata() returns NULL pointer.

Bug: 918820
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: I36316fb508d196a32b26853c377921175f94dde6
Reviewed-on: http://git-master/r/71775
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoPM QoS: Add max online cpus as PM QoS parameter
Alex Frid [Fri, 16 Dec 2011 21:44:23 +0000]
PM QoS: Add max online cpus as PM QoS parameter

Bug 894200

Change-Id: Ieb009a13c6ef9bca2388e234eb973d65a4e3a58b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/71034
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: include: asm: add 160M to sizes.h
Varun Wadekar [Thu, 22 Dec 2011 06:22:01 +0000]
arm: include: asm: add 160M to sizes.h

Change-Id: I6657a60476af2d6c63ecb69ab91fd8132f2603bb
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra3: pci: fix compilation warning
Mursalin Akon [Fri, 16 Dec 2011 22:38:22 +0000]
ARM: tegra3: pci: fix compilation warning

replace virt_to_bus with virt_to_phys to avoid
compilation warning of obsolete identifier

Change-Id: I296fd2ee54ce71afd318f46aa9c9bec4e80dab0f
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70635
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoarm: tegra: harmony: add pm_power_off method for harmony
Bill Huang [Tue, 20 Dec 2011 06:25:06 +0000]
arm: tegra: harmony: add pm_power_off method for harmony

implement pm_power_off with tps6586x's power off routine.

Change-Id: I20b818816982bad97daae1d8961aade4b6a0e6c4
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Reviewed-on: http://git-master/r/71139
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: cardhu: Add DVFS table for cardhu A05
Ahmed Farra [Wed, 7 Dec 2011 02:39:40 +0000]
arm: tegra: cardhu: Add DVFS table for cardhu A05

Add DVFS tables for cardhu A05 memory

Also, update memory SKU to handle new format

Bug 911821

Change-Id: I458669d9d42df542e3305fa0c31363d94390599d
Signed-off-by: Ahmed Farra <afarra@nvidia.com>
Reviewed-on: http://git-master/r/68585
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoPM QoS: Simplify PM QoS expansion/merge
Alex Frid [Thu, 15 Dec 2011 21:34:45 +0000]
PM QoS: Simplify PM QoS expansion/merge

- Replace class ID #define with enumeration
- Loop through PM QoS objects during initialization (rather than
  initializing them one-by-one)

Change-Id: I185b700b52c752c62e7550fe739adc498fc989ef
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/70603
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra2: power: Fix LP2/LP3 states accounting
Prashant Gaikwad [Wed, 14 Dec 2011 11:25:32 +0000]
ARM: tegra2: power: Fix LP2/LP3 states accounting

Made sure LP3 state is reported as last entered state to cpuidle
governor in case when LP3 is entered as a fall back from LP2 path.

bug 905813

Change-Id: I850dddef733d45587875eb796e609b01b1732ab9
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/70012
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: correctly access file in kernel
Victor(Weiguo) Pan [Tue, 23 Aug 2011 21:48:30 +0000]
ARM: tegra: correctly access file in kernel

1. Tell the kernel the pointers from within the kernel address
space are safe before accessing the file. Save/restore current
process address before/after the file accessing.
2. Use macro IS_ERR to check file opening is successful or not
because filp_open() returns negtive value once error happens.

bug 865113
bug 917684

Reviewed-on: http://git-master/r/48788
(cherry picked from commit 76d0a832b0fb8c5c6446f9c86ccc743701ff704e)

Change-Id: Ie96152396f93a49babe848041feca354c6dfce50
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/71152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: defconfig: enable tegra aes driver
Varun Wadekar [Tue, 20 Dec 2011 06:28:06 +0000]
arm: tegra: defconfig: enable tegra aes driver

Change-Id: I8fb744ab8997255f779e7bd58571c8d081497851
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/71136
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: power: Limit maximum online cpus number
Alex Frid [Sat, 17 Dec 2011 02:07:33 +0000]
ARM: tegra: power: Limit maximum online cpus number

Updated Tegra3 auto-hotplug mechanism to keep maximum number of
online cpus within the limit specified by the PM QoS parameter
PM_QOS_MAX_ONLINE_CPUS.

Added respective debugfs node /kernel/debug/tegra_hotplug/max_cpus.

Bug 894200

Change-Id: I278cbfd91a1760b282eab186aa21883918b13800
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/71035
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

7 years agovideo: tegra: host: Move timeout to hwctx & job structs
Terje Bergstrom [Mon, 19 Dec 2011 13:12:06 +0000]
video: tegra: host: Move timeout to hwctx & job structs

Timeout struct contains fields which are accessed even after client has
quit. Move the fields to hwctx and nvhost_job so that they can be
accessed when submits complete.

Bug 917340

Change-Id: I322c38d32bc801aa9b061355a17be7f605692e18
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/71004
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra: defconfig: enable TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND
Bharat Nihalani [Fri, 16 Dec 2011 15:06:51 +0000]
ARM: tegra: defconfig: enable TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND

bug 909096

Change-Id: I7d82d1f8cd20e54248896559387f4b102fb9a329
Reviewed-on: http://git-master/r/70575
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agomedia: video: tegra: sh532u focuser driver
Erik Lilliebjerg [Fri, 16 Dec 2011 02:36:43 +0000]
media: video: tegra: sh532u focuser driver

Fix focus position HW abstraction algorithm.
The new algorithm uses a best-fit loop that allows for extra
focus positions at each end of the focus range.

Bug 909087

Change-Id: Ib25913e6ad5a6644a550f76cba94800bd664143e
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/70466
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomfd: tps80031: fix irq status clear sequence
David Schalig [Wed, 14 Dec 2011 07:01:30 +0000]
mfd: tps80031: fix irq status clear sequence

According to tps80031 datasheet, all 3 interrupt status registers should
be read, before writing to clear them. The old code used interleaved status
read/clear, which may drop interrupts.

Bug 914740

Change-Id: I4c9c0b7c623ea0fe01d90e9a531ff2e9d34f125c
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/69941
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: power: Fix clock event broadcast mode
Prashant Gaikwad [Tue, 13 Dec 2011 07:03:13 +0000]
ARM: tegra: power: Fix clock event broadcast mode

Do not switch to broadcast mode in common code since it
affects both Tegra3 and Tegra2. Tegra3 does not need
broadcast mode until final CPU is going in LP2.

Bug 905813

Change-Id: I7b888504e5a926c15f34b0bb2487e16f672d9294
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/69686
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

7 years agoARM: config: tegra3_defconfig: Enable KEYBOARD_INTERRUPT
Bill Huang [Fri, 9 Dec 2011 06:17:24 +0000]
ARM: config: tegra3_defconfig: Enable KEYBOARD_INTERRUPT

Need to enable it to make power-key wakeup work.

Change-Id: Ic3aa70b977db141a85b2bcc866a621b40d477d8d
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Reviewed-on: http://git-master/r/69141
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoASOC: tegra: voice call support during suspend
Nikesh Oswal [Tue, 20 Dec 2011 10:30:44 +0000]
ASOC: tegra: voice call support during suspend

during voice call, prevent suspend of codec and audio
modules, whereas for other mode they are allowed to suspend.

Bug: 917672

Change-Id: I1e8ff06fa21084a0187d35258177f22ae112f1ce
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/71174
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoarm: tegra: pm: do not turn off PLL-P & PLL-A for LP1 on Tegra3
Nikesh Oswal [Tue, 20 Dec 2011 10:26:24 +0000]
arm: tegra: pm: do not turn off PLL-P & PLL-A for LP1 on Tegra3

Bug: 917672

Change-Id: Ie3446f7fdaa05a6dab43375b842b37070cea33b7
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/71173
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agoarm: configs: Enable i2c device interface support
Alok Chauhan [Tue, 20 Dec 2011 09:43:04 +0000]
arm: configs: Enable i2c device interface support

enable CONFIG_I2C_CHARDEV variable.

Change-Id: Ie88be13071ecc393907d64f1a155d47134c8df6b
Signed-off-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-on: http://git-master/r/71164
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: display: Increased FB size
Shashank Sharma [Fri, 16 Dec 2011 12:40:46 +0000]
arm: tegra: display: Increased FB size

Added 1MB extra memory for the first FB device, required for double buffering.

Bug 898400

Change-Id: I92245fdb2e7a1d71888fc0831f052017608b975a
Signed-off-by: Shashank Sharma (shashanks@nvidia.com)
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/69838
Reviewed-on: http://git-master/r/70946
Tested-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoarm: tegra: thermal: Low temp to therm algorithm
Joshua Primero [Sun, 18 Dec 2011 23:44:25 +0000]
arm: tegra: thermal: Low temp to therm algorithm

Instead of using 0C as default low temp in thermal
algorithm, query the thermal device driver for
lowest supported temperature.

Change-Id: Id1f70380ba476dec80e36ce79b42ab6f24a5d5ba
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/70935
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: tsensor: exposed get_low_temp func
Joshua Primero [Sun, 18 Dec 2011 23:38:59 +0000]
arm: tegra: tsensor: exposed get_low_temp func

Exposed get_low_temp function of the tsensor
driver.

Change-Id: Ic92fa28951419d1ae0e6354a47e7f2d0bf0f45b7
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/70934
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agodrivers: nct: Added low temp func to header file
Joshua Primero [Sun, 18 Dec 2011 23:37:28 +0000]
drivers: nct: Added low temp func to header file

Exposed the low temp function in header file.

Change-Id: I67983e05d2f366981c4cff20d3a84cadc38806a8
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/70933
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agodrivers: misc: nct: Added low temp nct interface
Joshua Primero [Sun, 18 Dec 2011 23:35:49 +0000]
drivers: misc: nct: Added low temp nct interface

Added function to retrieve lowest supported
temperature for nct1008 driver.

Change-Id: Icd418a7383908ff335a27d94d6d5e586b1e95e57
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/70932
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoarm: tegra: thermal: Added thermal debugfs nodes
Joshua Primero [Fri, 16 Dec 2011 19:11:02 +0000]
arm: tegra: thermal: Added thermal debugfs nodes

Added nodes which can set/get tc1, tc2, passive
delay, shutdown temp, and throttle temp.

Change-Id: I433bb09f9bf42cdbc7112fc98fa4ae88ca7e1de8
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/70930
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: thermal: Added name per therm device
Joshua Primero [Fri, 16 Dec 2011 19:09:50 +0000]
arm: tegra: thermal: Added name per therm device

Added name paramater per therm device so that is
easy to tell which therm device is being used
from sysfs

Change-Id: I58488b4c50ac6dc58dc00e270b613458f61a9fd6
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/70929
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoarm: tegra: pcie: minor fixes in pcie driver
Peer Chen [Thu, 6 Oct 2011 05:11:21 +0000]
arm: tegra: pcie: minor fixes in pcie driver

Fixed issues in entering suspend mode when
no pcie devices are connected

bug 873836
bug 876954
bug 884808

Reviewed-on: http://git-master/r/51506
(cherry picked from commit ae3b130e0458731a04b6d961f84831da7a2ce711)
(cherry picked from commit 05697d94499eb94bf3e1ccd87c1382a4b10dec7e)

Change-Id: I2a0fd104d2443c84edea2d62debc242b497fc38d
Signed-off-by: Peer Chen <pchen@nvidia.com>
Reviewed-on: http://git-master/r/70636
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mursalin Akon <makon@nvidia.com>
Tested-by: Mursalin Akon <makon@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoARM: tegra3: config: Enable PCI
Mursalin Akon [Fri, 16 Dec 2011 19:59:36 +0000]
ARM: tegra3: config: Enable PCI

Enable PCI for tegra3

Change-Id: I23cc720632ddb8d48527cdf4daa368500673adff
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70632
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra3: restate msi irq desc
Mursalin Akon [Fri, 16 Dec 2011 19:52:29 +0000]
ARM: tegra3: restate msi irq desc

Restate MSI irq desc in architecture specific
functions. This way, PCI device drivers can later
on hook those irqs.

Plus, a minor fix.

Change-Id: I3d9ba84c071309343b58c6200a9f53708e4043f4
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70631
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agoARM: tegra: pcie: fix return value from MSI irq routine
Mursalin Akon [Thu, 22 Sep 2011 20:55:11 +0000]
ARM: tegra: pcie: fix return value from MSI irq routine

Fix the return value from MSI irq routine. Without this
change __report_bad_irq is invoked at MSI interrupt.

Bug 870667

(cherry picked from commit 30f82dda084d9260ed550585d16629872f703b0d)

Change-Id: I0f75d1a369c93f0f1e3203bdb1d875249a86337a
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mike Thompson <mikthompson@nvidia.com>
Tested-by: Mike Thompson <mikthompson@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agommc: tegra: Set tap delay value
Pavan Kunapuli [Tue, 20 Dec 2011 08:49:16 +0000]
mmc: tegra: Set tap delay value

Set the tap delay value passed through the
platform data.

Bug 911075

Change-Id: I8f71b65fb6d3683a57054c52c94e3e8ae95f4da3
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/70333
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoArm: Tegra: Sdhci: Pass tap value in platform data
Pavan Kunapuli [Mon, 19 Dec 2011 08:17:35 +0000]
Arm: Tegra: Sdhci: Pass tap value in platform data

Pass sdmmc tap value through platform data.

Bug 911075

Change-Id: I9a8fddf626b0d73e80646f3a4aa03ed7cd3a557f
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/70332
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: usb: Fix usb crashing issue on p1852
Manoj Chourasia [Thu, 15 Dec 2011 10:42:40 +0000]
arm: tegra: usb: Fix usb crashing issue on p1852

USB driver should not give-up in case if it doesn't get
the required regulator supply. And it should operate only
in case phy regulator is not NULL.

bug 916334

Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/70283
(cherry picked from commit 7e0fa3da23f06f992c462e098c8d7fd762cb91e8)
Change-Id: I97f65e10222fc490c9218f7cb4af922ca72b84a9
Reviewed-on: http://git-master/r/71624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: harmony: add suspend support for harmony
Bill Huang [Thu, 15 Dec 2011 10:42:15 +0000]
arm: tegra: harmony: add suspend support for harmony

enable suspend for harmony and set suspend mode to lp0

bug 911107

Change-Id: I59d412ab991fa86fedac12f0981bf93e26f8810a
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Reviewed-on: http://git-master/r/70270
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agotracedump: Dump ftrace ring buffer data
Alon Farchy [Mon, 12 Dec 2011 17:21:59 +0000]
tracedump: Dump ftrace ring buffer data

Add a new module that will dump the contents of the ftrace ring buffer.
Data is compressed and can be in ascii or binary form. Data will
automatically dump on kernel panic to console. Data can be dumped by
reading /proc/tracedump. See tracedump.h for details.

Change-Id: I7b7afc3def0b88629dd120d17e43858306a8f357
Signed-off-by: Liang Cheng <licheng@nvidia.com>
Reviewed-on: http://git-master/r/69494
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoarm: tegra: whistler: Increase Carveout Memory to 160M
Vaibhav Gorde [Mon, 12 Dec 2011 16:34:48 +0000]
arm: tegra: whistler: Increase Carveout Memory to 160M

Limited carveout memory gives Out of Memory errors for
1080p camera preview. Even when camera app runs 640x480
preview carveout memory almost all of carveout memory
(127/128) gets used.

bug 907782
bug 911767

Change-Id: Ibb8226c1fb928b7e4344f8959072973da93ecae5
Reviewed-on: http://git-master/r/69492
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: gart: Remove unnecessary wmb()
Hiroshi DOYU [Wed, 16 Nov 2011 09:27:53 +0000]
ARM: tegra: gart: Remove unnecessary wmb()

Removed wmb()s which are:
  - Logically unnecessary after while loop.
  - Right after spinlock which has the same effect as wmb().

Change-Id: I2c4978b12d6bd9d4046a900b5ce7d6f0bdbd70e0
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/66357
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: power: add watchdog recovery function
Kamal Kannan Balagopalan [Mon, 12 Dec 2011 22:15:02 +0000]
arm: tegra: power: add watchdog recovery function

Add watchdog recovery mechanism to protect against hangs during
driver suspend/resume sequence

Bug 857748

Change-Id: I03d540b38318a5a953b1a697af123291b48991e9
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/65986
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoinput: tegra-kbc: add is_open, don't suspend if no clock
Ray Poudrier [Tue, 15 Nov 2011 00:26:27 +0000]
input: tegra-kbc: add is_open, don't suspend if no clock

Added is_open to know whether the clock has been disabled.
Occasionally _close is called before _suspend during LP0 cycles
resulting in a hang as the clock is disabled.

Bug 855753

Change-Id: Ida938ada7d14085e11096b25cf41431fc2d46215
Reviewed-on: http://git-master/r/50218
Reviewed-on: http://git-master/r/64257
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: tegra: modify stepreset on dam src table
Seongho Joo [Mon, 19 Dec 2011 07:28:04 +0000]
asoc: tegra: modify stepreset on dam src table

set step value from 0 to 1 by the spec, with 0 it showed glitch.

Bug 909514

Change-Id: Iebb0896592076fac5ffe71cec0806140228851d9
Reviewed-on: http://git-master/r/70960
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: smmu: Remove unnecessary memory barrier
Hiroshi DOYU [Fri, 11 Nov 2011 12:37:25 +0000]
ARM: tegra: smmu: Remove unnecessary memory barrier

memory barrier(wmb()) doesn't affect transaction among AHB/APB bus
transaction but only register read-back does.

Change-Id: If8da79bc3f536bac025e408afe0f26cca2274f86
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/66355
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: enterprise: Remove dsi postsuspend
Vinayak Pane [Thu, 10 Nov 2011 02:02:34 +0000]
ARM: tegra: enterprise: Remove dsi postsuspend

Removing regulator_disable() from dsi panel postsuspend function.
No need to put down power rail avdd_dsi_csi. Do nothing to
avoid possible issues during resume.

Bug 897991
Bug 900960

Reviewed-on: http://git-master/r/63444
(cherry picked from commit 03940175b51c58a6fdd3b56112070c8e3d9c5613)

Change-Id: I56dca68976bb50eda33f709c1ac4c6f7a2d8e2d2
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/70691
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoarm: tegra: cardhu: pm299: Add Ricoh583 RTC support
venu byravarasu [Fri, 16 Dec 2011 07:15:48 +0000]
arm: tegra: cardhu: pm299: Add Ricoh583 RTC support

Add board details for Ricoh583 PMU RTC

bug 902137

Change-Id: I02e9565e907cf3c4a631962fb559ec2a058abb53
Signed-off-by: venu byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/70019
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarch: arm: config: Add Minimal Linux defconfig for Mods
Dinesh Israni [Mon, 19 Dec 2011 22:47:25 +0000]
arch: arm: config: Add Minimal Linux defconfig for Mods

Change-Id: I3094e3f781b9fdc3acdea6db20e65bf289ee4de6
Reviewed-on: http://git-master/r/69922
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Dinesh Israni <disrani@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoARM: Tegra: Rename clk_dev2 to cdev2
Victor Ryabukhin [Mon, 19 Dec 2011 09:13:45 +0000]
ARM: Tegra: Rename clk_dev2 to cdev2

Originaly renaming was done in commit ddb7d5d80
However, some of clock names ramained unchanged.
Fixed this.

Bug 917441

Change-Id: I0bac986c0be6e66fc4ae258563091d4c7d9c45c3
Signed-off-by: Victor Ryabukhin <vryabukhin@nvidia.com>
Reviewed-on: http://git-master/r/70973
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: harmony: add spdif driver support
Bill Huang [Mon, 19 Dec 2011 08:23:39 +0000]
arm: tegra: harmony: add spdif driver support

bug 911107

Change-Id: Iaf463f44d56942b181ae48b5b8e464e5b9164687
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Reviewed-on: http://git-master/r/70965
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoasoc: tegra: put the cache init code under macro
Nikesh Oswal [Mon, 19 Dec 2011 04:53:47 +0000]
asoc: tegra: put the cache init code under macro

put the cache init code under CONFIG_PM macro
this fixes the build breaks where CONFIG_PM macro
is not defined

Change-Id: I0d140d52d80a24298afeefcf4e81b3c6b65d465f
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/70939
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra3: dvfs: Added DVFS entries
Mohit Kataria [Mon, 14 Nov 2011 12:18:11 +0000]
ARM: tegra3: dvfs: Added DVFS entries

Added dvfs entries for automotive skus

Bug 883565, 882186

Change-Id: I6186b682fa82e24c3062bcbf5c2e5580fdf80562
Signed-off-by: Mohit Kataria<mkataria@nvidia.com>
Reviewed-on: http://git-master/r/70292
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: Use generator macros for pinmux selectors
Scott Williams [Wed, 14 Dec 2011 21:41:20 +0000]
arm: tegra: Use generator macros for pinmux selectors

Replace the hand-crafted pinmux mux selector enumerators and
name table with generator macros to avoid mismatches between
them.

Change-Id: I2e56bf89a4b29f33af00d0e4d2617ee13c554997
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/70088
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agonet: usb: raw-ip: Fix kernel panic in RAW-IP network driver
Michael Hsu [Thu, 8 Dec 2011 21:58:55 +0000]
net: usb: raw-ip: Fix kernel panic in RAW-IP network driver

For RAW-IP network driver, use async version of autopm calls
since it might be called in interrupt context.

Change-Id: Ie8ab3fd1ab1268d01d3e9333d2b27a1b3ccf0686
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/69890
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agommc: core: Retry if data commands fail with error
Mayuresh Kulkarni [Tue, 20 Dec 2011 11:16:48 +0000]
mmc: core: Retry if data commands fail with error

If the data commands fail due to some error, retry the transfer.
Add 3 retries for data commands.

for bug 914934

Change-Id: I53245ddd159abdbade09f841d9490d2f106e7c88
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/71181
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agousb: cdc: fix build break
Varun Wadekar [Wed, 21 Dec 2011 05:28:05 +0000]
usb: cdc: fix build break

Change-Id: I844648f0833ededabda0f2d6aebae214d600b796
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra3: defconfig: enable EMC_SCALING.
Peer Chen [Fri, 16 Dec 2011 09:39:00 +0000]
arm: tegra3: defconfig: enable EMC_SCALING.

Enabled EMC_SCALING option.

Signed-off-by: Peer Chen <pchen@nvidia.com>

Change-Id: I1a01be4668637c718544fcc6806b4c42a3ad27ae
Reviewed-on: http://git-master/r/70533
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra3: defconfig: enable cpu idle.
Peer Chen [Fri, 16 Dec 2011 09:29:20 +0000]
arm: tegra3: defconfig: enable cpu idle.

Enabled cpu idle option.

Signed-off-by: Peer Chen <pchen@nvidia.com>

Change-Id: I614fddb65f63b143420c7d18d72a1d19c9ea98d2
Reviewed-on: http://git-master/r/70526
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra3: defconfig: enable cpu governor.
Peer Chen [Fri, 16 Dec 2011 09:17:30 +0000]
arm: tegra3: defconfig: enable cpu governor.

Enabled cpu frequency governor option.

Signed-off-by: Peer Chen <pchen@nvidia.com>

Change-Id: I9df41be4a946723549d5af515e7cd4710ca44708
Reviewed-on: http://git-master/r/70522
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra[3]: config: remove DEBUG_DRIVER
Mursalin Akon [Wed, 14 Dec 2011 19:48:51 +0000]
ARM: tegra[3]: config: remove DEBUG_DRIVER

This CL is to get rid of continuous debug spew.

Change-Id: I9546ff82dcb41c3cd877b4d866d05097581aca85
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70066
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra[3]: regenerate defconfigs
Mursalin Akon [Wed, 14 Dec 2011 19:27:56 +0000]
ARM: tegra[3]: regenerate defconfigs

Regenerate defconfigs to reflect current Kconfigs

Change-Id: I224833dc80934e2bfa374eaa85e22a70391d3fd2
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/70060
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: harmony: enable power key to wake up the system
Bill Huang [Thu, 15 Dec 2011 10:53:20 +0000]
arm: tegra: harmony: enable power key to wake up the system

enable power button for waking up harmony

bug 911107

Change-Id: Id69204a904cafa4186cbac201830ac6d1e5a81b1
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Reviewed-on: http://git-master/r/70274
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: enterprise: Add hsic callbacks for M7400 modem.
Raj Jayaraman [Tue, 6 Dec 2011 00:43:03 +0000]
arm: tegra: enterprise: Add hsic callbacks for M7400 modem.

Bug 886459

Change-Id: If7fb3e26c0a1a16bc61929eba6f0a62d7522cb05
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/69568
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomisc: tegra-baseband: Refactor power code.
Raj Jayaraman [Fri, 2 Dec 2011 22:30:29 +0000]
misc: tegra-baseband: Refactor power code.

Bug 886459

Change-Id: I6005ba8081951a015f101ad864c00232ea88590a
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/69567
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agomedia: video: tegra: AD5820: fix i2c_wr byte order
Charlie Huang [Fri, 9 Dec 2011 22:49:21 +0000]
media: video: tegra: AD5820: fix i2c_wr byte order

The byte order in the reg_write call was swapped.
Also updates the mode truth table so focuser can choose one
to work on.
Corrects the position range and set the settle time dependents
on the transition mode.

bug 909072

Change-Id: I91fffbe4810b86883f934b08a4fdbc3284efd652
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/69279
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agomisc: mpu3050: Allow accelerometer to enter suspend during LP
Daniel Solomon [Tue, 22 Nov 2011 01:33:10 +0000]
misc: mpu3050: Allow accelerometer to enter suspend during LP

The KXTF9's control reg PC1 bit was being set for both
suspend and resume config structs in kxtf9_set_odr().
This caused the accelerometer to be turned on during both
suspend and resume.

Bug 902379

Cherry-picked From: http://git-master/r/#change,65983
Signed-off-by: Daniel Solomon <daniels@nvidia.com>

Change-Id: If0a17af5b4538008dbf4d4f8b2d280f8d3981e3f
Reviewed-on: http://git-master/r/69260
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

7 years agoALSA: HDA: Disable all references of clocks at end of suspend
Sumit Bhattacharya [Thu, 15 Dec 2011 13:03:06 +0000]
ALSA: HDA: Disable all references of clocks at end of suspend

HDA driver used to enable clocks during suspend only if there is no
active clock. But this logic causes a race condition when hda codec
power work thread disables the active instance of hda clocks in
middle of suspend. To avoid this race condition always enable
HDA clocks at start of suspend operation and disable all active
references of HDA clocks at end of suspend. Since HDA driver
suspend also suspends all active codecs there is no chance of
getting HDA clock disable call after completion of suspend.

Bug 915436

Change-Id: I4956ba28488d6d445ea2d53fb2592897a2ad83bb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/70315
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>