7 years agopowerpc/85xx: Enable I2C_CHARDEV and I2C_MPC options in defconfigs
Shaveta Leekha [Sat, 17 Mar 2012 08:58:56 +0000]
powerpc/85xx: Enable I2C_CHARDEV and I2C_MPC options in defconfigs

Enable I2C char dev interface for user space testing of I2C controler.
Enable the I2C driver on 64-bit builds (corenet64_smp_defconfig) as it
was missing.

Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

7 years agopowerpc/85xx: add the P1020UTM-PC DTS support
Jerry Huang [Tue, 20 Mar 2012 06:24:45 +0000]
powerpc/85xx: add the P1020UTM-PC DTS support

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

7 years agopowerpc/85xx: add the P1020MBG-PC DTS support
Jerry Huang [Tue, 20 Mar 2012 06:24:44 +0000]
powerpc/85xx: add the P1020MBG-PC DTS support

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

7 years agopowerpc/8xxx: remove 85xx/86xx restrictions from fsl_guts.h
Timur Tabi [Mon, 19 Mar 2012 16:06:39 +0000]
powerpc/8xxx: remove 85xx/86xx restrictions from fsl_guts.h

Remove the check for CONFIG_PPC_85xx and CONFIG_PPC_86xx from fsl_guts.h.
The check was originally intended to allow the same header file to
be used on 85xx and 86xx systems, even though the Global Utilities
register could be different.  It turns out that they're not actually
different, and so the check is not necessary.  In addition, neither
macro is defined for 64-bit e5500 kernels, so that causes a build
break.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

7 years agocpumask: remove old cpu_*_map.
Rusty Russell [Thu, 29 Mar 2012 05:08:31 +0000]
cpumask: remove old cpu_*_map.

These are obsolete: cpu_*_mask provides (const) pointers.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

7 years agodocumentation: remove references to cpu_*_map.
Rusty Russell [Thu, 29 Mar 2012 05:08:31 +0000]
documentation: remove references to cpu_*_map.

This has been obsolescent for a while, fix documentation and
misc comments.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

7 years agodrivers/cpufreq/db8500-cpufreq: remove references to cpu_*_map.
Rusty Russell [Thu, 29 Mar 2012 05:08:30 +0000]
drivers/cpufreq/db8500-cpufreq: remove references to cpu_*_map.

This has been obsolescent for a while; time for the final push.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Dave Jones <davej@redhat.com>
Cc: cpufreq@vger.kernel.org
Cc: Sundar Iyer <sundar.iyer@stericsson.com>
Cc: Martin Persson <martin.persson@stericsson.com>
Cc: Jonas Aaberg <jonas.aberg@stericsson.com>

7 years agoremove references to cpu_*_map in arch/
Rusty Russell [Wed, 18 Apr 2012 12:56:46 +0000]
remove references to cpu_*_map in arch/

This has been obsolescent for a while; time for the final push.

In adjacent context, replaced old cpus_* with cpumask_*.

Change-Id: I31923349e2960f6f2c8432be8dedd4678aed1577
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: David S. Miller <davem@davemloft.net> (arch/sparc)
Acked-by: Chris Metcalf <cmetcalf@tilera.com> (arch/tile)
Cc: user-mode-linux-devel@lists.sourceforge.net
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: linux-hexagon@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: sparclinux@vger.kernel.org

7 years agousb: otg: tegra: fix usage of "struct usb_otg"
Varun Wadekar [Wed, 18 Apr 2012 06:29:29 +0000]
usb: otg: tegra: fix usage of "struct usb_otg"

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

7 years agousb: class: cdc-acm: fix compilation errors
Varun Wadekar [Wed, 18 Apr 2012 06:28:15 +0000]
usb: class: cdc-acm: fix compilation errors

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

7 years agoARM: tegra30: pcie: add MEM_SIZE_x, MEM_BASE_x and PREFETCH_MEM_BASE_x
Varun Wadekar [Wed, 18 Apr 2012 06:27:01 +0000]
ARM: tegra30: pcie: add MEM_SIZE_x, MEM_BASE_x and PREFETCH_MEM_BASE_x

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

7 years agoRevert "video: tegra: dc: load video mode during vblank"
Jon Mayo [Fri, 16 Mar 2012 19:50:59 +0000]
Revert "video: tegra: dc: load video mode during vblank"

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

7 years agousb: otg: tegra: set & read otg state with sysfs
Venu Byravarasu [Wed, 18 Apr 2012 06:05:52 +0000]
usb: otg: tegra: set & read otg state with sysfs

Add support for setting & reading back OTG state with sysfs

bug 947300

Change-Id: I178c3eb6e2b227ca11fee8916e38c6677d3e4cb0
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/96660
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

Conflicts:

drivers/usb/otg/tegra-otg.c

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

7 years agoARM: tegra: add several other sysfs/debugfs params
Liang Cheng [Thu, 12 Apr 2012 18:56:05 +0000]
ARM: tegra: add several other sysfs/debugfs params

Bug 939292

Change-Id: Ib0c849418c6c426518948785082fcceb180f3d64
Reviewed-on: http://git-master/r/96250
Tested-by: Liang Cheng (SW) <licheng@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Mark Peters <mpeters@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoARM: tegra: clock: Apply shared bus ceiling always
Alex Frid [Wed, 18 Apr 2012 06:02:30 +0000]
ARM: tegra: clock: Apply shared bus ceiling always

Apply shared bus ceiling regardless of whether Tegra3 SHARED_CEILING
user is enabled or disabled. Thus, we no longer need to enable ceiling
user - and the bus itself via child-parent relations - to cap the bus
rate.

Bug 954896

Change-Id: I7f96f03f05fd39334c9ee977cd1ac18d86a1fc0d
Signed-off-by: Alex Frid <afrid@nvidia.com>
(cherry picked from commit 07b1a707aa14dcab37f095a3bb78af79a54c399b)
Reviewed-on: http://git-master/r/95739
Reviewed-by: Daniel Solomon <daniels@nvidia.com>
Tested-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Conflicts:

arch/arm/mach-tegra/tegra3_clocks.c

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

7 years agocpufreq: interactive: change timer rate
Shridhar Rasal [Fri, 13 Apr 2012 15:04:42 +0000]
cpufreq: interactive: change timer rate

Tune *timer_rate* used to increase cpu frequency.

bug 943712

Change-Id: I3ded757e21825c475606976c2dcfcd75d9467ef8
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/96525
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agousb: ehci: tegra: use suspend_noirq()/resume_noirq()
Preetham Chandru [Wed, 18 Apr 2012 06:00:18 +0000]
usb: ehci: tegra: use suspend_noirq()/resume_noirq()

usb driver needs to be suspended late and resumed early even
before irqs are disabled/enabled. Without this change the following
two issues are seen during lp0 and lp1 states.

In lp0, when there is a usb wakeup event (by unplugging the usb device)
we get the following error:
"tegra-ehci tegra-ehci.2:fatal error"
"tegra-ehci tegra-ehci.2: HC died; cleaning up"
The above error comes because an irq is generated even before the
usb_resume was called.

A similar issue is seen in lp1 as well.

Bug 954564
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: Id25fd2588ec034bd6aa54c17607e322f412adc5c
Reviewed-on: http://git-master/r/95778
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

drivers/usb/host/ehci-tegra.c

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

7 years agoarm: tegra: Cardhu: E1198 DirectTouch setup
Ali Ekici [Tue, 20 Mar 2012 16:29:43 +0000]
arm: tegra: Cardhu: E1198 DirectTouch setup

Modified touch setup and init calls to support DirectTouch
in E1198 19x12 system.

Change-Id: Ide208c4759af15200fb57530e7fbdc023d074c5c
Signed-off-by: Ali Ekici <aekici@nvidia.com>
Reviewed-on: http://git-master/r/91260
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoUSB: cdc-acm: disconnect stuck issue and acm_tty_open crash
Vinayak Pane [Wed, 18 Apr 2012 05:58:05 +0000]
USB: cdc-acm: disconnect stuck issue and acm_tty_open crash

acm_disconnect() should not kill the anchored URB because
they are already killed by stop_data_traffic().

Submit read URBs before control urb is sent because there is a
possibility of response coming immediately after ctrl is sent.

Bug 957744
Bug 961808

(cherry picked from commit 05c10cbe01f0275e5fe121d763692261c51987fc)
Reviewed-on: http://git-master/r/93673
Signed-off-by: Vinayak Pane <vpane@nvidia.com>

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

Conflicts:

drivers/usb/class/cdc-acm.c

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

7 years agonet: usb: raw-ip: check invalid reference
Shawn Joo(Seongho) [Thu, 8 Mar 2012 08:46:26 +0000]
net: usb: raw-ip: check invalid reference

before point reference check valid.
it prevents null point reference panic.

Bug 954883

Signed-off-by: Shawn Joo(Seongho) <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/88781
(cherry picked from commit aac87c7d9c7cf7563bb79a29d517a6ffdba5874f)

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

7 years agoarm: tegra: xmm: add shutdown handler to off cp
Seongho Joo [Wed, 7 Mar 2012 03:32:46 +0000]
arm: tegra: xmm: add shutdown handler to off cp

add shutdown handler to turn off CP when power off
and disable irq for ap wake.

Bug 942968

Signed-off-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/88188
(cherry picked from commit d37a1900afb9982115f18989b0114bad8f2602bd)

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

7 years agoarm: tegra: xmm: modify CP power sequence
Seongho Joo [Sat, 25 Feb 2012 03:28:14 +0000]
arm: tegra: xmm: modify CP power sequence

modify CP power sequence timing based on modem vendor
spec information.
> 20 ms  : REST low and ON low
> 400 us : RESET high and ON low
> 60 us  : RESEET high and ON high

Bug 943280

Signed-off-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/85964
(cherry picked from commit 8a6e64228f11d46f502c654bd9a1b508af93a67b)

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

7 years agovideo: tegra: nvmap: Disable CONFIG_NVMAP_ALLOW_SYSMEM
Hiroshi DOYU [Wed, 21 Mar 2012 08:36:15 +0000]
video: tegra: nvmap: Disable CONFIG_NVMAP_ALLOW_SYSMEM

This is necessary to introduce DMA iommu mapping API in nvmap.

Change-Id: I9c043460ca08cc25c4688811a2021820aed5c9f7
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/96378
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agousb: serial: baseband: Restructure open and close
Vinayak Pane [Tue, 20 Mar 2012 01:18:09 +0000]
usb: serial: baseband: Restructure open and close

This commit reorganizes the usb chr driver for
 (1) Application does not have to rmmod & insmod
 (2) Application recovery mechanism to restart download
 (3) Change memory allocation policy to accommodate in low-mem
 situations.
 (4) Avoid kernel panic when module is not removed

Bug 947621
Bug 956211

Reviewed-on: http://git-master/r/91373
(cherry picked from commit bb5a148979a92191e0dfb4d97d4942f877f18309)

Change-Id: I2679d1d5f94cfe6e7dc98df0026f64cab703fe5c
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/96334
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agousb: cdc-acm: fix anchored urb leak
Vinayak Pane [Mon, 27 Feb 2012 01:32:13 +0000]
usb: cdc-acm: fix anchored urb leak

Anchored urbs needs to put ref count after unanchoring
them at resume.

Bug 944250

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/86015
(cherry picked from commit eb88ad392bdc05ce216d6adeec54c4f4856ec78a)

Change-Id: I7e5413fb8866db9a15da57166402cb567f07391a
Reviewed-on: http://git-master/r/96333
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoarm: tegra: baseband: check usb intf after resume
Vinayak Pane [Thu, 23 Feb 2012 00:55:39 +0000]
arm: tegra: baseband: check usb intf after resume

Check for valid interface after system resume and before
enabling runtime pm.

Bug 944052

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/85330
(cherry picked from commit a32495671f104e1ba0f5a4940bde17d34b9c87f2)

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

7 years agonet: usb: raw-ip: do not free skb if TX_BUSY flag set
Vinayak Pane [Sat, 11 Feb 2012 05:00:10 +0000]
net: usb: raw-ip: do not free skb if TX_BUSY flag set

Consume skb buffers only in success case. In fatal error
case stop tx transmission instead. This prevents many retries
and possible kernel crash.

Bug 937178

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/83290
(cherry picked from commit 974ffdc61f26d86744e1a7b1003117da50df9020)

Change-Id: Ib2b982c0cea91d2ba5e30c04869c4f22dca7ed31
Reviewed-on: http://git-master/r/96331
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoinput: keyboard: fully remove interrupt_key driver
Dan Willemsen [Thu, 12 Apr 2012 21:02:14 +0000]
input: keyboard: fully remove interrupt_key driver

a6ecc18e92 removed the sources for the interrupt_key driver, this
removes the include file as well. There are no in-tree users of this
header file.

Change-Id: I90a8c25e8aed5daa6480407b095ebb82d83f7137
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/96262
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoregulator: gpio-switch: Fully remove
Dan Willemsen [Thu, 12 Apr 2012 20:54:30 +0000]
regulator: gpio-switch: Fully remove

0cb53fae65 removed the sources for the gpio-switch-regulator, but missed
the header file. There are no in-tree users of this header file.

Change-Id: Ib497e97b9374025c18c7b20a2006d0c66e2b68a7
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/96258
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agocrypto: tegra-aes: schedule single work handler
Amit Kamath [Thu, 29 Mar 2012 05:48:07 +0000]
crypto: tegra-aes: schedule single work handler

Multiple queue were getting scheduled leading to race condition.

Bug 955259

Change-Id: I7dd8d0d15b17552c3a611449642439ae21fa4b5d
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/93097
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoiommu/tegra: smmu: Print device name correctly
Hiroshi DOYU [Fri, 16 Mar 2012 14:28:13 +0000]
iommu/tegra: smmu: Print device name correctly

Print an attached device name correctly.

Change-Id: I8352bd81916936aa2276a51c0161f0c2be709760
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/96138
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoasoc: codecs: rt5639/40: Fix false Headset detection
Manoj Gangwal [Fri, 30 Mar 2012 11:04:00 +0000]
asoc: codecs: rt5639/40: Fix false Headset detection

1. Use rt5639/40 internal clk source during jack insert detection.
2. Add delay to 100ms.

Bug 955019

Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/93510
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit 4c07fc1b10ac8abbbf167952071e47aa6179a635)

Change-Id: I4021232674f5432392dc013ddc76c3bf08b44ed0
Reviewed-on: http://git-master/r/95874
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoHID: hid-sony: set sony PS3 controller LEDs over bluetooth
Nagarjuna Kristam [Wed, 11 Apr 2012 05:41:06 +0000]
HID: hid-sony: set sony PS3 controller LEDs over bluetooth

set PS3 controller first LED, when connected over bluetooth.

Bug 847075

Change-Id: Ia32c692cbd5d7e041625d8bccfcb935ae669e82a
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/95804
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agotegra3: p1852: Update defconfig.
Manoj Chourasia [Fri, 13 Apr 2012 04:39:47 +0000]
tegra3: p1852: Update defconfig.

1. Disable PM_SLEEP
2. Disable Early ACK for MC
3. Enabled TEGRA SDHCI support
4. Disabled DEBUG_LL.

bug 931053

Change-Id: I387d528bef3e6fa85b986c70e805693f7f5ce701
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91478
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Shankar Subramanian <ssubramanian@nvidia.com>

7 years agoarm:tegra[3]:config: power up wifi chip at boot
Mursalin Akon [Wed, 18 Apr 2012 05:39:51 +0000]
arm:tegra[3]:config: power up wifi chip at boot

power up wifi chip at boot using Kconfig option
TEGRA_PREPOWER_WIFI

Bug 956238

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

Conflicts:

arch/arm/configs/tegra_defconfig

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

7 years agoarm:tegra[3]: power up wifi chip at boot
Mursalin Akon [Fri, 16 Mar 2012 18:38:20 +0000]
arm:tegra[3]: power up wifi chip at boot

power up WiFi chip, if Kconfig option
TEGRA_PREPOWER_WIFI is turned on.

Bug 956238

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

7 years agoarm:tegra[3]: make embedded_sdio platform data conditional
Mursalin Akon [Fri, 16 Mar 2012 18:15:56 +0000]
arm:tegra[3]: make embedded_sdio platform data conditional

embedded_sdio is used, iff MMC_EMBEDDED_SDIO
Kconfig is on. This CL makes it explicit.

Additionally, for SDIO sdhci always keep the power on.

Bug 956238

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

7 years agommc:host:tegra: make embedded sdio code conditional
Mursalin Akon [Fri, 16 Mar 2012 16:40:34 +0000]
mmc:host:tegra: make embedded sdio code conditional

Enable embedded sdio code, iff MMC_EMBEDDED_SDIO
Kconfig is on.

Bug 956238

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

7 years agoregmap: fix compile errors in regmap-irq.c due to stride changes
Stephen Warren [Wed, 11 Apr 2012 05:37:22 +0000]
regmap: fix compile errors in regmap-irq.c due to stride changes

Commit f01ee60fffa4 ("regmap: implement register striding") caused the
compile errors below. Fix them.

drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_sync_unlock':
drivers/base/regmap/regmap-irq.c:62:12: error: 'map' undeclared (first use in this function)
drivers/base/regmap/regmap-irq.c:62:12: note: each undeclared identifier is reported only once for each function it appears in
drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_enable':
drivers/base/regmap/regmap-irq.c:77:37: error: 'map' undeclared (first use in this function)
drivers/base/regmap/regmap-irq.c: In function 'regmap_irq_disable':
drivers/base/regmap/regmap-irq.c:85:37: error: 'map' undeclared (first use in this function)

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 56806555de5485d6786bf0f8df01b8ed9fc5d006)

Change-Id: I1b0787c81695ddbfb081a1342690a44162474574
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96511
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: implement register striding
Stephen Warren [Mon, 9 Apr 2012 19:40:24 +0000]
regmap: implement register striding

regmap_config.reg_stride is introduced. All extant register addresses
are a multiple of this value. Users of serial-oriented regmap busses will
typically set this to 1. Users of the MMIO regmap bus will typically set
this based on the value size of their registers, in bytes, so 4 for a
32-bit register.

Throughout the regmap code, actual register addresses are used. Wherever
the register address is used to index some array of values, the address
is divided by the stride to determine the index, or vice-versa. Error-
checking is added to all entry-points for register address data to ensure
that register addresses actually satisfy the specified stride. The MMIO
bus ensures that the specified stride is large enough for the register
size.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit f01ee60fffa4dc6c77122121233a793f7f696e67)

Change-Id: I634977dcb0fe9ff95c7932e9195a2c1918eb1c18
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96510
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: fix compilation when !CONFIG_DEBUG_FS
Stephen Warren [Fri, 6 Apr 2012 05:09:20 +0000]
regmap: fix compilation when !CONFIG_DEBUG_FS

Commit 79c64d5 "regmap: allow regmap instances to be named" changed the
prototype of regmap_debugfs_init, but didn't update the dummy inline used
when !CONFIG_DEBUGFS. Fix this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit abec95adefaeb2229cb28de65f3d32cd149b9dd9)

Change-Id: Ieb049fa9ed0dd26d21a37592ecb25488b0909c0b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96509
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: allow regmap instances to be named
Stephen Warren [Wed, 18 Apr 2012 05:38:20 +0000]
regmap: allow regmap instances to be named

Some devices have multiple separate register regions. Logically, one
regmap would be created per region. One issue that prevents this is that
each instance will attempt to create the same debugfs files. Avoid this
by allowing regmaps to be named, and use the name to construct the
debugfs directory name.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
cherry-picked form mainline d3c242e

Change-Id: Ia3301fb4d28645f1d3593e547f9409ce20c0acfe
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96508
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

drivers/base/regmap/regmap.c

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

7 years agoregmap: validate regmap_raw_read/write val_len
Stephen Warren [Fri, 6 Apr 2012 21:16:03 +0000]
regmap: validate regmap_raw_read/write val_len

val_len should be a multiple of val_bytes. If it's not, error out early.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 851960ba7cb38a6a108d102e4c8b0ab702972e22)

Change-Id: Ic17d4bd832b5ea3e426d00ff5d0ae342b8abba45
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96507
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: mmio: remove some error checks now in the core
Stephen Warren [Fri, 6 Apr 2012 21:17:33 +0000]
regmap: mmio: remove some error checks now in the core

These error checks are implemented in regmap core. Remove the duplicate
code from regmap-mmio.c

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 9878647f4349dbaa46b4026ed9bbf8acfc0de34c)

Change-Id: I32979da1bbca852470c0cb8d8d997b2c77d6703f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96506
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: mmio: convert some error returns to BUG()
Stephen Warren [Fri, 6 Apr 2012 21:17:32 +0000]
regmap: mmio: convert some error returns to BUG()

Some of the error conditions detected by regmap_mmio_*() are pure internal
errors, rather than user-/client-triggerable conditions. Convert these to
BUG().

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 40606dba450830e50420599c52a86cf6ce5c6a14)

Change-Id: Ibf926ca6774e4b3d3dd855d42814065858318628
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96505
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: add MMIO bus support
Stephen Warren [Wed, 4 Apr 2012 21:48:31 +0000]
regmap: add MMIO bus support

This is a basic memory-mapped-IO bus for regmap. It has the following
features and limitations:

* Registers themselves may be 8, 16, 32, or 64-bit. 64-bit is only
  supported on 64-bit platforms.
* Register offsets are limited to precisely 32-bit.
* IO is performed using readl/writel, with no provision for using the
  __raw_readl or readl_relaxed variants.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 45f5ff8107a845854b1d1812ab1d9c5541f08b4d)

Change-Id: Ia84cf3fec838ee687e5b77ce771fc2450abe8436
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96504
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: introduce fast_io busses, and use a spinlock for them
Stephen Warren [Wed, 4 Apr 2012 21:48:28 +0000]
regmap: introduce fast_io busses, and use a spinlock for them

Some bus types have very fast IO. For these, acquiring a mutex for every
IO operation is a significant overhead. Allow busses to indicate their IO
is fast, and enhance regmap to use a spinlock for those busses.

[Currently limited to native endian registers -- broonie]

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit bacdbe077342ecc9e7b3e374cc5a41995116706a)

Change-Id: I337f27a09f2b176b46e8f6d05401957a1abc0609
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96503
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: introduce explicit bus_context for bus callbacks
Stephen Warren [Wed, 4 Apr 2012 21:48:30 +0000]
regmap: introduce explicit bus_context for bus callbacks

The only context needed by I2C and SPI bus definitions is the device
itself; this can be converted to an i2c_client or spi_device in order
to perform IO on the device. However, other bus types may need more
context in order to perform IO. Enable this by having regmap_init accept
a bus_context parameter, and pass this to all bus callbacks. The
existing callbacks simply pass the struct device here. Future bus types
may pass something else.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 0135bbcc7a0cc056f0203ff839466236b8e3dc19)

Change-Id: I36b3fb3433af6e6f1e673fc6c73ba21f7eb4d054
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96502
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>

7 years agoregmap: Export regcache_sync_region()
Mark Brown [Tue, 3 Apr 2012 12:08:53 +0000]
regmap: Export regcache_sync_region()

regcache_sync_region() isn't going to be useful to most drivers if we
don't export it since otherwise they can't use it when built modular.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit e466de05194b666114713b753e2f4be1d4200140)

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

7 years agoregmap: Use pad_bits and reg_bits when determining register format.
Marc Reilly [Fri, 16 Mar 2012 01:11:43 +0000]
regmap: Use pad_bits and reg_bits when determining register format.

This change combines any padding bits into the register address bits when
determining register format handlers to use the next byte-divisible
register size.
A reg_shift member is introduced to the regmap struct to enable fixup
of the reg format.
Format handlers now take an extra parameter specifying the number of
bits to shift the value by.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit d939fb9a78b4743bc4bc3cc415894ed42050c5cc)

Change-Id: I80921cfa4dd6aea5e7038927a313baeb347689e2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96499
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: Add support for device with 24 data bits.
Marc Reilly [Fri, 16 Mar 2012 01:11:42 +0000]
regmap: Add support for device with 24 data bits.

Add support for devices with 24 data bits.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit ea279fc5619e2541a0c28196b0fa06447d9ad026)

Change-Id: I69ccd494eb8622c442d55294c24ecd6acd78cfcb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96498
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregmap: rbtree: Fix register default look-up in sync
Lars-Peter Clausen [Fri, 23 Mar 2012 10:04:57 +0000]
regmap: rbtree: Fix register default look-up in sync

The code currently passes the register offset in the current block to
regcache_lookup_reg. This works fine as long as there is only one block and with
base register of 0, but in all other cases it will look-up the default for a
wrong register, which can cause unnecessary register writes. This patch fixes
it by passing the actual register number to regcache_lookup_reg.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: <stable@vger.kernel.org>
(cherry picked from commit 4b4e9e43fd210e0cd2a5d29357e7c000e13e08ae)

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

7 years agobitops: remove for_each_set_bit_cont()
Akinobu Mita [Wed, 18 Apr 2012 05:36:03 +0000]
bitops: remove for_each_set_bit_cont()

Remove for_each_set_bit_cont() after confirming that no one uses
for_each_set_bit_cont() anymore.

[sfr@canb.auug.org.au: regmap: cope with bitops API change]
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cherry-pick from mainline 0a329d2

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

Conflicts:

include/linux/bitops.h

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

7 years agoregmap: Fix rbtree block base in sync
Mark Brown [Mon, 5 Mar 2012 23:28:49 +0000]
regmap: Fix rbtree block base in sync

Otherwise we'll end up running with bogus register numbers.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit f9353e70bcebd00cd182d946083afd7d8eddd259)

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

7 years agoregmap: Fix x86_64 breakage
Mark Brown [Mon, 27 Feb 2012 14:35:33 +0000]
regmap: Fix x86_64 breakage

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit a0941e562e8008804f9fe4400315ceb164752fac)

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

7 years agoregmap: Supply ranges to the sync operations
Mark Brown [Wed, 18 Apr 2012 05:34:16 +0000]
regmap: Supply ranges to the sync operations

In order to allow us to support partial sync operations add minimum and
maximum register arguments to the sync operation and update the rbtree
and lzo caches to use this new information. The LZO implementation is
obviously not good, we could exit the iteration earlier, but there may
be room for more wide reaching optimisation there.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit ac8d91c801905a061ca883dca427a5e19602a1e7)

Change-Id: I92ceee1c704ea7c864bff0559d36cf34554c3ba5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96489
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

drivers/base/regmap/regcache-rbtree.c

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

7 years agoregmap: prevent division by zero in rbtree_show
Stephen Warren [Wed, 4 Apr 2012 21:48:33 +0000]
regmap: prevent division by zero in rbtree_show

If there are no nodes in the cache, nodes will be 0, so calculating
"registers / nodes" will cause division by zero.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
(cherry picked from commit c04c1b9ee8f30c7a3a25e20e406247003f634ebe)

Change-Id: I30047f1e0bd08417794c3d19e2fe1d480a74e083
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96501
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarch: arm: configs: Disable Custom Regulatory
Nitin Bindal [Wed, 18 Apr 2012 05:24:45 +0000]
arch: arm: configs: Disable Custom Regulatory

By default BCMDHD_CUSTOM_REGULATORY_DOMAIN is enabled.

Custom Regulatory domain(CRD) set by bcmdhd driver does not
enable 5GHz band scan. If we disable this config variable,
then CRD of driver will not be used and Kernel will use
default CRD which supports both 2.4 GHz and 5 GHz scan.
So, disable this config variable.

Bug 947472

Change-Id: I051db89cba38e2bb07eb716eec2e74611ad89f06
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/95850
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

arch/arm/configs/tegra_android_defconfig

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

7 years agodrivers: hwmon: tsensor: Enable tsensor hw reset
Joshua Primero [Wed, 28 Mar 2012 22:52:53 +0000]
drivers: hwmon: tsensor: Enable tsensor hw reset

Enabled hw reset in tsensor if temperature exceeds given
temperature limit.

bug 966994

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

7 years agoarm: tegra3: defconfig: Enable function tracer
Prashant Gaikwad [Thu, 29 Mar 2012 05:08:22 +0000]
arm: tegra3: defconfig: Enable function tracer

Bug 953102

Change-Id: I4ef0a32c10df7be63ca5f048eceecd222fa8a8ab
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/89721
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agodrivers: net: bcmdhd: enable CRD through kernel config
Nitin Bindal [Wed, 18 Apr 2012 05:22:50 +0000]
drivers: net: bcmdhd: enable CRD through kernel config

Enable Custom Regulatory Domain(CRD) support, only if
BCMDHD_CUSTOM_REGULATORY_DOMAIN kernel config is set.
By default BCMDHD_CUSTOM_REGULATORY_DOMAIN is enabled.

Bug 947472

Change-Id: I40ea3c3c531d4e309c0928db396b9cc832be43cc
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/88266
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Conflicts:

drivers/net/wireless/bcmdhd/wl_cfg80211.c

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

7 years agoARM: tegra: fuse: Use module_param_cb
Juha Tukkinen [Tue, 10 Apr 2012 12:14:29 +0000]
ARM: tegra: fuse: Use module_param_cb

Use module_param_cb instead of obsolete module_param_call.

Change-Id: I25a86cfa0782e373b82eb58f92058ff6a38fdcba
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/95646
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agovideo: tegra: nvavp: Remove T30 A01 workaround
Juha Tukkinen [Wed, 18 Apr 2012 05:17:43 +0000]
video: tegra: nvavp: Remove T30 A01 workaround

Remove CONFIG_TEGRA_SMMU_BASE_AT_E0000000 workaround as T30 A01 is no
longer supported.

Change-Id: Ic47d0aa16c555bd7821416fff29d723924c6118b
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/95645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Conflicts:

drivers/media/video/tegra/nvavp/nvavp_dev.c

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

7 years agoARM: tegra: common: Remove T30 A01 SMMU workaround
Juha Tukkinen [Wed, 18 Apr 2012 05:16:53 +0000]
ARM: tegra: common: Remove T30 A01 SMMU workaround

Remove CONFIG_TEGRA_SMMU_BASE_AT_E0000000 workaround as T30 A01 is no
longer supported.

Change-Id: I0ba6c838984e3c3ec401057925727c9596a8075f
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/95644
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Conflicts:

arch/arm/mach-tegra/common.c

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

7 years agoarch: ARM: Tegra: removing the akm8975 driver
Ramalingam C [Tue, 10 Apr 2012 12:03:12 +0000]
arch: ARM: Tegra: removing the akm8975 driver

Undefining the config variable CONFIG_SENSORS_AK8975, since we are
using drivers/misc/inv_mpu/compass/ak8975.c as compass driver.

Bug 965154

Change-Id: Ie6ca5b08cee9dba5375457f39d52ae9ebf97ddf9
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/95636
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: enterprise: Firmware update support for pn544
Mohan T [Tue, 10 Apr 2012 12:41:25 +0000]
arm: tegra: enterprise: Firmware update support for pn544

Enable firmware GPIO for board E1205 with fab A03 or A04.

Bug 959290

Change-Id: Ide17c4e6dcda8c2c9690f581b8714486a3c4e532
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/95389
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: power: Cancel hotplug work upon disable
Antti P Miettinen [Fri, 6 Apr 2012 11:21:26 +0000]
ARM: tegra: power: Cancel hotplug work upon disable

Cancel hotplug work when auto hotplug gets disabled to prevent
e.g. cpu_up() getting called in LP cluster.

Bug 965777

Change-Id: I058fe6a5e0c2fd3203ce9bc951d0973b60e033e0
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/95076
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agotracing: Add tracepoints for cluster switch
Antti P Miettinen [Mon, 2 Apr 2012 11:27:21 +0000]
tracing: Add tracepoints for cluster switch

Simple trace points for measuring cluster switch latencies.

Bug 958262

Change-Id: Ia1e5e13131d5e55aaa0a44e9e8b5196539df54e7
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/93841
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agoarm: tegra: xmm: CP wakeup and system suspend
Seshendra Gadagottu [Thu, 29 Mar 2012 21:04:43 +0000]
arm: tegra: xmm: CP wakeup and system suspend

To handle race condition between CP wakeup and system suspend
following policy enforced:
1. If system suspend happens first, then buffer the CP wake
   request and will abort the suspend at the end of device suspend
   complete.
2. If CP wakeup happens first, then system suspend starts then abort
   the system suspend immediately.

Bug 938553
Bug 948198
Bug 943035

Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/83130
(cherry picked from commit b2bd06368d3f6e16e5a7dd81c76dda0293de301b)

Change-Id: Ic7024aa739472a666f1274ccd7c9722259d54fa5
Reviewed-on: http://git-master/r/93384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agotracing: Add tracepoints for CPU scaling
Antti P Miettinen [Thu, 29 Mar 2012 04:14:40 +0000]
tracing: Add tracepoints for CPU scaling

Simple tracepoints for measuring CPU scaling latencies.

Bug 960307

Change-Id: I6fd4e67e352a2ff134da58866d943457506d080b
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/93080
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agotracing: Add tracepoints for hotplug
Antti P Miettinen [Wed, 28 Mar 2012 17:42:55 +0000]
tracing: Add tracepoints for hotplug

Simple trace points for measuring hotplug up/down times.

Bug 960310

Change-Id: I1927aae6edb74cba7ca3e9522d138407b48325dc
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/92920
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

7 years agousb: host: tegra: regrouping ehci functions
Venu Byravarasu [Thu, 29 Mar 2012 10:08:44 +0000]
usb: host: tegra: regrouping ehci functions

Re-arranged standard and modified ehci functions into
two separate groups, for more readability

Change-Id: I320a50ed44c3f0990692ae38b55dc6a04fe7c378
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/92823
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agousb: cdc_ether: Add new product id for the 5AE profile
Jonathan Roux [Tue, 24 Jan 2012 15:33:16 +0000]
usb: cdc_ether: Add new product id for the 5AE profile

Bug 924863

Change-Id: I10d3036ce19f8c1f37e57998c204f3a72bd42f85
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/89718
Reviewed-by: Automatic_Commit_Validation_User

7 years agomisc: tegra-cryptodev: Enhancement to support user space tests
vjagadish [Fri, 9 Dec 2011 04:15:56 +0000]
misc: tegra-cryptodev: Enhancement to support user space tests

Enchancement to support user space tests such as OFB, CTR, sha1,
sha224,sha256, sha384, sha512.

BUG 903375

Change-Id: I52767978bd3758671ec6fff988223ac046f5579c
Reviewed-on: http://git-master/r/84296
Tested-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agovideo: tegra: fb: Add interface to nvdps.
Kevin Huang [Tue, 10 Apr 2012 01:03:51 +0000]
video: tegra: fb: Add interface to nvdps.

Provide /sys/class/graphics/fb0/device/nvdps to change video mode
on-the-fly without resetting window layout like fb_set_var(). This
allows flicker free changes in refresh rate.

nvdps sysfs file takes an integer, and selects the closest matching mode
with the same or higher refresh rate. Reading the file displays the
current refresh rate.

Bug 560152

Change-Id: Id5c1eafaf338b99fa9742202b38ccbfc238b77d5
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/95473
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoARM: tegra: cardhu: add multiple LCD modes
Jon Mayo [Thu, 22 Mar 2012 00:25:23 +0000]
ARM: tegra: cardhu: add multiple LCD modes

Add 50Hz and 48Hz refresh modes on internal panel.
Choose pll_d as default for internal panel.
Choose pll_d2 as default for HDMI output.
Print a warning when touch panel work around code is being used.

Bug 560152

Change-Id: Ia155e02b4fdc4ea3a749c3f1e9edea94786441ba
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/94890
Reviewed-by: Automatic_Commit_Validation_User

7 years agovideo: tegra: dc: load video mode during vblank
Jon Mayo [Fri, 16 Mar 2012 19:50:59 +0000]
video: tegra: dc: load video mode during vblank

Handle mode set for FBIOPUT_VSCREENINFO at the end of a frame (during
vblank). This elimiates the work around that requires disabling then
enabling display to change modes.
Adds a spinlock to protect irq code from updates to tegra_dc_mode structure.

Bug 560152

Change-Id: I5d2175f01a177a32d685b46e5af4f78efeec0786
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/90688
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: resolve compilation time warnings
Sanjay Singh Rawat [Thu, 29 Mar 2012 06:49:38 +0000]
video: tegra: resolve compilation time warnings

bug 949219

Change-Id: I1ed8d08de4bdba4643b2ae4e8320db6f9c97a18f
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/92310
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra20: pm: Reduce CPU min voltage to 0.8V
Prashant Gaikwad [Tue, 3 Apr 2012 06:11:19 +0000]
arm: tegra20: pm: Reduce CPU min voltage to 0.8V

Bug 955718

Reviewed-on: http://git-master/r/94164
(cherry picked from commit 1be4c3a94dd95a9c0fae2317983b0d7e44e39a1f)

Reviewed-on: http://git-master/r/94407
(cherry picked from commit 00799dbe21f5835b729f2fe9fcf95f30aa0b149f)

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

7 years agoARM: tegra: cardhu: integrate latest mem tables
Ray Poudrier [Fri, 23 Mar 2012 06:12:47 +0000]
ARM: tegra: cardhu: integrate latest mem tables

Bug 918704

Change-Id: I83bdce136df07d744c69a75a38bb5ae1d541055e
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/91935
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: dvfs: optimized bin0 entries
Prashant Gaikwad [Tue, 11 Oct 2011 11:58:17 +0000]
arm: tegra: dvfs: optimized bin0 entries

Updated optimized bin0 entries for AP25 CPU dvfs.

Bug 955718
Bug 643434

Reviewed-on: http://git-master/r/57303
(cherry picked from commit 6e5c759fcdfcdf4d1306fe5c9e33bf2dd5458076)

Reviewed-on: http://git-master/r/94406
(cherry picked from commit 61317b2ed1a259d5c0460aec8bc1d9f4e2275922)

Change-Id: I84cccfde1c0fa292c64a9acd2c96643416f00735
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/90306
Reviewed-by: Automatic_Commit_Validation_User

7 years agopower: max17048: correct i2c error handling
Chandler Zhang [Sat, 31 Mar 2012 09:14:31 +0000]
power: max17048: correct i2c error handling

Correct max17048_read_word() function related i2c error handling

Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/93702
(cherry picked from commit ba8bdc020c6e2ed57255786b3d61b870b0b5a516)

Change-Id: Ice9845bb39288442bd6637eedeaf6de6ad1acbda
Reviewed-on: http://git-master/r/95346
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Tested-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agopower: max17048: addition of new properties
Syed Rafiuddin [Wed, 4 Apr 2012 06:04:02 +0000]
power: max17048: addition of new properties

Addition of health and capacity level properties

Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/93532
(cherry picked from commit 9892e1c30828bdcbf6ae53af72bb1a39cd19993e)

Change-Id: I28e9822772316ba7389a3c9518cf4778606dbfb7
Reviewed-on: http://git-master/r/95345
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Tested-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: whistler: use common platform data struct
Ravindra Lokhande [Wed, 18 Apr 2012 05:08:55 +0000]
arm: tegra: whistler: use common platform data struct

Change-Id: I46e81bf2ad285433e61c3a1bc7f5e1c9aca655fa
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/95102
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

arch/arm/mach-tegra/board-whistler.c

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

7 years agoasoc: wm8753 machine: use common platform data
Ravindra Lokhande [Fri, 6 Apr 2012 14:22:23 +0000]
asoc: wm8753 machine: use common platform data

use common platform data for machine driver

Change-Id: I90e0d2f47aed46da650305d98f6525287adfaf04
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/95101
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agovideo: tegra: dtv: Remove check for dma req list before cancelling
Laxman Dewangan [Fri, 6 Apr 2012 13:17:06 +0000]
video: tegra: dtv: Remove check for dma req list before cancelling

Removing the checking whether dma req queue is empty or not
before canceling/stopping dma.
This function cannot guarantee correct result as there may be the
race between hw and sw status update.
If client wants to cancel dma req, it can directly call tegra_dma_cancel().

As the function tegra_dma_is_empty() does not return correct result,
it will be depreciated from the dma apis.

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

7 years agoconfig: tegra[3]: enable devtmpfs
Mursalin Akon [Wed, 18 Apr 2012 05:07:52 +0000]
config: tegra[3]: enable devtmpfs

Enable devtmpfs to allow init of
Ubuntu 12.04/Debian Sid/Fedora 17 to
continue booting successfully.

Bug 948495

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

Conflicts:

arch/arm/configs/tegra_defconfig

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

7 years agoregulator: max8907: Add driver specific data for regulator
Alok Chauhan [Wed, 18 Apr 2012 05:05:50 +0000]
regulator: max8907: Add driver specific data for regulator

Adding the regulator driver specific information and passing
this information through regulator driver data. This struture
is containing delay operation which is require to voltage to
be settle down after enabling rail.

Bug 939242

Change-Id: I7da6ec487fe5f04857d3fd5f06a383b4a8fbcc7b
Signed-off-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-on: http://git-master/r/94500
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Conflicts:

drivers/regulator/max8907c-regulator.c

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

7 years agoarm: tegra: Add delay support in regulator
Alok Chauhan [Fri, 17 Feb 2012 09:41:01 +0000]
arm: tegra: Add delay support in regulator

bug 939242

Change-Id: I552c664fbac5519cc97593ebec3884f716158887
Signed-off-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-on: http://git-master/r/94499
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agovideo: tegra: host: move resources to devices
Mayuresh Kulkarni [Wed, 18 Apr 2012 05:04:34 +0000]
video: tegra: host: move resources to devices

- as of now the resources needed by all the host1x
modules are part of resource list of host1x device
- now that each module is a nvhost_device of its own,
so it should hold the resources it needs instead of
host1x device holding it for them
- each device that needs its resources gets it in its
_probe() using a helper API in bus_client.c

Bug 871237

Change-Id: Ia7c63fcf40cbc5db76d4d8339294a0e9ce75e352
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/94166
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

drivers/video/tegra/host/isp/isp.c
drivers/video/tegra/host/mpe/mpe.c
drivers/video/tegra/host/vi/vi.c

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

7 years agonvavp: Add ioctl for wake_avp
Mandar Potdar [Mon, 2 Apr 2012 14:06:05 +0000]
nvavp: Add ioctl for wake_avp

Add wake_avp ioctl which provides way for user-mode driver to
simply wake-up the AVP.

bug 914504

Change-Id: I3075ba944d39749559f2c340a4851902821c344f
Signed-off-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-on: http://git-master/r/93877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoarm: tegra: p1852: Use GMI to untristate gpio X5/6
Amlan Kundu [Mon, 9 Apr 2012 10:39:39 +0000]
arm: tegra: p1852: Use GMI to untristate gpio X5/6

Using SPI1/SPI2 as initial pinmux for gpio X5/6 affecting spi
controller. GMI A26/27 can be pinmuxed for SPI1_CS0 and SPI1_SCK balls.
It will not affect GMI behavior because A26/27 presently not used on
p1852.

bug 927551
bug 875873

Reviewed-on: http://git-master/r/90551
(cherry-picked from 8b0123f835a671072b23abbe4fdb9d9aa16463cb)

Change-Id: If39c93daa7d1b73777b56c729b0c9b9149770440
Signed-off-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/92499
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Gerrit_Virtual_Submit

7 years agovideo: tegra: host: include linux/stat.h to use S_IRUGO
Varun Wadekar [Wed, 18 Apr 2012 05:02:19 +0000]
video: tegra: host: include linux/stat.h to use S_IRUGO

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

7 years agoarm: tegra: Change DDC freq to 10KHz
Hao Tang [Wed, 7 Mar 2012 09:21:08 +0000]
arm: tegra: Change DDC freq to 10KHz

Bug 949759

Reduce DDC freq. The original freq is 100KHz, but some edid communication
at this rate on some monitors like acer H243HX may fail

Change-Id: Ib087025a35ff085b4bf618b70100fe6670c3eaec
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/88261
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoRevert "video: tegra: dc: Disable 1080p stereo support"
Andrija Bosnjakovic [Tue, 24 Jan 2012 08:59:56 +0000]
Revert "video: tegra: dc: Disable 1080p stereo support"

This reverts commit 75009bc2b1a0a2d2efbe1d166647e789b8a1b9f1.

In order to work around bug 869099,
this mode has been temporarily disabled.

Since the bug is not so visible, enable again.

Change-Id: Ie71dac4ecf620cd96796e2fde361b45dc7141497
Reviewed-on: http://git-master/r/92157
Reviewed-by: Alok Ahuja <alahuja@nvidia.com>
Reviewed-by: Aleksandar Odorovic <aodorovic@nvidia.com>
Reviewed-by: Dhiren Bhatia <dbhatia@nvidia.com>
Reviewed-by: Andrija Bosnjakovic <abosnjakovic@nvidia.com>
Tested-by: Andrija Bosnjakovic <abosnjakovic@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoasoc: aic326x machine: use common platform data
Ravindra Lokhande [Fri, 6 Apr 2012 13:09:57 +0000]
asoc: aic326x machine: use common platform data

replace platform specific data with common platform data

Change-Id: Ie34b9b9288bf76a004db0bcdf4fd59845e0c9d71
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/95083
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoASoC: max98095 codec: check return value
Ravindra Lokhande [Fri, 6 Apr 2012 12:55:30 +0000]
ASoC: max98095 codec: check return value

check max98095_reset() return value, this function fails if codec
read/write fails.

Change-Id: I4dddd75e0870e4168288396a462133f7287ad72e
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/95078
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoarm: tegra: kai: enable correct gpio for NFC
Rakesh Goyal [Fri, 6 Apr 2012 08:06:49 +0000]
arm: tegra: kai: enable correct gpio for NFC

Bug 960069

Change-Id: Id7559b7b8a74f8ec0b5e127b8986c075fab21d59
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/95037
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: usb_phy: Fix remote wakeup issue during LP0
Rakesh Bodla [Tue, 3 Apr 2012 09:08:25 +0000]
ARM: tegra: usb_phy: Fix remote wakeup issue during LP0

Sleep walk settings for remote wakeup are set properly to detect
remote wakeup events

Bug 963900

Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
(cherry picked from commit fd9ccb33d91e0aaf0619ec065e1ba7ee52edf1bd)
Change-Id: I7c52d45901ce522c51570bdd84513fbbb6c93911
Reviewed-on: http://git-master/r/94892
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agousb: ehci: tegra: Fix tegra utmip issues
Rakesh Bodla [Tue, 3 Apr 2012 06:50:09 +0000]
usb: ehci: tegra: Fix tegra utmip issues

Following tegra USB UTMIP issues are fixed:
1. Clear run bit directly in the command
register instead of updating the shadow variable.
2. Reset EHCI while resuming from LP0 for
tegra 2.
3. Wait for 25ms to ensure port is resumed.

Bug 912880

Reviewed-on: http://git-master/r/92565
(cherry picked from commit 928ad32858af191fb9d90d736b910499121e10df)
Change-Id: I676f7f23fd8833a179e1670e6aed28a01baaf15b
Reviewed-on: http://git-master/r/94829
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>