5 years agonet: usb: rtl8150: limit intr status print
wtsai [Fri, 8 Nov 2013 06:51:12 +0000]
net: usb: rtl8150: limit intr status print

Add ratelimit for "intr status" print to avoid hub thread has no
chance to report device unplugged

Bug 1375919

Change-Id: Ie47e9a1328a8ed56ce244d0603b053c113aee838
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/328115
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoarm: tegra: ardbeg: Parse panel gpio from DT
Vineel Kumar Reddy Kovvuri [Fri, 22 Nov 2013 07:29:15 +0000]
arm: tegra: ardbeg: Parse panel gpio from DT

Parse DT gpio entries for default ardbeg panel

Bug 1385965

Change-Id: Ib79e630532068da6f1a1adfafb7df2663563024e
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/337580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agomedia: video: tegra: fix DW9718 focuser power off
Hunk Lin [Thu, 28 Nov 2013 09:43:06 +0000]
media: video: tegra: fix DW9718 focuser power off

With the judgement DW9718 couldn't switch to low power or off status from on.
NVC_PWR_ON > NVC_PWR_STDBY_OFF > NVC_PWR_OFF
So remove the judgement.

Bug 1416155

Change-Id: I7ff026deb961e4809cb6cb7acda4a68cf4f81df6
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/336596
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agohid: Driver for Nvidia Shield joystick
Jun Yan [Mon, 25 Nov 2013 21:59:13 +0000]
hid: Driver for Nvidia Shield joystick

In order to customize the flat and fuzz of the
joystick, create an separate hid driver for
Shield joystick. It does the same hid mapping
with hid-input.c but only changes the flat and
fuzz configurations.

Bug 1352488

Change-Id: Ide6d37eeeffac9a7150fb257d30f348599794c4c
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/335198
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agommc: host: sdhci: delayed clock gate update
Bitan Biswas [Tue, 19 Nov 2013 20:43:41 +0000]
mmc: host: sdhci: delayed clock gate update

Changes are:
 - cancel delayed clock gate work before suspend
 - sdhci disable does not schedule delayed clock
   gate work if clock is already disabled

Change-Id: I55160b258d5a28b9e454420768a50ed70a127e9a
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/333046
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: tegra: loki: Update bq27441 pdata
Chaitanya Bandi [Wed, 27 Nov 2013 08:43:57 +0000]
ARM: tegra: loki: Update bq27441 pdata

Updated bq27441 pdata with design energy, taper rate
terminate voltage, voltage at charge termination.

Bug 1344962

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

5 years agopower: bq27441: Add support to update battery prop
Chaitanya Bandi [Thu, 21 Nov 2013 10:06:05 +0000]
power: bq27441: Add support to update battery prop

Added support to update design energy, taper rate,
voltage at charge termination, terminate voltage
properties in Bq27441. Also fixed minor compilation
warnings.

Bug 1344962

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

5 years agoARM: tegra: move pinmux of ardbeg to DTS
Laxman Dewangan [Tue, 3 Dec 2013 12:02:56 +0000]
ARM: tegra: move pinmux of ardbeg to DTS

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

5 years agovideo: tegra: host: fix Coverity issues
Deepak Nibade [Tue, 3 Dec 2013 12:26:18 +0000]
video: tegra: host: fix Coverity issues

- fix unchecked return value from sscanf
Coverity id : 25029
- fix explicit NULL dereference of pdata
Coverity id : 25086

Bug 1416640

Change-Id: I56749f9e15d70b9bffaa85435a6d39a301413cab
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/337790
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: boards: fix tegra_fiq_debugger.h include location
Varun Wadekar [Wed, 4 Dec 2013 06:31:49 +0000]
arm: tegra: boards: fix tegra_fiq_debugger.h include location

Bug 1418428

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

5 years agoplatform: tegra: move tegra_fiq_debugger from mach-tegra
Varun Wadekar [Tue, 3 Dec 2013 12:17:43 +0000]
platform: tegra: move tegra_fiq_debugger from mach-tegra

Bug 1418248

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

5 years agolinux: irqchip: tegra: fix header inclusion guard name
Varun Wadekar [Tue, 3 Dec 2013 12:15:33 +0000]
linux: irqchip: tegra: fix header inclusion guard name

Use __LINUX_IRQCHIP_TEGRA_H instead.

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

5 years agousb: misc: shieldled: Add suspend/resume callback
Jun Yan [Tue, 3 Dec 2013 19:35:52 +0000]
usb: misc: shieldled: Add suspend/resume callback

Add callback to handle system suspend/resume.For now
nothing special need to be done, but without these callbacks
usb driver will call disconnect/probe during system suspend/resume,
which is not appropriate.

Bug 1352485

Change-Id: I92193f724415bae350182d26893f783b9439da28
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/337883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: dvfs: Support non-sync DFLL monitor
Alex Frid [Tue, 3 Dec 2013 03:31:08 +0000]
ARM: tegra: dvfs: Support non-sync DFLL monitor

Added platform flag to indicate DFLL monitor h/w that do not allow
synchronization because DATA_NEW status bit can not be used. For any
monitor read just skipped synchronization, and rely only on already
implemented check for consistency of consecutive reads. In addition,
replaced wait for data in calibration procedure with explicit delay
to make sure data has been monitored at least one full sample period.

Bug 1401470

Change-Id: Ia3b21ff3db8c46f1fc3167634e337888201eb4e2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/337555
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Work-around DFLL monitor fluctuations
Alex Frid [Thu, 14 Nov 2013 04:13:06 +0000]
ARM: tegra: dvfs: Work-around DFLL monitor fluctuations

Reading DFLL frequency and voltage monitor at the same time data is
updated by h/w may return intermediate values. Hence, any usage of
monitored data (DFLL minimum rate calibration, reading of last voltage
output in DFLL bypass mode, debugfs interfaces) must be synchronized
with monitor DATA_NEW status. Still monitor outliers are possible, and
their effect should be mitigated as well.

To address monitor output fluctuations this commit:
- added synchronization with DATA_NEW for all monitor read cases
(so far, only calibration procedure was synchronized)
- added a simple check-filter for consistency of consecutive reads
- limited calibration step upward to half of reference frequency
(partially reverted commit 39256aec5020e07263f4fc1fe673ed88dae026e9
that introduced jump up to the measured rate in a single calibration
sample).

Bug 1401470

Change-Id: I8ef89adc3ba5de36d38bdffaa7b39503def8d8b5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/337527
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agocpuquiet: move back cpuquiet_lock
Jubeom Kim [Fri, 29 Nov 2013 07:37:28 +0000]
cpuquiet: move back cpuquiet_lock

Moved cpuquiet_lock to the back of cpuquiet_switch_governor().
cpuquiet_switch_governor() has to be protected by cpuquiet_lock.
In the runnable cpuquiet_governor case, it can occur a kernel panic or BUG_ON
because schedule_work() and INIT_WORK() can be performed at the same time.

Bug 1410816

Change-Id: I6d3d69bd8896e5425a762cbc4a58343a319edf29
Signed-off-by: Jubeom Kim <jubeomk@nvidia.com>
(cherry picked from commit 8502d0b7c057f96b7cd0495b49e37fc968d4bf8a)
Reviewed-on: http://git-master/r/337335
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agovideo: tegra: nvmap: fix race condition in destroy_client
Krishna Reddy [Wed, 27 Nov 2013 00:36:01 +0000]
video: tegra: nvmap: fix race condition in destroy_client

Client should be removed from list first before releasing refs
to avoid race between client refs traversal and destroy client.

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

5 years agoARM: tegra: tn8: set DAPx_DOUT pin as output-only
Roger Hsieh [Tue, 3 Dec 2013 03:36:53 +0000]
ARM: tegra: tn8: set DAPx_DOUT pin as output-only

Disable DAPx_OUTPUT input path since it's an output pin.

Bug 1412866

Change-Id: I5da594f678cd7d1d173b23ac2cd6062caa413c83
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/337655
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: dts: Add tn8-a03-01 battery dts
Shardar Shariff Md [Mon, 25 Nov 2013 12:56:51 +0000]
arm: tegra: dts: Add tn8-a03-01 battery dts

Added new tegra124-tn8-a03-01-battery.dts
battery support DTS file for TN8 with
E1769 PMU.

Bug 1399412

Change-Id: Id3cf318fa9ad0573fbfaf0e1e1f8cd9d2a892b40
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/335095
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agousb: gadget: tegra: fix Coverity issue
Deepak Nibade [Tue, 3 Dec 2013 14:04:27 +0000]
usb: gadget: tegra: fix Coverity issue

fix Coverity issue of dereference after NULL check
Coverity id : 25261

Bug 1416640

Change-Id: I071dd86d87118c01b295efd687950017c461456f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/337817
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Sumit Singh <sumsingh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoarm: tegra: t124: edp: Update AP+DRAM table
Seema Khowala [Wed, 27 Nov 2013 00:42:51 +0000]
arm: tegra: t124: edp: Update AP+DRAM table

Bug 1326863

Change-Id: Ifbffbd0cfeb41cb898fcd9c21734bd5ff03e8cfc
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/335933
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoarm: tegra: dt: Enable ardbeg default panel node
Animesh Kishore [Fri, 29 Nov 2013 08:22:49 +0000]
arm: tegra: dt: Enable ardbeg default panel node

Set status to okay. Fix property names.

Bug 1172236

Change-Id: If98a8577b4c97b738ec54f4f979e5e3d309fdd2c
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/336877
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoarm: tegra: ardbeg: Dynamic panel DT node
Animesh Kishore [Fri, 29 Nov 2013 08:15:25 +0000]
arm: tegra: ardbeg: Dynamic panel DT node

- Select panel DT node at runtime
- Populate panel call backs dynamically

Bug 1172236

Change-Id: Id1145beb97075197c1d25662ee25f24b42b33c55
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/336876
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: dc: Get panel DT node dynamically
Animesh Kishore [Fri, 29 Nov 2013 08:12:45 +0000]
video: tegra: dc: Get panel DT node dynamically

Bug 1172236

Change-Id: I5535b4b054024ffc56af774aac1f4171cdd5acab
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/336875
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: loki: enhance loki_wakeup_key
Louis Li [Tue, 3 Dec 2013 07:40:15 +0000]
ARM: tegra: loki: enhance loki_wakeup_key

Whether the wakeup is caused by power key or not should refer to the
GPIO_PQ0 bit not PWR_INT bit in the wake status register.

Bug 1416721

Change-Id: Iaa53a9c100ad31568fd199a8a441085e67d5f1af
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/337658
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoasoc: alc5639: Fix headset detection issue
Manoj Gangwal [Wed, 27 Nov 2013 12:57:37 +0000]
asoc: alc5639: Fix headset detection issue

Bug 1413832

Change-Id: I483bdefe486d838cd2dfb60529bd6d6258ba478b
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/336200
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agonet: ipv6: fix wrong ping_v6_sendmsg return value
Lorenzo Colitti [Wed, 3 Jul 2013 15:12:40 +0000]
net: ipv6: fix wrong ping_v6_sendmsg return value

ping_v6_sendmsg currently returns 0 on success. It should return
the number of bytes written instead.

Bug: 9469865
Bug 1412141
Change-Id: I14aad6018f0c3fd92dad315bc3ade04c0b3982e0
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 5f0fd6105f491b8b435863e98f7e96d617e3da84)
Reviewed-on: http://git-master/r/336272
GVS: Gerrit_Virtual_Submit
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/337767

5 years agonet: ipv6: add missing lock in ping_v6_sendmsg
Lorenzo Colitti [Wed, 3 Jul 2013 15:52:49 +0000]
net: ipv6: add missing lock in ping_v6_sendmsg

Bug: 9469865
Bug 1412141
Change-Id: I5e9db559d22e35d27fa1df948b70c70ed8b42115
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 3a018d2e8fc2910e5fb2077cde81cad659e2c7f9)
Reviewed-on: http://git-master/r/336271
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-on: http://git-master/r/337766
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoping: always initialize ->sin6_scope_id and ->sin6_flowinfo
Cong Wang [Sun, 2 Jun 2013 22:43:52 +0000]
ping: always initialize ->sin6_scope_id and ->sin6_flowinfo

[net-next commit c26d6b46da3ee86fa8a864347331e5513ca84c2b]

If we don't need scope id, we should initialize it to zero.
Same for ->sin6_flowinfo.

Bug 1412141
Change-Id: I74764edf3d0567f5ae094b2e83484cdfe05f6098
Cc: Lorenzo Colitti <lorenzo@google.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 14e41a18688ec8d52ea3163f7898455b52365854)
Reviewed-on: http://git-master/r/336270
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-on: http://git-master/r/337765
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonet: ipv6: Add IPv6 support to the ping socket.
Lorenzo Colitti [Wed, 16 Jan 2013 22:09:49 +0000]
net: ipv6: Add IPv6 support to the ping socket.

[backport of net-next 6d0bfe22611602f36617bc7aa2ffa1bbb2f54c67]

This adds the ability to send ICMPv6 echo requests without a
raw socket. The equivalent ability for ICMPv4 was added in
2011.

Instead of having separate code paths for IPv4 and IPv6, make
most of the code in net/ipv4/ping.c dual-stack and only add a
few IPv6-specific bits (like the protocol definition) to a new
net/ipv6/ping.c. Hopefully this will reduce divergence and/or
duplication of bugs in the future.

Caveats:

- Setting options via ancillary data (e.g., using IPV6_PKTINFO
  to specify the outgoing interface) is not yet supported.
- There are no separate security settings for IPv4 and IPv6;
  everything is controlled by /proc/net/ipv4/ping_group_range.
- The proc interface does not yet display IPv6 ping sockets
  properly.

Tested with a patched copy of ping6 and using raw socket calls.
Compiles and works with all of CONFIG_IPV6={n,m,y}.

Bug 1412141

Change-Id: I0081b4654dd54b12c8f233e00e18943582aa2142
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[lorenzo@google.com: backported to 3.4]
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
(cherry picked from commit 1f0675844e3b63a765e5bd32bc5af051ccd951c0)
Reviewed-on: http://git-master/r/336269
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

Conflicts:
include/net/ipv6.h
net/ipv4/af_inet.c
net/ipv4/icmp.c
net/ipv4/ping.c
net/ipv6/Makefile
net/ipv6/af_inet6.c
net/ipv6/icmp.c
Change-Id: I6300756942bcf23f4745400c53fdb33301e9815f
Reviewed-on: http://git-master/r/337764
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonet: wireless: bcmdhd: Fix card detection race conditions
Mohan T [Tue, 3 Dec 2013 12:04:43 +0000]
net: wireless: bcmdhd: Fix card detection race conditions

On non built-in platform device cases mmc_rescan will
initiated by mmc stack and android wifi device. So stop
the card detection on mmc device probe, Since card
detection is completed. So that we can avoid mmc_rescan
initiation after power save done in sdio client driver probe.

Bug 1405624

Change-Id: Icc71fa79cee2bb1eba124192afcf342aee285e62
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/336703
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agommc: tegra: Stop rescan task initiation on detect stop notify
Mohan T [Mon, 2 Dec 2013 05:50:31 +0000]
mmc: tegra: Stop rescan task initiation on detect stop notify

It seems we are starting mmc_rescan task for card removal case
status notify call. So check the card_present input value
and start the mmc_rescan task for card present case and
stop mmc_rescan task for card not present case.

Bug 1405624

Change-Id: I518b4e165457e5166bf38686039f4a9aeccf745c
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/336696
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agostaging: iio: light: jsa1127: fix workq scheduling
Sri Krishna chowdary [Tue, 3 Dec 2013 08:08:52 +0000]
staging: iio: light: jsa1127: fix workq scheduling

There are 2 issues here
1. After entering os idle display off, execution of a pengin work
leads to i2c errors
 - fix this by waiting gor it to complete when disabling
 - This assumes that android sensoservice thread de activates the sensor,
which is true.
2. While exiting os idle display off, sensor's power rail is
just turned on but sensor itself is not yet ready for i2c
communication which causes i2c errors
 - fix this by scheduling the delayed work after JSA1127_POWER_ON_DELAY.
 - JSA1127_POWER_ON_DELAY is found by trail and error method.

Bug 1410461

Change-Id: I3ea65270dba2f3521574b0e0b2d451ea8ba882d5
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/337674
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agostaging: iio: light: jsa1127: report valid events
Sri Krishna chowdary [Tue, 3 Dec 2013 05:09:51 +0000]
staging: iio: light: jsa1127: report valid events

When configuring the sensor fails, the value read is 0xFFFF.
However, as the valid bit is 1, we mark it a valid event and
report the value to user. Avoid this by adding additional checks.

Bug 1415897

Change-Id: I9483e10c119c86bd63a7939956893b41692d93bb
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/337577
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jun Yan <juyan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: loki: update check for fab based
Ray Poudrier [Tue, 3 Dec 2013 00:58:05 +0000]
ARM: tegra: loki: update check for fab based

With correcting the fab/sku reading in BL,
we need to update the checks here to ensure
emc DVFS is still enabled on the correct boards.

Bug 1412411
Bug 1326949

Change-Id: I934d8324d7a0164f6adc6f8feaffc42f81f8a602
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/337479
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: use ARM's DEN0028 v0.9 and PSCI specs to define SMCs
Varun Wadekar [Mon, 11 Nov 2013 10:19:34 +0000]
arm: tegra: use ARM's DEN0028 v0.9 and PSCI specs to define SMCs

Use SIP Service calls (0x82000000x) and Standard Service calls
(0x8400000x) from the DEN0028 spec.

PSCI says that we need to use 0x8400000x in r0 for any power
management features i.e. cpu idle/hotplug/on/off followed by the
actual cpu state (LP2/LP1/LP0) in r1. This translates to Std service
calls space mentioned in the DEN0028 spec.

The SIP service calls can be used by silicon partners for their CPU
specific settings. We use this SMC space for L2 settings and to set
the CPU reset vector.

SMCs that are interrupted return a special status code to the NS world.
Look for that status and send a restart SMC (value = 60 << 24) when
received.

Also removed save/restore of r4-r12 as we rely on the secure OS to
do this for us.

Change-Id: I6fae83cc96d29c23305177df770fa07f7970c383
Signed-off-by: Scott Long <scottl@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/329998

5 years agosecurity: tlk_driver: use ARM's DEN0028 v0.9 spec to define SMCs
Varun Wadekar [Tue, 19 Nov 2013 06:45:20 +0000]
security: tlk_driver: use ARM's DEN0028 v0.9 spec to define SMCs

Use Trusted Application calls (0x30000000-0x31000000) and Trusted
OS calls (0x32000000-0x3F000000) from the spec.

Trusted App calls are used to Open/Close session and launch a new operation.
Trusted OS calls are used to talk with the TLK for IRQ handling, FS
handling, VPR settings, logger init, etc.

SMCs that are interrupted return a special status code to the NS world.
Modify our tlk_driver to look for that status and send a restart
SMC (value = 60 << 24) when received.

Also removed save/restore of registers across SMC calls. This restore
buffer was stored in r3 and expected to persist across the SMC. This
saving/restoring isn't necessary and adds undesired overhead.

Change-Id: I0b59604dfe2c4e3f4673797d756422cd7d5b64a3
Signed-off-by: Scott Long <scottl@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/332791
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dc: conditionalize sync code
Rakesh Iyer [Tue, 3 Dec 2013 22:14:04 +0000]
video: tegra: dc: conditionalize sync code

sync code should be executed only in the appropriate configuration.

Bug 1356564.

Change-Id: I87bd15a792a9fa317f6070933007b6f7002f38bc
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/337930
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: dc: allow fence fds in flip
Rakesh Iyer [Mon, 28 Oct 2013 23:02:14 +0000]
video: tegra: dc: allow fence fds in flip

Modify flip to allow fence file descriptors instead of syncpoint information

Bug 1356564.

Change-Id: I84fad52524cddb037e3ddc4512d3cd85ba394cee
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/336299
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lauri Peltonen <lpeltonen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: add kernel sync_fence i/f
Rakesh Iyer [Fri, 25 Oct 2013 22:37:07 +0000]
video: tegra: host: add kernel sync_fence i/f

Add support for sync_fence interface for kernel modules.

Bug 1356564.

Change-Id: I851ac2e8abcc29d512ce4caf52ece502832f8742
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/336298
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: gk20a: Fix gr recovery
Arto Merilainen [Mon, 2 Dec 2013 10:40:35 +0000]
video: tegra: host: gk20a: Fix gr recovery

Some GR interrupts called directly gr reset. This is wrong
as we need to actually do full engine recovery at this point.

The code already had the necessary call to the recovery function
and hence it is enough to remove offending reset calls.

Change-Id: I8c30aeb087fc2886c51cb196f1c02d2e68c8e22e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/337230
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: norrin: Add power tree for Norrin
Johnny Qiu [Fri, 22 Nov 2013 08:30:32 +0000]
arm: tegra: norrin: Add power tree for Norrin

Bug 1405054

Change-Id: Ic958a83da21c25c0b9c57823f6ff0592e59281ae
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/334390
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: norrin: Init as separate device
Johnny Qiu [Fri, 22 Nov 2013 08:25:22 +0000]
arm: tegra: norrin: Init as separate device

Bug 1405054

Change-Id: Iad5a344d83671e0c02bc77dc8395954cf8022d92
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/334389
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: dts: Add dts for Norrin
Johnny Qiu [Fri, 22 Nov 2013 08:18:50 +0000]
arm: tegra: dts: Add dts for Norrin

Bug 1405054

Change-Id: Ibe5a87658c0a2e32fb727c73f238ab991c7d09e0
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/334388
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: extcon: add apple charger cable type
Venkat Reddy Talla [Mon, 2 Dec 2013 10:00:29 +0000]
power: extcon: add apple charger cable type

 Add apple charger cable to power suply cable types
 to update cable type to framework layer when apple charger
 is attached.

 Bug 1414796

Change-Id: Ic114bcf49daad2a476dc0627a052e03804521a39
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/337204
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: enable /proc/device-tree for Tegra11x and Tegra12x platforms
Laxman Dewangan [Mon, 2 Dec 2013 09:54:11 +0000]
ARM: tegra: enable /proc/device-tree for Tegra11x and Tegra12x platforms

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

5 years agoARM: tegra: add DTS file name in all toplevel dts file of Tegra124
Laxman Dewangan [Mon, 2 Dec 2013 09:12:51 +0000]
ARM: tegra: add DTS file name in all toplevel dts file of Tegra124

Change-Id: Icc3acfa6ccff27dade7237c7b1d4d8968d053e05
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/337195
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: add support to display generic tegra related dt info
Laxman Dewangan [Mon, 2 Dec 2013 09:07:44 +0000]
ARM: tegra: add support to display generic tegra related dt info

Add generic API to display the tegra specific DT information in
kernel log.

Currently it is displaying DTS file name built on dts file.
It can be extend to display many such useful information.

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

5 years agotty: serial: tegra: Change device node name
Pradeep Goudagunta [Tue, 15 Oct 2013 15:29:41 +0000]
tty: serial: tegra: Change device node name

Change device node name to match upstream driver.

Bug 1231069

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

5 years agovideo: tegra: host: fix compile time warnings
Deepak Nibade [Mon, 2 Dec 2013 15:13:14 +0000]
video: tegra: host: fix compile time warnings

fix kernel compile time warnings of unused variable

Change-Id: I95c46d3583320318a94cb8f29abe942ad0354552
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/337292
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra12: dvfs: Update mselect dvfs table
Alex Frid [Wed, 27 Nov 2013 05:07:27 +0000]
ARM: tegra12: dvfs: Update mselect dvfs table

Bug 1413311

Change-Id: Ia9c19bfb6d4e70e8b6786303544225f1538854d4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/336458
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: clock: Convert mselect clock to shared bus
Alex Frid [Wed, 27 Nov 2013 01:28:47 +0000]
ARM: tegra12: clock: Convert mselect clock to shared bus

Converted mselect clock to bus shared between CPU and PCIE users.

Bug 1413311

Change-Id: Ibb34a474021e18cd842627bf66c5f466c5e355f5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/336457
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: dvfs: Update PCIE link dvfs table
Alex Frid [Wed, 27 Nov 2013 23:28:03 +0000]
ARM: tegra12: dvfs: Update PCIE link dvfs table

Bug 1342499

Change-Id: Iff0e4ed4c55e53b7ad74f4ceff103eaf0eca09af
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/336459
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dvfs: Fix unused variable warning
Alex Frid [Wed, 27 Nov 2013 23:35:41 +0000]
ARM: tegra: dvfs: Fix unused variable warning

Change-Id: Ia22b6dd541613c19745c265b53f3c01843f248a3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/336460
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agovideo: tegra: nvmap: remove heap attr code
Krishna Reddy [Thu, 24 Oct 2013 23:41:59 +0000]
video: tegra: nvmap: remove heap attr code

remove unnecessary heap attr code.

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

5 years agoARM: tegra: Remove unused mp_overhead
Sai Gurrappadi [Wed, 20 Nov 2013 23:23:01 +0000]
ARM: tegra: Remove unused mp_overhead

mp_overhead is no longer used to determine #cores config in EDP
throttled situations.

Change-Id: Ia97af565db24dace91e088e520b40fbda2341689
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/333674
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: Decouple edp and cpuquiet
Sai Gurrappadi [Wed, 20 Nov 2013 00:44:25 +0000]
ARM: tegra: Decouple edp and cpuquiet

Removed tegra_cpu_edp_favor_up/down api. EDP now requests a
PM_QOS_MAX_ONLINE_CPUS request to allow for the configuration that gives
the maximum number of MIPS given current temperature and the edp tables.

Bug 1160651

Change-Id: I2639a0f5f05901809e6249170733912b593f7549
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/333133
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agovideo: tegra: nvmap: remove unnecessary locking
Krishna Reddy [Wed, 27 Nov 2013 00:34:54 +0000]
video: tegra: nvmap: remove unnecessary locking

remove unnecessary lock/unlock of ref lock.

Change-Id: I8806ebf6070f4ff2047c1040ccec5a20e98bb238
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/335934
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agoarm: tegra: fix mismatched isp emc clock
Xue Dong [Wed, 27 Nov 2013 08:02:56 +0000]
arm: tegra: fix mismatched isp emc clock

bug 1407159

Change-Id: I657dde0e7a3df01494adf07a5565fa61b543ec60
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/336075
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: dc: limit access to win_h sysfs
Jon Mayo [Tue, 26 Nov 2013 19:15:49 +0000]
video: tegra: dc: limit access to win_h sysfs

Return error when display is powered down for reads or writes to win_h.

Bug 1412225

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

5 years agoarm: tegra: t124: support HDMI as primary
Emma Yan [Fri, 15 Nov 2013 07:33:28 +0000]
arm: tegra: t124: support HDMI as primary

Please add CONFIG_TEGRA_HDMI_PRIMARY=y to
kernel config file to enable this feature.

Bug 1407343

Change-Id: I62ca71ffaef2d947c329f2060dc5e5ab116e2976
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/333888
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: use dma APIs in fifo_gk20a.c
Deepak Nibade [Wed, 20 Nov 2013 15:26:17 +0000]
video: tegra: host: use dma APIs in fifo_gk20a.c

- use dma_alloc_coherent()/dma_free_coherent() to
  allocate/free memory
- use gk20a_gmmu_map()/unmap() to update gmmu ptes

Bug 1397647

Change-Id: If2385ee3d5308b95be3fc995d2aa73721192e7ef
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/333920
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: add separate functions to update gmmu ptes
Deepak Nibade [Wed, 20 Nov 2013 12:43:05 +0000]
video: tegra: host: add separate functions to update gmmu ptes

- existing function gk20a_vm_map() maps both user space and
  in-kernel buffers
- it has a lot of checking for user space buffers which is not
  required for in-kernel buffers
- add separate functions gk20a_gmmu_map()/unmap() to update
  gmmu ptes for in-kernel buffers only

Bug 1397647

Change-Id: I08f275203827c0e20deb9d6ab00c6e38fc094b12
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/333919
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: avp: Add PM QoS control for CPU
Mandar Potdar [Wed, 27 Nov 2013 12:39:10 +0000]
video: tegra: avp: Add PM QoS control for CPU

Control minimum number of online CPUs,
minimum CPU frequency by requesting PM QoS.

CPU frequency is controlled using existing
ioctl nvavp_set_clock_ioctl.
Added new ioctl nvavp_set_min_online_cpus_ioctl
for controlling minimum number of online CPUs.

bug 1396367

Change-Id: I33bd1cd23a508e8015ad882c58be02aed349d719
Signed-off-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-on: http://git-master/r/336653
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agonet: wireless: Update Marvell SD8797 SD8897 WLAN/BT driver
Marc Yang [Thu, 14 Nov 2013 22:24:07 +0000]
net: wireless: Update Marvell SD8797 SD8897 WLAN/BT driver

Signed-off-by: Marc Yang <yangyang@marvell.com>

- update SD8797 to 446
- update SD8897 to 449

Bug 1416075

Change-Id: Ib20c864e56677a0e3502164bf3aa251c9f506078
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: http://git-master/r/336501
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoRevert "Revert "net: wireless: Update SD8797 driver for 3.10""
Manikanta [Thu, 28 Nov 2013 03:38:58 +0000]
Revert "Revert "net: wireless: Update SD8797 driver for 3.10""

This reverts commit a2408edd2d92aa600c4221be4fb2f3c5b048cfdf.

Bug 1416075

Change-Id: Ie6a4735d29c891f0210215b1f8a4f8e2134192d3
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: http://git-master/r/336482
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoRevert "net: wireless: Update SD8797/SD8897 WLAN/BT driver to 434"
Manikanta [Thu, 28 Nov 2013 03:36:02 +0000]
Revert "net: wireless: Update SD8797/SD8897 WLAN/BT driver to 434"

This reverts commit 33ef0e9edc7cfffef68b1734a19be12c5244a764.

Bug 1416075

Change-Id: I0342e113cfec0e41d0e61af5ef8f854885ad5592
Signed-off-by: Manikanta <mmaddireddy@nvidia.com>
Reviewed-on: http://git-master/r/336489
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoarm: config: tegra: Enable CW201x fuel gauge
Shardar Shariff Md [Fri, 29 Nov 2013 13:50:56 +0000]
arm: config: tegra: Enable CW201x fuel gauge

Bug 1399412

Change-Id: I46639b6e88a764c9b593383d66fd3400afd3df78
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/336970
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomisc: bluedroid_pm: check BT TX and RX status before wake_lock release
Nagarjuna Kristam [Thu, 27 Dec 2012 06:28:04 +0000]
misc: bluedroid_pm: check BT TX and RX status before wake_lock release

bluedroid stack, updates only TX busy status through proc interface.

When BT HID/PAN-U connection are active, high probability of data is RX only
and no activity on Tx path. So, dis-allow suspend when either of BT TX or
BT RX is active.

Bug 1381466

Change-Id: Ib174b7d95d173c34e41ce393f93fda5fa204f217
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/299894
(cherry picked from commit 912b388337c2b6703ddaabd95250afac95fee303)
Reviewed-on: http://git-master/r/336465
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: host: gk20a reset delay us 1us
Terje Bergstrom [Fri, 29 Nov 2013 07:57:49 +0000]
video: tegra: host: gk20a reset delay us 1us

We should wait for 1us for the signal to reset a unit to propagate.
Unify all different ways to wait to just use udelay(1).

Change-Id: I4eee93de54be273659e852d0bef7550bc4b09642
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/336856
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo: tegra: host: Use regenerated reg list
Terje Bergstrom [Tue, 26 Nov 2013 09:34:13 +0000]
video: tegra: host: Use regenerated reg list

Bug 1412976

Change-Id: I5eb6b1c2dc70ecb80f3399d7a070eae2df7e4c9b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/335515
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra12: vcm30t124: Enable USB hot-plugging
Ashwin Joshi [Tue, 19 Nov 2013 11:20:35 +0000]
ARM: tegra12: vcm30t124: Enable USB hot-plugging

Enable USB hot-plug for USB #2 and USB #3.

Bug 1402408

Change-Id: Iabc4855510b462a804cb8d8ad8937e2f2cae2e70
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/332893
(cherry picked from commit 970886a584d5a691b42c7b56bda157c9709e278d)
Reviewed-on: http://git-master/r/336927
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoArm: config: tegra12: Remove interactive governor
Puneet Saxena [Wed, 27 Nov 2013 06:22:22 +0000]
Arm: config: tegra12: Remove interactive governor

Disabling interactive governor compilation as not needed
presently. Will enable it once we find a place to keep
governor tuning parameters.

Bug 1410933

Change-Id: I8f3e5610289d153a126ff680886ef8dd80b52a6f
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/336047
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sundeep Borra <sborra@nvidia.com>
Tested-by: Sundeep Borra <sborra@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: laguna: Register charger only when battery connected
Darbha Sriharsha [Fri, 29 Nov 2013 07:05:35 +0000]
arm: laguna: Register charger only when battery connected

Register bq24715 battery charger driver only when a battery
is connected to the platform (When it is specified through
ODM data that battery has been connected).

Bug 1271064

Change-Id: I0d6fc482c3e4d6f4512c3a06575f9525a197b906
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/336900
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoRevert "arm: tegra: update emc dvfs sequence to v12413"
Sang-Hun Lee [Wed, 27 Nov 2013 23:10:48 +0000]
Revert "arm: tegra: update emc dvfs sequence to v12413"

 - Change 3906be deprecated 0x16 support
 - Not all EMC tables are 0x18. Revert this change
   until we have all tables in 0x18 version

This reverts commit 3906be6667d8f7770d344edca2b22de38d29677b.

Change-Id: I8229ce543c7795057055df032603bc1d44751041
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/336436
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoRevert "arm: tegra: update emc dvfs table to v7"
Sang-Hun Lee [Wed, 27 Nov 2013 23:14:19 +0000]
Revert "arm: tegra: update emc dvfs table to v7"

This reverts commit 56bd22350af077f07e438254afad6a4c1fb65fbf.

 - Change 56bd2235 is dependent on EMC table 0x18 support, which
   is being reverted

Change-Id: I2237a6a70f140eb7d59e8662d22062ed2a3ba6d8
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/336439
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: Move pinmux driver to DT for TN8
Laxman Dewangan [Wed, 27 Nov 2013 10:07:25 +0000]
ARM: tegra: Move pinmux driver to DT for TN8

bug 1373364

Change-Id: I3735c2c4cde3f7bbe4aaf36fff96868cc8fae303
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/336968
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: move charger registration to pmic DTSI file.
Laxman Dewangan [Thu, 28 Nov 2013 11:21:00 +0000]
ARM: tegra: move charger registration to pmic DTSI file.

The charger device mounted on the PMIC board and there is separate
dtsi file for PMIC board. Hence moving the charger registration to
PMIC dtsi file and remove from top level dts file. This will avoid
duplication for similar boards using the same PMIC.

Change-Id: I3a4092ad53cfc652e1ac4cf317ea74fbc5148d01
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/336967
GVS: Gerrit_Virtual_Submit

5 years agoRevert "arm: config: tegra: Enable CW201x fuel gauge"
Hiroshi Doyu [Fri, 29 Nov 2013 10:07:02 +0000]
Revert "arm: config: tegra: Enable CW201x fuel gauge"

This reverts commit da45966e2d0784cb7e62f6d039797061eb37f773.

Change-Id: Ib2dcb0dd52edad5dc222085b8d178afe09964d88
Reviewed-on: http://git-master/r/336953
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoRevert "ARM: tegra: move charger registration to pmic DTSI file."
Hiroshi Doyu [Fri, 29 Nov 2013 10:06:44 +0000]
Revert "ARM: tegra: move charger registration to pmic DTSI file."

This reverts commit efe52ec7b592eac2b8df07425fcbee82eabc9961.

Change-Id: I13af27f502e30b873491f57c600f4c592c3bd7d4
Reviewed-on: http://git-master/r/336952
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoRevert "regulator: as3722: set the correct current limit"
Hiroshi Doyu [Fri, 29 Nov 2013 10:06:27 +0000]
Revert "regulator: as3722: set the correct current limit"

This reverts commit 3dee4d31723e7ecf44014ef4f96294b1ff3b4600.

Change-Id: I6ca18dd6416f284a4364e08e405314563f921da4
Reviewed-on: http://git-master/r/336914
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoRevert "ARM: tegra: Move pinmux driver to DT for TN8"
Hiroshi Doyu [Fri, 29 Nov 2013 10:09:53 +0000]
Revert "ARM: tegra: Move pinmux driver to DT for TN8"

This reverts commit 79ae5547a5e06573df7ec3a7f8a84ece55f6c2b6.

Change-Id: Ibd1e7ea5cdfd67c86bbaec7e6e7d801a04263b25
Reviewed-on: http://git-master/r/336917
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoRevert "ARM: tegra: Move pinmux driver to DT for TN8"
Hiroshi Doyu [Fri, 29 Nov 2013 10:09:53 +0000]
Revert "ARM: tegra: Move pinmux driver to DT for TN8"

This reverts commit 79ae5547a5e06573df7ec3a7f8a84ece55f6c2b6.

5 years agoRevert "arm: config: tegra: Enable CW201x fuel gauge"
Hiroshi Doyu [Fri, 29 Nov 2013 10:07:02 +0000]
Revert "arm: config: tegra: Enable CW201x fuel gauge"

This reverts commit da45966e2d0784cb7e62f6d039797061eb37f773.

5 years agoRevert "ARM: tegra: move charger registration to pmic DTSI file."
Hiroshi Doyu [Fri, 29 Nov 2013 10:06:44 +0000]
Revert "ARM: tegra: move charger registration to pmic DTSI file."

This reverts commit efe52ec7b592eac2b8df07425fcbee82eabc9961.

5 years agoRevert "regulator: as3722: set the correct current limit"
Hiroshi Doyu [Fri, 29 Nov 2013 10:06:27 +0000]
Revert "regulator: as3722: set the correct current limit"

This reverts commit 3dee4d31723e7ecf44014ef4f96294b1ff3b4600.

5 years agoARM: tegra: pcie: Disable ctlr having no device
Jay Agarwal [Tue, 19 Nov 2013 09:49:17 +0000]
ARM: tegra: pcie: Disable ctlr having no device

Disable the controller if no device is connected
to its root port.

Bug 1383777

Change-Id: I37e9683c20c9ed37d597a01343efaba6baa5c138
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/332197
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoinput: touchscreen: synaptics: detect and notify out of idle
Yogish Kulkarni [Thu, 20 Jun 2013 11:21:43 +0000]
input: touchscreen: synaptics: detect and notify out of idle

Detect no spi interrupt for 50ms as idle. On first interrupt after
idle report miscellaneous input event MSC_ACTIVITY. This event will
serve as early notification for actual input event and will allow
cpu frequency governor to boost CPU clk early.

Bug 1307520

Change-Id: I9dfa037303cb303da120716911e5c1ab375fc222
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/240592
(cherry picked from commit 2da59642dd69ae2482e8d088d8d99cf7fa18bf7e)
Reviewed-on: http://git-master/r/328304
Reviewed-by: Vikas Jain <vjain@nvidia.com>
Tested-by: Vikas Jain <vjain@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: dp: Add HBR2 support
Animesh Kishore [Tue, 26 Nov 2013 14:35:46 +0000]
video: tegra: dp: Add HBR2 support

- Add postcursor2 support
- Use training characterization values

Bug 1368069
Bug 1382354
Bug 1406417

Change-Id: Ib7aa846da9094a7df8fa7ed54b29b0a54b95e00f
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/335665
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoarm: tegra12: Loki: Add C2 debug port support
Will Wu [Wed, 27 Nov 2013 02:57:32 +0000]
arm: tegra12: Loki: Add C2 debug port support

Enable C2 port for Loki platform for debugging microcontroller
in Joystick in case of mcu failure.

Bug 1375728

Change-Id: I90ffee220cc2ffa2af6833fd1100ddab1d4077e7
Signed-off-by: Will Wu <willw@nvidia.com>
Reviewed-on: http://git-master/r/335984
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoLoki: Implement mcu debugger in Kernel
Will Wu [Wed, 27 Nov 2013 02:54:46 +0000]
Loki: Implement mcu debugger in Kernel

The debugger runing in kernel is used to generate
required time sequence to C2 debug interface of the
microcontroller in joystick.

Bug 1375728

Change-Id: I7e366068faa16745e46fe60826b92c9ed44efb32
Signed-off-by: Will Wu <willw@nvidia.com>
Reviewed-on: http://git-master/r/335983
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: configs: t124: enable C2 debugger for Loki
Will Wu [Mon, 18 Nov 2013 05:11:33 +0000]
ARM: configs: t124: enable C2 debugger for Loki

It will enable debugging functions for joystick
microcontroller via C2 interface.

Bug 1375728

Change-Id: Ifb452c7edc89b3c4417cbe584ea50d9567d4d360
Signed-off-by: Will Wu <willw@nvidia.com>
Reviewed-on: http://git-master/r/332704
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agodma: tegra: Fix usage of clk_prepare
Chaitanya Bandi [Mon, 11 Nov 2013 04:36:17 +0000]
dma: tegra: Fix usage of clk_prepare

As clk_prepare shouldn't be called from
atomic context, moving it as appropriate.

Bug 1400884

Change-Id: I993f607a24927feaf9923df1f95022663c0ecbed
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/336524
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: config: tegra: Enable CW201x fuel gauge
Shardar Shariff Md [Thu, 28 Nov 2013 09:41:13 +0000]
arm: config: tegra: Enable CW201x fuel gauge

Bug 1399412

Change-Id: I014ea520fb62894d603e445e9a2debd26835f187
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/336594
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: Move pinmux driver to DT for TN8
Laxman Dewangan [Wed, 27 Nov 2013 10:07:25 +0000]
ARM: tegra: Move pinmux driver to DT for TN8

bug 1373364

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

5 years agoARM: tegra: move charger registration to pmic DTSI file.
Laxman Dewangan [Thu, 28 Nov 2013 11:21:00 +0000]
ARM: tegra: move charger registration to pmic DTSI file.

The charger device mounted on the PMIC board and there is separate
dtsi file for PMIC board. Hence moving the charger registration to
PMIC dtsi file and remove from top level dts file. This will avoid
duplication for similar boards using the same PMIC.

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

5 years agoregulator: as3722: set the correct current limit
Vince Hsu [Thu, 28 Nov 2013 10:40:12 +0000]
regulator: as3722: set the correct current limit

Change-Id: I443987c8fc7c840d16bebf3bd24783bc51bab5be
Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/336651

5 years agoregulator: palmas: Set smps enable delay to 600us
Terje Bergstrom [Wed, 27 Nov 2013 09:27:56 +0000]
regulator: palmas: Set smps enable delay to 600us

Enable time of 275us is not enough for all cases. Bump it to 600us.

Bug 1404859

Change-Id: I786e7c80b2fce123346c2c88a01de3ca54728ca9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/336129
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: nvmap:use attr dma_alloc/_free funcs
Vandana Salve [Wed, 20 Nov 2013 10:03:11 +0000]
video: tegra: nvmap:use attr dma_alloc/_free funcs

Set DMA_ATTR_ALLOC_EXACT_SIZE attribute and use
attr version of dma allocation/release functions

bug 1380639

Change-Id: I8fe888afc8afd0c929af87b50a543a107d83e568
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/333349
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoarm: dma-mapping: support DMA_ATTR_ALLOC_EXACT_SIZE
Vandana Salve [Thu, 21 Nov 2013 11:18:20 +0000]
arm: dma-mapping: support DMA_ATTR_ALLOC_EXACT_SIZE

This new attribute can handle allocation & release of
memory of exact sizes by making call to attr version
of dma_alloc_from_coherent/dma_release_from_coherent

bug 1380639

Change-Id: I2af8c8131ff552ae5e0ac3a628139318b3395a73
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/334000
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>