7 years agovideo: tegra: dc: Call display client disable before dc irq disable
Animesh Kishore [Fri, 27 Jan 2012 14:25:48 +0000]
video: tegra: dc: Call display client disable before dc irq disable

dc irqs are required in display client disable to flag
stopping of dc stream.

Bug 930453
Reviewed-on: http://git-master/r/77808

Change-Id: I0e057ca14078d9e608cb32380123fade813c4041
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78898
Reviewed-by: Automatic_Commit_Validation_User

7 years agoInput: evdev - Add ioctl to block suspend while event queue is not empty.
Arve Hjønnevåg [Fri, 17 Oct 2008 22:20:55 +0000]
Input: evdev - Add ioctl to block suspend while event queue is not empty.

Add an ioctl, EVIOCSSUSPENDBLOCK, to enable a wakelock that will block
suspend while the event queue is not empty. This allows userspace code to
process input events while the device appears to be asleep.

The current code holds the wakelock for up 5 seconds for every input
device and client. This can prevent suspend if sensor with a high data
rate is active, even when that sensor is not capable of waking the
device once it is suspended.

(cherry picked from commit 4dc43d7079bdae572212368e1d29abea0177c932 from
android.googlesource.com/common.git)

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I160d2afe77aa76c9d2bbe01cd4b81434201361a9
Reviewed-on: http://git-master/r/78895
Reviewed-by: Automatic_Commit_Validation_User

7 years agoInput: evdev - Don't hold wakelock when no data is available to user-space
Arve Hjønnevåg [Tue, 24 Jan 2012 01:15:45 +0000]
Input: evdev - Don't hold wakelock when no data is available to user-space

If there is no SYN_REPORT event in the buffer the buffer data is invisible
to user-space. The wakelock should not be held in this case.

(cherry picked from commit 7cc846069a8a9116d8c81526c459070eed0e3477 from
android.googlesource.com/common.git)

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I7555b190ff8e4e526291dd353c3c0291b05dfff2
Reviewed-on: http://git-master/r/78894
Reviewed-by: Automatic_Commit_Validation_User

7 years agousb: gadget: Fix usb string id allocation
Varun Wadekar [Thu, 2 Feb 2012 05:09:38 +0000]
usb: gadget: Fix usb string id allocation

Don't reset next_string_id every time the gadget is enabled, this makes
the next strings allocated overwrite strings allocated at probe time.
Instead, fix rndis not to allocate new string ids on every config bind.

(cherry picked from commit a6ccb73389f3df11e788bf84254a7b27c430f949 from
android.googlesource.com/common.git)

Change-Id: Ied28ee416bb6f00c434c34176fe5b7f0dcb2b2d4
Signed-off-by: Benoit Goby <benoit@android.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78888
Reviewed-by: Automatic_Commit_Validation_User

7 years agonl80211/cfg80211: Make addition of new sinfo fields safer
Jouni Malinen [Thu, 11 Aug 2011 08:46:22 +0000]
nl80211/cfg80211: Make addition of new sinfo fields safer

Add a comment pointing out the use of enum station_info_flags for
all new struct station_info fields. In addition, memset the sinfo
buffer to zero before use on all paths in the current tree to avoid
leaving uninitialized pointers in the data.

(cherry picked from commit 87159de9c30dab02b84cbaffa7498140d4ebc1a1 from
android.googlesource.com/common.git)

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I24301d45108587e66c8421a7f2a94ea98300ebeb
Reviewed-on: http://git-master/r/78887
Reviewed-by: Automatic_Commit_Validation_User

7 years agocfg80211/nl80211: Send AssocReq IEs to user space in AP mode
Jouni Malinen [Mon, 8 Aug 2011 09:11:52 +0000]
cfg80211/nl80211: Send AssocReq IEs to user space in AP mode

When user space SME/MLME (e.g., hostapd) is not used in AP mode, the
IEs from the (Re)Association Request frame that was processed in
firmware need to be made available for user space (e.g., RSN IE for
hostapd). Allow this to be done with cfg80211_new_sta().

(cherry picked from commit d692df224b8605095cb7f770c1c99d3150834daf from
android.googlesource.com/common.git)

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I211171ca4953832cc998402c149ecf3fc429f9e6
Reviewed-on: http://git-master/r/78886
Reviewed-by: Automatic_Commit_Validation_User

7 years agomisc: remove android pmem driver, it's obsolete.
Dima Zavin [Mon, 23 Jan 2012 18:39:02 +0000]
misc: remove android pmem driver, it's obsolete.

(cherry picked from commit d1e94136fc4fe8ea608f4e9d21befa00c86e1e29 from
android.googlesource.com/common.git)

Change-Id: I48d9778007e1e9eed2bb34e33ceee818c23afaa5
Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78885
Reviewed-by: Automatic_Commit_Validation_User

7 years agoRevert "proc: enable writing to /proc/pid/mem"
Dima Zavin [Thu, 19 Jan 2012 17:51:07 +0000]
Revert "proc: enable writing to /proc/pid/mem"

This reverts commit 198214a7ee50375fa71a65e518341980cfd4b2f0.
(cherry picked from commit dac306d896642f3dfcd878ab6a0a5b8c123722f3 from
android.googlesource.com/common.git)

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: Ia8947a59125e9318f1c51cb63ceb15a6e136aad9
Reviewed-on: http://git-master/r/78884
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: Co-locate all GIC functions
Scott Williams [Wed, 1 Feb 2012 23:49:06 +0000]
ARM: tegra: Co-locate all GIC functions

Move Tegra GIC initialization to be with the other GIC functions.

Change-Id: I9b23757d135f3a9062f21fccb816c745ce8add43
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/78829
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: ventana: probing for bq20z75 chip
Ramalingam C [Wed, 1 Feb 2012 13:56:09 +0000]
arm: tegra: ventana: probing for bq20z75 chip

In the probe function of the bq20z75 driver, check for the presence of the
bq20z75. If there is no response from device, terminate the driver
initialization.

Bug 932030

Change-Id: I6608eaea6b6b37b18d3f77f40d58c1f8e9b05b3c
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/78750
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Rhyland Klein <rklein@nvidia.com>

7 years agoarm: tegra: fuse: Keep fuse register visible always
Venu Byravarasu [Tue, 31 Jan 2012 04:41:29 +0000]
arm: tegra: fuse: Keep fuse register visible always

Fuse registers are made visible during init.
As they need not be masked and unmasked during
every fuse access, removing these functions.

bug 933113
Reviewed-on: http://git-master/r/78355

Change-Id: If95c021b9ec377ba9610eedd481ec3c8ff6bf874
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78714
Reviewed-by: Automatic_Commit_Validation_User

7 years agotty: serial: tegra: Add runtime PM support
Pradeep Kumar [Mon, 23 Jan 2012 10:29:04 +0000]
tty: serial: tegra: Add runtime PM support

Add runtime PM support for tegra uart high speed driver.

Bug 887359
Reviewed-on: http://git-master/r/76805

Change-Id: I3439435eb40d36d66182a19011791399b6e65655
Signed-off-by: Pradeep Kumar <pgoudagunta@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78713
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: xmm: Fix linux warning
Seshendra Gadagottu [Sat, 28 Jan 2012 04:17:40 +0000]
arm: tegra: xmm: Fix linux warning

Fixed linux warnings in baseband_xmm_power.c file.

BUG 921565
Reviewed-on: http://git-master/r/77964

Change-Id: I6d0c6ef0c30351d6bfc77a733d306ab581ad9ea6
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78712
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: whistler: disable USB3
Rakesh Bodla [Mon, 30 Jan 2012 16:27:12 +0000]
arm: tegra: whistler: disable USB3

Disabling USB3 for whistler as it is not a typical
use case.

Bug 872683
Reviewed-on: http://git-master/r/78197

Change-Id: I0c70ceb68717277e892758ce1742e52a99a7f0da
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78711
Reviewed-by: Automatic_Commit_Validation_User

7 years agotegra: usb: phy: set is_dpd true for device mode
Rakesh Bodla [Mon, 30 Jan 2012 12:42:14 +0000]
tegra: usb: phy: set is_dpd true for device mode

If there is PMU interrupt for device mode set is_dpd
to true. This will disable avdd_usb regulator.

Bug 926694
Reviewed-on: http://git-master/r/78196

Change-Id: I7e0045ecb53f2fc984d567ff0e1331620f61be1d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78710
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: power: Updated EDP table to latest spec
Daniel Solomon [Fri, 27 Jan 2012 00:23:06 +0000]
arm: tegra: power: Updated EDP table to latest spec

Added new tables for T37/T33A (same table as T33) and AP37

Bug 844268
Reviewed-on: http://git-master/r/77662

Change-Id: I51e0939eb2f1f5582215bc409cf2d8eaf9890fba
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78709
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: dvfs: Add Tegra3 x7 detection
Daniel Solomon [Thu, 26 Jan 2012 23:14:34 +0000]
ARM: tegra: dvfs: Add Tegra3 x7 detection

- Detect T37 and AP37 SKUs.
- Created a new threshold for T37

Bug 841336
Reviewed-on: http://git-master/r/77661

Change-Id: I78a6875058ebd6bc5e70042aec020c259de0976c
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78708
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: dvfs: Add Tegra3 x7 core dvfs
Alex Frid [Tue, 24 Jan 2012 03:08:47 +0000]
ARM: tegra: dvfs: Add Tegra3 x7 core dvfs

- Added Tegra3 x7 core dvfs entries
- Increased EMC, graphics, and UART clocks maximum limits
- Updated PLLC configuration table

Bug 841336
Reviewed-on: http://git-master/r/76942

Change-Id: Ifa235e60d66d959ad589574c5ebde90eb0b65385
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78707
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: dvfs: Add Tegra3 x7 CPU dvfs entries
Alex Frid [Mon, 23 Jan 2012 21:40:48 +0000]
ARM: tegra: dvfs: Add Tegra3 x7 CPU dvfs entries

Bug 841336
Reviewed-on: http://git-master/r/76912

Change-Id: I2806c8e4f08af49edf57f00a43438b1503d6aedb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78706
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: enterprise: fix memleak in hsic_host_register
Vinayak Pane [Thu, 26 Jan 2012 09:47:29 +0000]
ARM: tegra: enterprise: fix memleak in hsic_host_register

Use platform_device_add_data() instead of kmalloc for creating
a copy of platform data. Let the driver-model release the memory
allocated for platform_data to avoid possible memory leak.

Bug 923597
Reviewed-on: http://git-master/r/77544

Change-Id: Ic7a54e773c95999b14ec97059a2f49999ea7d5ed
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78705
Reviewed-by: Automatic_Commit_Validation_User

7 years agoasoc: tegra: set proper bit clk for I2S in slave DSP mode
Nikesh Oswal [Mon, 30 Jan 2012 06:10:40 +0000]
asoc: tegra: set proper bit clk for I2S in slave DSP mode

Bug: 919350
Reviewed-on: http://git-master/r/77989

Change-Id: I9a8d9a1a4d029f1b312405200fcb485de0fc5767
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78704
Reviewed-by: Automatic_Commit_Validation_User

7 years agoasoc: tegra: whistler: add support for bt voice call
Nikesh Oswal [Mon, 30 Jan 2012 06:16:34 +0000]
asoc: tegra: whistler: add support for bt voice call

add support for bt voice call and also make bt as master
and i2s as slave for bt-soc playback and record because for
bt voice call modem is slave and bt is master

Bug: 919350
Reviewed-on: http://git-master/r/77990

Change-Id: I5bbb6cc4b08c5ab1d700ce4d21bbdf9be606e551
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78703
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: power: Update CPU complex resume
Alex Frid [Thu, 29 Dec 2011 04:41:00 +0000]
ARM: tegra: power: Update CPU complex resume

- Completely removed PLLP restoration from CPU complex resume on
Tegra3 platforms (too late: if necessary PLLP is restored by LPx
exit code on Tegra3, and attempt to restore it again does not do
any good).

- Restored PLLX only if it is not already used as CPU source
(it is dangerous to restore PLL in use).

- Restore burst policy on exit from LPx states, but preserve it
after cluster switch, as it maybe different for LP and G clusters.

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

Change-Id: Ia5ff24d22a2135494bc3442f92bebcc1953c7f08
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78702
Reviewed-by: Automatic_Commit_Validation_User

7 years agoregulator: max77663: Add Global Low-Power Mode
Jin Park [Tue, 17 Jan 2012 06:24:11 +0000]
regulator: max77663: Add Global Low-Power Mode

Added GLPM(Global Low-Power Mode) to support Low-Power Mode
during sleep mode.

Bug 924686
Reviewed-on: http://git-master/r/75627

Change-Id: Ia4be1b6b24de95f29ac173bed71c045a246cbcde
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78701
Reviewed-by: Automatic_Commit_Validation_User

7 years agoinput: tegra: kbc: KP INT EN when scantimeout zero
Ashwini Ghuge [Mon, 30 Jan 2012 11:04:18 +0000]
input: tegra: kbc: KP INT EN when scantimeout zero

Enable wake from LP1 on KP interrupt when scan timeout
is set to zero.

Bug 921161
Reviewed-on: http://git-master/r/78146

Change-Id: I6f28f0da971bd159b40412608fca2615a70f6988
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78700
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: cardhu: Prohibit INA monitors from loading on PM269
Gary Fitzer [Sat, 21 Jan 2012 00:15:43 +0000]
arm: tegra: cardhu: Prohibit INA monitors from loading on PM269

Verbier PM269 of cardhu builds do not contain INA219 components
to monitor power.  Stopping drivers from loading on PM269 to remove
i2c error prints.

Bug 927866
Reviewed-on: http://git-master/r/76704

Change-Id: I7a20a9942da58e1d18e75719b43be86ecc2ded01
Signed-off-by: Gary Fitzer <gfitzer@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78699
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: iovmm: Use round_{up,down} instead of homebrews
Hiroshi DOYU [Mon, 21 Nov 2011 12:06:51 +0000]
ARM: tegra: iovmm: Use round_{up,down} instead of homebrews

Replaced iovmm_align_{up,down} with round_{up,down}

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

Change-Id: Ie0e2b8b97c57ae3addcfe63968d00f6937cbc7d8
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78698
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: power: Report LP3 state if LP2 is not allowed
Alex Frid [Sun, 29 Jan 2012 00:26:22 +0000]
ARM: tegra: power: Report LP3 state if LP2 is not allowed

Properly report LP3 state to idle governor when LP2 entry is not
allowed and LP2 request is redirected to LP3.

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

Change-Id: If4bdf6b635d7b40a8958dc5357903c4ea563d112
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78697
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: defconfig: enable NFC
Rakesh Goyal [Wed, 1 Feb 2012 10:34:31 +0000]
arm: tegra: defconfig: enable NFC

enable CONFIG_NFC and CONFIG_PN544_NFC to support pn544.

Bug 932798

Change-Id: I411edc7dbf97afd050cfe4f68991a2f132886773
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/78689
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agommc: host: tegra: remove redundant code from tegra_sdhci_suspend
Varun Wadekar [Wed, 1 Feb 2012 10:08:29 +0000]
mmc: host: tegra: remove redundant code from tegra_sdhci_suspend

tegra_sdhci_suspend() had code to disable the same regulators
twice. Remove one instance of the code to avoid warnings
during system suspend.

Change-Id: I71789b40a6d5e5c500c57b8323b9f4bc79634886
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78682
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: cardhu: enable wakeup through interrupt keys
Laxman Dewangan [Wed, 1 Feb 2012 05:48:33 +0000]
arm: tegra: cardhu: enable wakeup through interrupt keys

Pass wakeup_enable  = true through platform data for interrupt
keys to enable wakeup functionality from suspend states.

Change-Id: I5d58bb0ed34991ca429dbd6f4c2448782c343dbf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/78608
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: enterprise/cardhu: set debounce time to 20ms.
Laxman Dewangan [Wed, 1 Feb 2012 05:42:16 +0000]
arm: tegra: enterprise/cardhu: set debounce time to 20ms.

bug 925600

Change-Id: I2560a0874f5af96a8f59922ab0f267c676662ca1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/78606
Reviewed-by: Automatic_Commit_Validation_User

7 years agotracedump: Fix build error
Prashant Gaikwad [Tue, 31 Jan 2012 13:00:26 +0000]
tracedump: Fix build error

Change-Id: Ica22a3f92c8ca33a5779a74d3afad775736b1663
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/78450
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoinclude: linux: wl12xx: remove macro redefinitions
Varun Wadekar [Tue, 31 Jan 2012 12:42:22 +0000]
include: linux: wl12xx: remove macro redefinitions

Change-Id: Ifddccc5407d517b098c448c568a909750abe8380
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78444
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra3: Enable workaround for ARM_ERRATA_754322
Scott Williams [Fri, 27 Jan 2012 18:34:07 +0000]
ARM: tegra3: Enable workaround for ARM_ERRATA_754322

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

Change-Id: If1fbb73eff40dafdb7bcbe8da451115ef2105b0b
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78441
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: cpufreq: Fix error handling in tegra_target()
Alex Frid [Thu, 26 Jan 2012 08:00:07 +0000]
ARM: tegra: cpufreq: Fix error handling in tegra_target()

Check error returned by cpufreq table helper API to avoid using
uninitialized table index in failed case.

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

Change-Id: Ie47481a27397c6cafe73bfbddab0a392837ad019
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78439
Reviewed-by: Automatic_Commit_Validation_User

7 years agodrivers: misc: ti-st: remove commented code
Rakesh Goyal [Tue, 24 Jan 2012 15:30:53 +0000]
drivers: misc: ti-st: remove commented code

Removing commented and unused code from the driver

Bug 926128
Reviewed-on: http://git-master/r/77038

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

7 years agoarm: tegra: kai: add support for bluetooth and wifi
Om Prakash Singh [Tue, 20 Dec 2011 13:05:37 +0000]
arm: tegra: kai: add support for bluetooth and wifi

1) Enable TEGRA_GPIO_PU0 for Bluetooth
2) Add platform device wl128x_device and btwilink_device for Bluetooth
3) Set platform data kai_wlan_data for WiFi

Bug 926128
Reviewed-on: http://git-master/r/75929

Change-Id: I3bbe48899358106a299728e924e5a893f68ac60c
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78437
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarch: tegra3: config: enable TI wl12xx wifi and bluetooth
Om Prakash Singh [Wed, 21 Dec 2011 08:29:27 +0000]
arch: tegra3: config: enable TI wl12xx wifi and bluetooth

Bug 926128
Reviewed-on: http://git-master/r/75252

Change-Id: I7f9928ab1efdb82ab73eea595c2a8590057b8c72
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78436
Reviewed-by: Automatic_Commit_Validation_User

7 years agotegra: usb: baseband: CP wakeup during system suspend
Seshendra Gadagottu [Fri, 27 Jan 2012 09:53:18 +0000]
tegra: usb: baseband: CP wakeup during system suspend

baseband_xmm_power driver is updated with suspend/resume noirq callbacks.
If any CP wake-up is pending during suspen_noirq callback, then ongoing
system suspend will be aborted. With this mechanism, CP wakeup after
baseband_xmm_power driver suspend is handled.

BUG 904762
Reviewed-on: http://git-master/r/72933

Change-Id: Iae6f638885118c73d6154aad9daefee0cfc8e7d4
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78435
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo:tegra:hdmi: skip useless check
Colin Patrick McCabe [Wed, 9 Nov 2011 21:46:54 +0000]
video:tegra:hdmi: skip useless check

Don't check if dc is NULL after we've already dereferenced it.

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

Change-Id: I0af6c829b6143b21a1f7de47a1ccfeac4bda99e0
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78434
Reviewed-by: Automatic_Commit_Validation_User

7 years agodma-buf: Introduce dma buffer sharing mechanism
Sumit Semwal [Mon, 26 Dec 2011 09:23:15 +0000]
dma-buf: Introduce dma buffer sharing mechanism

This is the first step in defining a dma buffer sharing mechanism.

A new buffer object dma_buf is added, with operations and API to allow easy
sharing of this buffer object across devices.

The framework allows:
- creation of a buffer object, its association with a file pointer, and
   associated allocator-defined operations on that buffer. This operation is
   called the 'export' operation.
- different devices to 'attach' themselves to this exported buffer object, to
  facilitate backing storage negotiation, using dma_buf_attach() API.
- the exported buffer object to be shared with the other entity by asking for
   its 'file-descriptor (fd)', and sharing the fd across.
- a received fd to get the buffer object back, where it can be accessed using
   the associated exporter-defined operations.
- the exporter and user to share the scatterlist associated with this buffer
   object using map_dma_buf and unmap_dma_buf operations.

Atleast one 'attach()' call is required to be made prior to calling the
map_dma_buf() operation.

Couple of building blocks in map_dma_buf() are added to ease introduction
of sync'ing across exporter and users, and late allocation by the exporter.

For this first version, this framework will work with certain conditions:
- *ONLY* exporter will be allowed to mmap to userspace (outside of this
   framework - mmap is not a buffer object operation),
- currently, *ONLY* users that do not need CPU access to the buffer are
   allowed.

More details are there in the documentation patch.

This is based on design suggestions from many people at the mini-summits[1],
most notably from Arnd Bergmann <arnd@arndb.de>, Rob Clark <rob@ti.com> and
Daniel Vetter <daniel@ffwll.ch>.

The implementation is inspired from proof-of-concept patch-set from
Tomasz Stanislawski <t.stanislaws@samsung.com>, who demonstrated buffer sharing
between two v4l2 devices. [2]

[1]: https://wiki.linaro.org/OfficeofCTO/MemoryManagement
[2]: http://lwn.net/Articles/454389

Change-Id: I8ebd858ad86242ee7b02d5f42bb25c3edbd64fca
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-and-Tested-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
[Hiroshi DOYU: Backported from v3.3-rc1]
Reviewed-on: http://git-master/r/78384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>

7 years agomodule.h: split out the EXPORT_SYMBOL into export.h
Paul Gortmaker [Mon, 23 May 2011 18:11:39 +0000]
module.h: split out the EXPORT_SYMBOL into export.h

A lot of files pull in module.h when all they are really
looking for is the basic EXPORT_SYMBOL functionality. The
recent data from Ingo[1] shows that this is one of several
instances that has a significant impact on compile times,
and it should be targeted for factoring out (as done here).

Note that several commonly used header files in include/*
directly include <linux/module.h> themselves (some 34 of them!)
The most commonly used ones of these will have to be made
independent of module.h before the full benefit of this change
can be realized.

We also transition THIS_MODULE from module.h to export.h,
since there are lots of files with subsystem structs that
in turn will have a struct module *owner and only be doing:

.owner = THIS_MODULE;

and absolutely nothing else modular. So, we also want to have
the THIS_MODULE definition present in the lightweight header.

[1] https://lkml.org/lkml/2011/5/23/76

Change-Id: I52c16cc63f483d7c572cd0ef2475ef642dfa11c1
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
[Hiroshi DOYU: Backported from v3.3-rc1 for DMABUF]
Reviewed-on: http://git-master/r/78383
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agogpu: ion: Fix with mainline IOMMU API change
Hiroshi DOYU [Mon, 23 Jan 2012 07:33:47 +0000]
gpu: ion: Fix with mainline IOMMU API change

The mainline IOMMU API v3.3-rc1 has been changed so that bytes are
used in mapping size instead of page order and page-by-page iteration
is taken care of by iommu core.

Change-Id: Ib331b6f3f7075385499eb13dd040c80444d706a8
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/78139
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoiommu: tegra/smmu: Fix with mainline IOMMU API change
Hiroshi DOYU [Fri, 20 Jan 2012 13:32:33 +0000]
iommu: tegra/smmu: Fix with mainline IOMMU API change

The mainline IOMMU API v3.3-rc1 has been changed so that bytes are
used in mapping size instead of page order and page-by-page iteration
is taken care of by iommu core.

The rest are mostly for maintainability:
$ git co iommu/next drivers/iommu/tegra-smmu.c

Change-Id: Ib4fdee4a637b3065a1eab6c56923b05f46b3b582
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/78137
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: clock: Expand PLL usage restriction mechanism
Varun Wadekar [Mon, 30 Jan 2012 07:05:39 +0000]
ARM: tegra: clock: Expand PLL usage restriction mechanism

Expand PLL usage restriction mechanism from Tegra3 only to common
tegra clock framework implementation: fail set parent API if new
parent is not allowed per usage policy.

Actual usage policy is architecture dependent and exists now only
on Tegra3.

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

Change-Id: I2a8d60cc0ddfd2179961ef50418b193f2e1829c8
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78029
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: clock: Check usage policy when set cansleep
Alex Frid [Wed, 25 Jan 2012 06:56:03 +0000]
ARM: tegra: clock: Check usage policy when set cansleep

Check PLL usage policy when traversing clock tree for descendants of
sleeping clock. Don't propagate cansleep attribute if parent is not
allowed.

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

Change-Id: Ibe79888d378924f416f8458146b21d1bc3671f16
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78028
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: baseband: Configure wakeup source for xmm
Seshendra Gadagottu [Fri, 27 Jan 2012 06:17:34 +0000]
arm: tegra: baseband: Configure wakeup source for xmm

Configure wake irq for waking up AP from xmm modem.
Also enable/disable this wake source base on flight mode
off/on setting.

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

Change-Id: Iad274da9869102874efab27312fe8a182ab55bf3
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78026
Reviewed-by: Automatic_Commit_Validation_User

7 years agotegra: usb: phy: increase timeout for bus connect
Vinayak Pane [Wed, 4 Jan 2012 23:41:31 +0000]
tegra: usb: phy: increase timeout for bus connect

Increasing timeout to 25ms for bus connect and bus idle.
New bus_reset times out for the first time, fix this by
changing USB phy mode to HSIC.

Bug 922444
Reviewed-on: http://git-master/r/73367

Change-Id: I717c98a4e3e8d943a8a922c70442211a0f7fd9be
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78017
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: dma: Remove duplicate function tegra_dma_dequeue()
Laxman Dewangan [Fri, 27 Jan 2012 14:06:26 +0000]
ARM: tegra: dma: Remove duplicate function tegra_dma_dequeue()

The functon tegra_dma_dequeue() duplicates the functionality
of tegra_dma_dequeue_req().And this function does not use proper
locking before accessing the channel data.
Removing this function.

Change-Id: Ib6baaa984b038908c49adb3a0f3df3433f0a9066
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/77805
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agospi: tegra: dequeue dma req using tegra_dma_dequeue_req()
Laxman Dewangan [Fri, 27 Jan 2012 14:02:56 +0000]
spi: tegra: dequeue dma req using tegra_dma_dequeue_req()

The dma client should use the tegra_dma_dequeue_req() for
dequeue the dma request.

Change-Id: I1f433c85ffec997d8c608e08509c48c72b27120a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/77804
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoserial: tegra: dequeue dma req using tegra_dma_dequeue_req()
Laxman Dewangan [Fri, 27 Jan 2012 13:43:44 +0000]
serial: tegra: dequeue dma req using tegra_dma_dequeue_req()

The dma client should use the tegra_dma_dequeue_req() for
dequeue the dma request.

Change-Id: I1bfdca4810a61cb9f9699dabafb2ba045d2c6bd5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/77803
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

7 years agoarm: tegra: dma: read transfer count without stopping dma.
Laxman Dewangan [Fri, 27 Jan 2012 13:20:37 +0000]
arm: tegra: dma: read transfer count without stopping dma.

Dma user must call the function tegra_dma_get_transfer_count()
for knowing transferred count without stopping dma.

Change-Id: I5e0060fd8163b285496442268548a90bdd0e294c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/77800
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: defconfig: touchscreen, Synaptics SPI driver
Ali Ekici [Thu, 19 Jan 2012 23:26:32 +0000]
arm: tegra: defconfig: touchscreen, Synaptics SPI driver

Enable Snaptics SPI touch driver which is used for DirectTouch
purposes.

bug 912775

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

Change-Id: I2a2bc4dd68c09039dd36b6c8786b8d16ecb35c80
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77776
Reviewed-by: Automatic_Commit_Validation_User

7 years agoMerge remote-tracking branch 'origin/dev/k3.3-rc1-iommu' into android-tegra-nv-3.1
Rohan Somvanshi [Wed, 1 Feb 2012 10:33:06 +0000]
Merge remote-tracking branch 'origin/dev/k3.3-rc1-iommu' into android-tegra-nv-3.1

Change-Id: I9001bb291779f107bbcb593d48f9f0f734074d0e

7 years agospi: tegra: use run time pm apis for clock control
Laxman Dewangan [Mon, 30 Jan 2012 11:28:45 +0000]
spi: tegra: use run time pm apis for clock control

Used run time apis for clock controls i.e. clock enable/
disable in place of direct clock apis.
Using of runtime pm api was already implemented but it was
missed on probe where it was calling clock_disable.
Fixing this issue.

bug 928541

Change-Id: I511467bd1cbe05f2a05d219d19236426a30d05d5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/78156
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>

7 years agoARM: tegra: clock: Decrease CPU rate range low bound
Alex Frid [Thu, 26 Jan 2012 01:06:02 +0000]
ARM: tegra: clock: Decrease CPU rate range low bound

Add 51 MHz entry to cpufreq tables (102 MHz was minimum supported
rate before).

Bug 922351
Reviewed-on: http://git-master/r/77511

Change-Id: I20eea30cdadfb9efbf6489f8aaf5934f653af128
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78032
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: power: Set awake system CPU rate floor
Alex Frid [Wed, 25 Jan 2012 23:23:25 +0000]
ARM: tegra: power: Set awake system CPU rate floor

Set CPU rate floor to 100MHz when the system is awake (after boot,
or on late resume). Remove the floor when the system enters early
suspend.

Bug 922351
Reviewed-on: http://git-master/r/77444

Change-Id: I68f54a3d981c1cbeac16d58d3beb6e3aa6bf190c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78031
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: clock: Restrict Tegra3 PLLC usage
Alex Frid [Wed, 25 Jan 2012 07:15:28 +0000]
ARM: tegra: clock: Restrict Tegra3 PLLC usage

On Tegra3 PLLC should be used as a parent clock only for graphics bus
(cbus) modules and secondary PLLC divider. Fail set parent API if PLLC
is selected as a new parent for other clocks.

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

Change-Id: I564278dcdd62c17c6446218955c366b1612c73b3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78030
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: p1852: Add p1852 defconfig
Manoj Chourasia [Fri, 20 Jan 2012 09:49:46 +0000]
arm: tegra: p1852: Add p1852 defconfig

bug 871603

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

Change-Id: I2ff63550fde536ee0e0f1b69b3a58e4f164e62e5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78027
Reviewed-by: Automatic_Commit_Validation_User

7 years agodrivers: video: tegra: Amend list of gr3d regs
Terje Bergstrom [Tue, 17 Jan 2012 12:23:58 +0000]
drivers: video: tegra: Amend list of gr3d regs

Save and restore new gr3d registers. This is a workaround for
hardware not always initializing the registers to proper state
after un-powergating.

Bug 914785
Reviewed-on: http://git-master/r/75698

Change-Id: Id9d65d93d16daf68e29b1433b7dd3284cb439ffc
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78025
Reviewed-by: Automatic_Commit_Validation_User

7 years agosdhci: tegra: Enabling power rails when card present
naveenk [Tue, 17 Jan 2012 09:39:09 +0000]
sdhci: tegra: Enabling power rails when card present

Enabling power rails when the card is present
which reduces power consumption

Bug 924888
Reviewed-on: http://git-master/r/75653

Change-Id: If9cbd02b49821954646845bd889501e9159c7b8c
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78023
Reviewed-by: Automatic_Commit_Validation_User

7 years agommc: tegra: Enable SDR104 and SDR50 support
Pavan Kunapuli [Fri, 27 Jan 2012 11:01:20 +0000]
mmc: tegra: Enable SDR104 and SDR50 support

Enable SDR104 and SDR50 support for Tegra3.

Bug 920089
Bug 913598
Reviewed-on: http://git-master/r/75248

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

7 years agommc: core: Set card state to ddr in UHS DDR50 mode
Pavan Kunapuli [Thu, 29 Dec 2011 14:50:34 +0000]
mmc: core: Set card state to ddr in UHS DDR50 mode

When SD 3.0 cards operate in UHS DDR50 mode, set the
card state to ddr mode to select the proper frequency.

Bug 925326
Reviewed-on: http://git-master/r/72628

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

7 years agoinclude: wl_wilink: define dummy st_ll_getstate() when !CONFIG_TI_ST
Rakesh Goyal [Wed, 25 Jan 2012 23:06:49 +0000]
include: wl_wilink: define dummy st_ll_getstate() when !CONFIG_TI_ST

Few board specific calls use this function. Compilation fails if
calls from the board file is not protected by CONFIG_TI_ST, which
is not recommended.

Bug 926128
Reviewed-on: http://git-master/r/77435

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

7 years agowl12xx: add new board_tcxo_clock element to the platform data
Luciano Coelho [Thu, 10 Mar 2011 14:42:47 +0000]
wl12xx: add new board_tcxo_clock element to the platform data

This new value is a new type of clock setting that is used by wl128x
chipsets.

Bug 926128

Reviewed-on: http://git-master/r/77361
(cherry picked from commit 62c7d085e1f2a1f2b4d89560551eff18d703b3b1)

Change-Id: I2cf2af565a2574cf789ae73a59b4891969506491
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78019
Reviewed-by: Automatic_Commit_Validation_User

7 years agodrivers: misc: ti-st: apply wl12xx patch from TI
Rakesh Goyal [Wed, 25 Jan 2012 12:15:12 +0000]
drivers: misc: ti-st: apply wl12xx patch from TI

patch is for following feature
1) use set_power() defined in platform file to
switch on/off BT.
2) send_ll_cmd  according to state

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

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

7 years agomedia: fix corner case in tegra_mediaserver
Colin Patrick McCabe [Thu, 19 Jan 2012 22:04:10 +0000]
media: fix corner case in tegra_mediaserver

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

Change-Id: I653afbb6f766493e5d458b2ba4babb8e400c30c1
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78016
Reviewed-by: Automatic_Commit_Validation_User

7 years agomach-tegra: tegra3_actmon: skip useless check
Colin Patrick McCabe [Wed, 18 Jan 2012 23:12:48 +0000]
mach-tegra: tegra3_actmon: skip useless check

Don't check if an unsigned variable < 0.

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

Change-Id: Ia61781a8f5b8ebcdc39501486ed3f893a91d3430
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78015
Reviewed-by: Automatic_Commit_Validation_User

7 years agonet: usb: raw-ip: Defer tx urb submit to work function.
Michael Hsu [Wed, 25 Jan 2012 06:01:59 +0000]
net: usb: raw-ip: Defer tx urb submit to work function.

Defer tx urb submit to work function to avoid problems with autopm
not fully resumed.

BUG 929408
Reviewed-on: http://git-master/r/77228

Change-Id: Id559d65384780067e48faee6c79134eb35d298fc
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78014
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agomach-tegra: add missing return statement
Colin Patrick McCabe [Wed, 18 Jan 2012 20:13:23 +0000]
mach-tegra: add missing return statement

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

Change-Id: Ia77147074cb90d0ed22f64135a16b374f258b008
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78013
Reviewed-by: Automatic_Commit_Validation_User

7 years agomedia: tps61050: fix NVC_IOCTL_PWR_RD
Colin Patrick McCabe [Thu, 19 Jan 2012 23:15:39 +0000]
media: tps61050: fix NVC_IOCTL_PWR_RD

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

Change-Id: If51967720de2f4dc1634906fa263c693aef87d75
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78012
Reviewed-by: Automatic_Commit_Validation_User

7 years agomach-tegra: fix uninitialized variable
Colin Patrick McCabe [Wed, 18 Jan 2012 20:08:27 +0000]
mach-tegra: fix uninitialized variable

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

Change-Id: Idbc213bb17d0e006c9a4cdaf500a94dbae1007d0
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78011
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra3: change min_rate for sclk
Wen Yi [Tue, 24 Jan 2012 06:54:21 +0000]
arm: tegra3: change min_rate for sclk

Change the minimal rate of sclk to 12 MHz and set the lowest
frequency of sbus to be 40 MHz when display is on.

BUG 922351
Reviewed-on: http://git-master/r/76959

Change-Id: I6a2871d1cc02a19829cf397e9583122e02255f81
Signed-off-by: Wen Yi <wyi@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78010
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: host: initialize id of hostdev to -1
Mayuresh Kulkarni [Fri, 20 Jan 2012 08:14:06 +0000]
video: tegra: host: initialize id of hostdev to -1

This ensures that host1x's name is host1x, and not host1x.0

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

Change-Id: I91d9dcbec108ee7f35dc638ed9370552f6eaa164
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78009
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agotegra_mediaserver: Add missing mutex unlock
Ron Vaughn [Tue, 20 Dec 2011 17:06:46 +0000]
tegra_mediaserver: Add missing mutex unlock

Add a mutex_unlock() that was missing in the failure case of
the mediasrv_unlocked_ioctl() function.

Bug 918148
Reviewed-on: http://git-master/r/71470

Change-Id: Id935e2eadfcd5ca3ebf7a086afbcfd4224c52604
Signed-off-by: Ron Vaughn <rvaughn@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78008
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: Kai: Touch setup
Ali Ekici [Fri, 20 Jan 2012 00:51:28 +0000]
arm: tegra: Kai: Touch setup

Added touch setup and init calls to board-kai.c & h files
Also limited max spi clock rate (sbc1) to 72 Mhz

Bug 912775
Bug 832605

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

Change-Id: I616bd97538c1513307bce178bb9fd4040a9ecd4d
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77777
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoarm: tegra: kai: Synaptics DirectTouch
Ali Ekici [Wed, 11 Jan 2012 18:57:25 +0000]
arm: tegra: kai: Synaptics DirectTouch

Board file for Synaptics SPI touch connection which is
used for DirectTouch initialization

Bug 912775

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

Change-Id: Ie296ddff5b9e1fbf9296d40fde2877598a13207e
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77775
Reviewed-by: Automatic_Commit_Validation_User

7 years agoinput: touchscreen: DirectTouch Synaptics driver
Ali Ekici [Wed, 11 Jan 2012 22:10:13 +0000]
input: touchscreen: DirectTouch Synaptics driver

This is Synaptics' open source driver except one line
change to accomodate an SPI kernel driver feature
which does not accomodate optional byte-delay. It
will be fully original driver when we add byte-delay
into Tegra SPI kernel drivers.

Bug 912775

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

Change-Id: I0f39928c48bc0e633de0d2c1f595bcef47268d52
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77774
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: kai: Raydium DirectTouch
Ali Ekici [Wed, 11 Jan 2012 18:57:25 +0000]
arm: tegra: kai: Raydium DirectTouch

Board file for Raydium SPI touch connection which is
used for DirectTouch initialization

Bug 832605

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

Change-Id: Icac5ebd22b5a3b6fe38d3e23a37f88df067c0c10
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77773
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: clock: Update CPU clock scaling dependencies
Alex Frid [Fri, 20 Jan 2012 07:21:21 +0000]
ARM: tegra: clock: Update CPU clock scaling dependencies

Added Tegra3 MSelect clock to memory on CPU clock dependencies:
MSelect rate is scaled as half of CPU rate, up to 102MHz. Prevented
CPU clock increase if updates of dependent clocks (EMC and MSelect)
have failed.

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

Change-Id: I679b60eb5aa13d5cca2b9751ff2c8c2fb866a076
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77767
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra: clock: Add support for Tegra3 MSelect clock
Alex Frid [Fri, 20 Jan 2012 06:05:45 +0000]
ARM: tegra: clock: Add support for Tegra3 MSelect clock

Added clock for memory path selection module (MSelect) to Tegra3
peripheral clocks. Initialized MSelect clock rate to 102MHz.

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

Change-Id: I73676882d8e6805445985b23257bcf6410e8c3e0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77766
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoasoc:tegra: Support I2S slave mode
ScottPeterson [Wed, 18 Jan 2012 01:32:11 +0000]
asoc:tegra: Support I2S slave mode

Support I2S slave mode. Disable pll_p_out1 and
pll_a to reduce power when in slave mode.

Slave mode disabled by default.

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

Change-Id: I873a11d54f1e037d99c86ff4cec06ee83064902a
Signed-off-by: ScottPeterson <speterson@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77765
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo: tegra: host: CPU reg read to use power management
Terje Bergstrom [Tue, 24 Jan 2012 06:00:36 +0000]
video: tegra: host: CPU reg read to use power management

CPU register read did not have access to nvhost power management.
Due to this only modules that were powered on previously are actually
accessible via the API. This patch refactors CPU access to:

 * Move mutexes to sync point, as they're sync point operations
 * Move register address spaces to nvhost_device
 * Call register read with access to the respective nvhost_device
 * Initialize module completely at boot-up so that register reads
   can be done without an initialized channel.

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

Change-Id: I0db38cef7b2cd92dc64e7f55d227bdd2fdb8f752
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77764
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: comms: Auto suspend after system resume
Seshendra Gadagottu [Thu, 5 Jan 2012 12:22:52 +0000]
arm: tegra: comms: Auto suspend after system resume

Re-enable usb auto suspend on system resume by making
get_interface() and put_interface() calls.

BUG 921565
Reviewed-on: http://git-master/r/73468

Change-Id: Ieb7c82e73a7134e1d3bb8b0b3e96a42ed6672afe
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77763
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agomedia: video: ov5650: add sensor group hold.
Frank Chen [Wed, 11 Jan 2012 18:55:31 +0000]
media: video: ov5650: add sensor group hold.

Grouphold gain and coarse_time register writes.
Make gain and coarse_time set in one ioctl call.

Bug 924213

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

Change-Id: I648e4c24c1a048629757abc21afba092d1484d04
Signed-off-by: Yining Deng <ydeng@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77762
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: comms: handle usb disconnection
Seshendra Gadagottu [Mon, 26 Dec 2011 07:42:12 +0000]
arm: tegra: comms: handle usb disconnection

Flushing pending urb requests on disconnection.
Blocks usb requests on usb device disconnection.

BUG 919270

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

Change-Id: I9ae10685d9517e0626338cfd42b21479d7d480eb
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77760
Reviewed-by: Automatic_Commit_Validation_User

7 years agoinput: touchscreen: move board shared data structure to linux/platform_data
Peter Zu [Thu, 26 Jan 2012 04:17:53 +0000]
input: touchscreen: move board shared data structure to linux/platform_data

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

Change-Id: Iafe31126fbcec1bfd01b51e0c122b44d3a71bbda
Signed-off-by: Peter Zu <pzu@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77759
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarch: arm: configs: Defconfig for MODS LDK
Dinesh Israni [Wed, 25 Jan 2012 04:56:54 +0000]
arch: arm: configs: Defconfig for MODS LDK

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

Change-Id: I1a9183102bcb1c70956f773101b2cf78c4dc2fc9
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77758
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: power: disable SUSPEND_NONE mode selection
Bitan Biswas [Wed, 25 Jan 2012 09:54:30 +0000]
arm: tegra: power: disable SUSPEND_NONE mode selection

sysfs interface to select suspend mode as TEGRA_SUSPEND_NONE
is disabled. Additionally, if tegra_suspend_dram is called
with suspend mode as TEGRA_SUSPEND_NONE we return error

bug 927937

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

Change-Id: Ifdd57cdf27e739a9c093cad4eddefb73a6a2355d
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77757
Reviewed-by: Automatic_Commit_Validation_User

7 years agoasoc: tegra: max98088: implement an api to get voice call state
Nikesh Oswal [Wed, 25 Jan 2012 06:47:52 +0000]
asoc: tegra: max98088: implement an api to get voice call state

Bug: 924817

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

Change-Id: Ife3bb3439b4b00d042684500d7ffb6bc00100ba6
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77756
Reviewed-by: Automatic_Commit_Validation_User

7 years agotegra_audio: declare an api for getting voice call state
Nikesh Oswal [Wed, 25 Jan 2012 06:46:15 +0000]
tegra_audio: declare an api for getting voice call state

Bug: 924817

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

Change-Id: Iea767c952cfac8cb1643e28b7e29e43ad298909e
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77755
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo: tegra: host: enable_3d_scaling perms 0644
Ilan Aelion [Tue, 24 Jan 2012 18:08:48 +0000]
video: tegra: host: enable_3d_scaling perms 0644

Allowing user to write sysfs nodes breaks CTS. 3D scaling should be
enabled in all current power modes and does not need to be toggled
by user / system code. Hence disabling user write permission.

Bug 906796

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

Change-Id: I164926b5e65a05d63928c9e7c5970ea930cde37b
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77754
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: Clock audio from clk_m
ScottPeterson [Wed, 18 Jan 2012 00:37:09 +0000]
arm: tegra: 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: I1706c2989cf7ad9045526ceba3326777b702868a

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

Signed-off-by: ScottPeterson <speterson@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I243508cc553ebf22bb5594a9461019abfec24b65
Reviewed-on: http://git-master/r/77753
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoasoc: wm8903: Fix clock functions
ScottPeterson [Wed, 18 Jan 2012 00:51:20 +0000]
asoc: wm8903: Fix clock functions

Clock function for non-integral of sample
rate clocks does not work correctly and
generates incorrect sample rate.

Signed-off-by: ScottPeterson <speterson@nvidia.com>

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

Change-Id: I39977c9e2b647d4eabc8d9209c2d05665f708ab0
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77752
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: Fix setting CPU_RESETTABLE_SOON flag
Joshua Cha [Mon, 16 Jan 2012 07:26:11 +0000]
arm: tegra: Fix setting CPU_RESETTABLE_SOON flag

tegra2_cpu_set_resettable_soon() should be called in CPU1 only.

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

Change-Id: I0825a2d2ed2935d2b1dac1ff7d134e1f4f37f552
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77751
Reviewed-by: Automatic_Commit_Validation_User

7 years agotegra: wdt: Add KEEPALIVE function to WDT driver
Kamal Kannan Balagopalan [Tue, 24 Jan 2012 06:46:09 +0000]
tegra: wdt: Add KEEPALIVE function to WDT driver

Add KEEPALIVE functionality to Tegra WDT driver for use by user space
applications.

Bug 887733

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

Change-Id: I966371bc5db34416de08c8dc2af9069b4bd34c5d
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77750
Reviewed-by: Automatic_Commit_Validation_User

7 years agomedia: video: tegra: nvavp: Fix suspend/resume
Isaac Richards [Tue, 24 Jan 2012 17:13:05 +0000]
media: video: tegra: nvavp: Fix suspend/resume

Mark host1x as busy only when clocks are enabled, instead of
unconditionally at load/unload and suspend/resume time.  Shutdown
the avp device entirely during suspend, and restart it on resume if
if necessary.

Bug 929279

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

Change-Id: I0c66c26302fe307bea396e1c547a67b3417e26ec
Signed-off-by: Isaac Richards <irichards@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77749
Reviewed-by: Automatic_Commit_Validation_User

7 years agotegra: usb: phy: Pullup HSIC strobe at idle
Vinayak Pane [Wed, 14 Dec 2011 04:34:30 +0000]
tegra: usb: phy: Pullup HSIC strobe at idle

Correcting the strobe and SOFs behaviour. This avoids run-stop
bit to start before actual bus_reset. Also, pullup the
strobe signal during idle and wait for connect detect
after bus idle.

Bug 898008
Bug 922444

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

Change-Id: I01999521013677f159ee9c12f2d7bcb453c3b39d
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77748
Reviewed-by: Automatic_Commit_Validation_User

7 years agoarm: tegra: whistler/ventana: add ram console
Joshua Cha [Fri, 13 Jan 2012 08:53:30 +0000]
arm: tegra: whistler/ventana: add ram console

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

Change-Id: I4c90973c808bb9f21a01d6d30fd1bfe915728439
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77747
Reviewed-by: Automatic_Commit_Validation_User