7 years agoRevert "ARM: pm: preallocate a page table for suspend/resume"
Sang-Hun Lee [Mon, 16 Apr 2012 17:55:16 +0000]
Revert "ARM: pm: preallocate a page table for suspend/resume"

This reverts commit 55f0f45a45263ba26bd473f50f867d29dd836e46.

Bug 967887

Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Change-Id: I036e0bd4e391a17dec8fa0fe86da7eb6b98d503a
Reviewed-on: http://git-master/r/96795
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: pm: only use preallocated page table during resume"
Sang-Hun Lee [Mon, 16 Apr 2012 17:55:04 +0000]
Revert "ARM: pm: only use preallocated page table during resume"

This reverts commit 46d9f14943770c24603ef7cdfd8eb2dbcd3c1248.

Bug 967887

Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Change-Id: Iee732d8137043240902201d7783d2c3fede98fbe
Reviewed-on: http://git-master/r/96794
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: pm: get rid of cpu_resume_turn_mmu_on"
Sang-Hun Lee [Mon, 16 Apr 2012 17:54:50 +0000]
Revert "ARM: pm: get rid of cpu_resume_turn_mmu_on"

This reverts commit 5682179d980e1a70bcf37fd97a14e27a2ddde822.

Bug 967887

Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Change-Id: Ieb44d89a8361d1fa59b3d6375234f06f57c1c717
Reviewed-on: http://git-master/r/96793
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: pm: no need to save/restore context ID register"
Sang-Hun Lee [Mon, 16 Apr 2012 17:54:34 +0000]
Revert "ARM: pm: no need to save/restore context ID register"

This reverts commit 16e0bb8c46656b1d902d422e0065c746af161a1c.

Bug 967887

Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Change-Id: Ifa115c4030c48cbd0b629cf02899ca8c6f25d314
Reviewed-on: http://git-master/r/96792
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: pm: convert some assembly to C"
Sang-Hun Lee [Mon, 16 Apr 2012 17:54:09 +0000]
Revert "ARM: pm: convert some assembly to C"

This reverts commit 11a2e1bb69affe9e8273bc6d1452cd9282ddd27a.

Bug 967887

Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Change-Id: Ibace368a190a14d24e1cc963e8e2a7ed6fdbba6a
Reviewed-on: http://git-master/r/96791
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: pm: add L2 cache cleaning for suspend"
Sang-Hun Lee [Mon, 16 Apr 2012 17:53:55 +0000]
Revert "ARM: pm: add L2 cache cleaning for suspend"

This reverts commit a27cd62bb4934abe2af420ba7ca5115fbfb653be.

Bug 967887

Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Change-Id: I826224a4aea4bac78f9d2d1ce6797e8585fc148b
Reviewed-on: http://git-master/r/96790
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRestore "ARM: tegra: power: Workaround PMD corruption by cpu_resume_mmu"
Sang-Hun Lee [Mon, 16 Apr 2012 17:53:37 +0000]
Restore "ARM: tegra: power: Workaround PMD corruption by cpu_resume_mmu"

This restores commit 607d5ec8bb46f95473533f611da1ffc97907d16e.

The common ARM CPU state suspend/resume code does not work with
and external L2 cache controller (like a PL310) enabled. This
change fixes corruption of the current PMD by the MMU resume code.

cpu_resume_mmu modifies the currently active page tables to add
a flat (VA==PA) section mapping of cpu_resume_turn_mmu_on to
handle MMU off-to-on transition. It turns off the L1 data cache
but it knows nothing of the L2 cache. Since page table walks are
L2 cacheable, other CPUs in the system can pick up the corrupted
PMD which will eventually result in a kernel panic.

The workaround for this is to modify push_ctx_regs to save the
current TTB0 and CONTEXID registers in the CPU register context
and switch to the private tegra_pgd before saving the rest of the
CPU context. The tegra_pgd already has a flat mapping for the
code in question, so it can't be damaged by the actions of
cpu_resume_mmu. Likewise, pop_ctx_regs is modified to restore
the actual TTB0 and CONTEXTID registers when restoring the CPU
registers.

Bug 967887

Change-Id: Iaf98c46359860531874354e8cddabe299ea90d57
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/96789
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: tegra: remove usage of USE_TEGRA_CPU_SUSPEND"
Sang-Hun Lee [Mon, 16 Apr 2012 17:53:22 +0000]
Revert "ARM: tegra: remove usage of USE_TEGRA_CPU_SUSPEND"

This reverts commit e6d0e0ceec7cd1a7b8085eb31d2e70bc4d15684f.

Bug 967887

Change-Id: I60927a93ebdf6ba4da14311f8ffcc1edf4f56391
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/96788
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: tegra: rethink the cpu suspend-resume code path"
Sang-Hun Lee [Mon, 16 Apr 2012 17:53:05 +0000]
Revert "ARM: tegra: rethink the cpu suspend-resume code path"

This reverts commit f31ca2d9e0580b58dc51fde31fc8ace190dd253b.

Bug 967887

Change-Id: I3fe975f7a6939cace5e208947bcb82e09008c0ac
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/96787
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: tegra20: pm: flush L1 data before exit coherency"
Sang-Hun Lee [Mon, 16 Apr 2012 17:52:32 +0000]
Revert "ARM: tegra20: pm: flush L1 data before exit coherency"

This reverts commit 209209a303742d6312f66896b4351dd97e48e24c.

Bug 967887

Change-Id: I2464db28b5a4970d6e60ef79c89c2107c64cb6d3
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/96786
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoRevert "ARM: tegra30: pm: flush L1 data before exit coherency on secondary CPU"
Sang-Hun Lee [Mon, 16 Apr 2012 17:52:09 +0000]
Revert "ARM: tegra30: pm: flush L1 data before exit coherency on secondary CPU"

This reverts commit 743c03fbeb5908faf4aef6bee7702a2ad4caac22.

Bug 967887

Change-Id: Ie4477e3b5fa9773c9e60b5cace47b3ff240a4bf1
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/96785
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agodrivers: resolve compilation time warnings
Sanjay Singh Rawat [Wed, 28 Mar 2012 12:14:56 +0000]
drivers: resolve compilation time warnings

bug 949219

Change-Id: I5942ba86bd1cbe1f1bd06a7c9f51a10d83e6cabb
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/92819
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: remove T30 FPGA support
Juha Tukkinen [Wed, 11 Apr 2012 13:47:29 +0000]
ARM: tegra: remove T30 FPGA support

Remove T30 FPGA support as it will conflict with downstreaming mainline
way of using chipid and revision.

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

7 years agoASoC: resolve compilation time warnings
Sanjay Singh Rawat [Mon, 16 Apr 2012 09:13:57 +0000]
ASoC: resolve compilation time warnings

bug 949219

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

7 years agoarm: tegra: resolve compilation time warnings
Sanjay Singh Rawat [Mon, 16 Apr 2012 13:03:26 +0000]
arm: tegra: resolve compilation time warnings

Bug 949219

Change-Id: I875f8688a272c415ebf345b8f30e4afdf7551b29
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/91523
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: cardhu: pm299: enable 3v3 rail during boot
Laxman Dewangan [Mon, 16 Apr 2012 08:38:46 +0000]
ARM: tegra: cardhu: pm299: enable 3v3 rail during boot

Enabling the 3v3 voltage rail during boot.
bug 822562

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

7 years agoi2c: tegra: support for I2C_M_NOSTART protocol mangling
Laxman Dewangan [Tue, 27 Mar 2012 13:27:11 +0000]
i2c: tegra: support for I2C_M_NOSTART protocol mangling

Adding support for protocol mangling I2C_M_NOSTART.

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

7 years agoARM: tegra: usb: kai: pmu int not required
Krishna Yarlagadda [Fri, 13 Apr 2012 04:18:54 +0000]
ARM: tegra: usb: kai: pmu int not required

vbus int can be generated from pmu and directly from port
when host mode is reqruied, we use vbus int and pmu int
is not required as usb clock is not disabled.

Bug 961166

Change-Id: I96fde7daf052a7c5b8e94414e309b0be6354ec80
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/96338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: kai: addition of charger regulator
Chandler Zhang [Fri, 13 Apr 2012 07:57:51 +0000]
arm: tegra: kai: addition of charger regulator

Use SMB349 regulator instead of irq to controll USB1 VBUS

Bug 961166
Bug 966874

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

7 years agopower: smb349: addition of regulator interface
Syed Rafiuddin [Fri, 13 Apr 2012 10:09:05 +0000]
power: smb349: addition of regulator interface

Addition of reglator interface to detect the usb cable
plug/unplug detection.

Bug 961166
Bug 966874

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

7 years agomfd: max8907c: Disable Hard Reset with Power key
Ashwini Ghuge [Tue, 17 Apr 2012 11:58:06 +0000]
mfd: max8907c: Disable Hard Reset with Power key

Disable Hard Reset on long press of power key.

Bug 893517

Change-Id: Ic328a04e917aa1bed6780e6f9a2f1c575f84fb68
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/96687
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agousb: gadget: fsl_udc: support udc driver without otg
Rakesh Bodla [Wed, 18 Apr 2012 04:16:16 +0000]
usb: gadget: fsl_udc: support udc driver without otg

Currently udc driver is dependent on otg driver.
Added irq work to make gadget driver work with
disabling otg driver.

Bug 962366

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

7 years agoarm: tegra: enterprise: disable dsi_csi_rail in LP0
Vinayak Pane [Sat, 14 Apr 2012 00:13:15 +0000]
arm: tegra: enterprise: disable dsi_csi_rail in LP0

AVDD_DSI_CSI is shared by modem and dsi. If DSI turns
off this rail then HSIC fails after wakeup from modem.
This patch provides a way to turn on this rail from
modem as well as from DSI. Create two virtual power rails
from avdd_csi_dsi to control it from both the drivers separately.
This is enterprise specific change as per the power rail layout.

Bug 920881

(cherry picked from commit ab52b51c59f776ae770d48a28a2744e2db2e5d2f)
Reviewed-on: http://git-master/r/85656

Change-Id: I2e9c04a8f4e8d6fd20584b4e75657c1cb6d5c8bd
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/89134
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: dma: Add API to get channel id
Chaitanya Bandi [Mon, 16 Apr 2012 10:38:35 +0000]
ARM: tegra: dma: Add API to get channel id

Added tegra_dma_get_channel_id API to determine the id
of a given channel.

Bug 969125

Change-Id: Ibad67d65c87dc267a4e6942557c02acbd0f6e938
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/96714
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>

7 years agoARM: tegra: cardhu:enable VDD2 when required
Laxman Dewangan [Fri, 13 Apr 2012 11:17:44 +0000]
ARM: tegra: cardhu:enable VDD2 when required

The VDD2 supply the power to three rails: 1.5V, LDO1 and LDO2.
LDO1 is used for PEX and LDO2 is used for SATA.
By default making the VDD2 off and enabling when
consumer requires.

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

7 years agotegra: fix typo in pre-power wifi code
Mursalin Akon [Mon, 16 Apr 2012 19:17:35 +0000]
tegra: fix typo in pre-power wifi code

fix typo in pre-power wifi code

Bug 956238

Change-Id: Iee794da508d39131e3166bba71b1c46c60d19a3b
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/96821
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@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 [Mon, 16 Apr 2012 06:38:10 +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>

7 years agoASoC: WM8903: fix the resume sequence
Joseph Lo [Mon, 16 Apr 2012 06:02:57 +0000]
ASoC: WM8903: fix the resume sequence

The bias control must be done after the default register value
been restored.

Bug 964400

Change-Id: Iefbd96506573d5ea0e1b3123bb34c38e34e75068
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Reviewed-on: http://git-master/r/96658
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@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 [Thu, 15 Mar 2012 06:00:52 +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>

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, 11 Apr 2012 05:37:38 +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>

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 [Sat, 31 Mar 2012 03:03:07 +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>

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-gart: fix spin_unlock in map failure path
Lucas Stach [Mon, 12 Mar 2012 19:15:01 +0000]
iommu/tegra-gart: fix spin_unlock in map failure path

This must have been messed up while merging, the intention was
clearly to unlock there.

Change-Id: Icf525a51d4899dc718710ec56a4d3fd2150501cd
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/96139
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@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 agoI2C: Add helper macro for i2c_driver boilerplate
Lars-Peter Clausen [Wed, 16 Nov 2011 09:13:36 +0000]
I2C: Add helper macro for i2c_driver boilerplate

This patch introduces the module_i2c_driver macro which is a convenience macro
for I2C driver modules similar to module_platform_driver. It is intended to be
used by drivers which init/exit section does nothing but register/unregister
the I2C driver. By using this macro it is possible to eliminate a few lines of
boilerplate code per I2C driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from mainline commit
7c92784a546d2945b6d6973a30f7134be78eb7a4)

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

7 years agodrivercore: Generalize module_platform_driver
Lars-Peter Clausen [Wed, 16 Nov 2011 09:13:35 +0000]
drivercore: Generalize module_platform_driver

This patch generalizes the module_platform_driver macro and introduces a new
module_driver macro. The module_driver macro takes a driver name, a register
and a unregister function for this driver type. Using these it construct the
module init and exit sections which register and unregister the driver. Since
such init/exit sections are commonly found in drivers this macro can be used
to eliminate a lot of boilerplate code.

The macro is not intended to be used by driver modules directly, instead it
should be used to generate bus specific macros for registering drivers like
the module_platform_driver macro.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Cherry-picked from mainline commit
907d0ed1c84114d4e8dafd66af982515d3739c90

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

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 [Fri, 16 Mar 2012 18:43:46 +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>

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, 4 Apr 2012 21:48:29 +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>

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: 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 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 [Fri, 23 Mar 2012 22:02:04 +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

7 years agoregmap: Fix future missing prototype of devres_alloc() and friends
Stephen Warren [Fri, 9 Mar 2012 20:17:28 +0000]
regmap: Fix future missing prototype of devres_alloc() and friends

[Fix for breakage which will be introduced during the merge window via
header reworks in another tree, the regmap tree does include device.h
but Paul's tree breaks that.  Reworded subject to reflect -- broonie]

regmap.s uses devres_alloc() and others that are prototyped in device.h.
Include that to solve the following:

drivers/base/regmap/regmap.c: In function 'devm_regmap_init':
drivers/base/regmap/regmap.c:331:2: error: implicit declaration of function 'devres_alloc' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c:338:3: error: implicit declaration of function 'devres_add' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c:340:3: error: implicit declaration of function 'devres_free' [-Werror=implicit-function-declaration]
drivers/base/regmap/regmap.c: In function '_regmap_raw_write':
drivers/base/regmap/regmap.c:421:5: error: implicit declaration of function 'dev_err' [-Werror=implicit-function-declaration]

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

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

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 agoregcache: Make sure we sync register 0 in an rbtree cache
Mark Brown [Mon, 5 Mar 2012 23:31:39 +0000]
regcache: Make sure we sync register 0 in an rbtree cache

Most of the current users have register 0 as a volatile register or don't
have a register 0 so it's not been apparent that it's not getting synced.

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

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

7 years agoregmap: delete unused module.h from drivers/base/regmap files
Paul Gortmaker [Wed, 29 Feb 2012 00:28:02 +0000]
regmap: delete unused module.h from drivers/base/regmap files

Remove unused module.h and/or replace with export.h
as required.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 19694b5ea1d3a723dafe9544b5ee9a935414dc28)

Change-Id: Icf76b35f6d0d1f4720ca6d51fa9b2ebf123604b1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96492
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: Allow drivers to sync only part of the register cache
Mark Brown [Thu, 23 Feb 2012 20:53:37 +0000]
regmap: Allow drivers to sync only part of the register cache

Provide a regcache_sync_region() operation which allows drivers to
write only part of the cache back to the hardware. This is intended
for use in cases like power domains or DSP memories where part of the
device register map may be reset without fully resetting the device.

Fully supporting these devices is likely to require additional work to
make specific regions of the register map cache only while they are in
reset, but this is enough for most devices.

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

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

7 years agoregmap: Supply ranges to the sync operations
Mark Brown [Thu, 23 Feb 2012 19:31:04 +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>

7 years agoregmap: Add tracepoints for cache only and cache bypass
Mark Brown [Thu, 23 Feb 2012 22:02:57 +0000]
regmap: Add tracepoints for cache only and cache bypass

Useful for figuring out where the hardware interaction went or came from.

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

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

7 years agoregmap: Mark the cache as clean after a successful sync
Mark Brown [Thu, 23 Feb 2012 22:05:59 +0000]
regmap: Mark the cache as clean after a successful sync

Previously the cache would never be marked clean, meaning syncs would
never be suppressed which isn't the end of the world but could be
inefficient.

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

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

7 years agoregmap: Remove default cache sync implementation
Mark Brown [Thu, 23 Feb 2012 20:48:40 +0000]
regmap: Remove default cache sync implementation

It's not used as all cache types have sync operations so it's just dead
code which never gets tested.

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

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

7 years agoregmap: Skip hardware defaults for LZO caches
Mark Brown [Thu, 23 Feb 2012 20:11:58 +0000]
regmap: Skip hardware defaults for LZO caches

Saves some I/O when resyncing; we assume that syncs start from the device
reset state.

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

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

7 years agoregmap: Expose the driver name in debugfs
Dimitris Papastamos [Wed, 22 Feb 2012 14:20:09 +0000]
regmap: Expose the driver name in debugfs

Add a file called 'name' containing the name of the driver.

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

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

7 years agoregmap: Add support for writing to regmap registers via debugfs
Dimitris Papastamos [Wed, 22 Feb 2012 12:43:50 +0000]
regmap: Add support for writing to regmap registers via debugfs

To enable writing to the regmap debugfs registers file users will
need to modify the source directly and #define REGMAP_ALLOW_WRITE_DEBUGFS.
The reason for this is that it is dangerous to expose this
functionality in general where clients could potentially be PMICs.

[A couple of minor style updates -- broonie]

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 09c6ecd394105c4864a0e409e181c9b1578c2a63)

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

7 years agoregmap: Support raw reads from cached registers
Mark Brown [Tue, 21 Feb 2012 19:12:47 +0000]
regmap: Support raw reads from cached registers

Fall back to a register by register read to do so; most likely we'll be
cache only so the overhead will be low.

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

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

7 years agoregmap: Allow users to query the size of register values
Mark Brown [Fri, 17 Feb 2012 22:20:14 +0000]
regmap: Allow users to query the size of register values

Generic infrastructure based on top of regmap may want to operate on
blocks of data and therefore find it useful to find the size of the
register values. Provide an accessor operation for this.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cherry-pick from mainline a6539c3

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

7 years agoregmap: Implement support for 32 bit registers and values
Mark Brown [Fri, 17 Feb 2012 23:58:25 +0000]
regmap: Implement support for 32 bit registers and values

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

Change-Id: I6f6fec44b439b4916eba7f32ece1fa011e3ac021
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96480
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, 11 Apr 2012 12:00:33 +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>

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, 11 Apr 2012 10:37:00 +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>

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 [Tue, 10 Apr 2012 11:06:11 +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>

7 years agoARM: tegra: common: Remove T30 A01 SMMU workaround
Juha Tukkinen [Tue, 10 Apr 2012 10:53:21 +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>

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: clock: Update common clock table
Alex Frid [Tue, 10 Apr 2012 00:13:14 +0000]
ARM: tegra: clock: Update common clock table

- Moved table entries for always running core clocks on the top of
the table (this way we guarantee that changing parent of such clock
down the road would automatically enable new parent).

- Removed unnecessary pll_a and pll_a_out0 entries (effectively they
are "NOP") - actual audio configuration is done in per-board tables.

- Removed unnecessary pll_c and pll_c_out1 entries for emulation
platforms

Change-Id: I8327d6313804419405dd93af08f369db02fcbf25
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/95465
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@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>