]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
9 years agomisc: therm_est: Unregister tz and cdev in shutdown
Jinyoung Park [Wed, 28 May 2014 17:58:13 +0000 (02:58 +0900)]
misc: therm_est: Unregister tz and cdev in shutdown

Unregister thermal zone and cooling device in shutdown callback to prevent
unwanted thermal operating while shutdown processing.

Bug 1515432

Change-Id: I49a13618f7b8f8d5b55a8e960676e7357891fe89
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/416278
(cherry picked from commit cb140feb445ff6dce4984bed527eca56191180a8)
Reviewed-on: http://git-master/r/436687
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agothermal: generic-adc-thermal: Add shutdown callback
Jinyoung Park [Wed, 28 May 2014 17:11:11 +0000 (02:11 +0900)]
thermal: generic-adc-thermal: Add shutdown callback

Added shutdown callback function to prevent unwanted thermal zone operating
while shutdown processing.

Bug 1515432

Change-Id: I54822fa6fe4a1af811b11324c5c378904c11f654
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/416247
(cherry picked from commit d587035a252ca5c579db4ad8fad1756259a2566c)
Reviewed-on: http://git-master/r/427500
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agonet: wireless: bcmdhd: delete p2p device if already exist
Om Prakash Singh [Thu, 10 Jul 2014 13:18:00 +0000 (18:48 +0530)]
net: wireless: bcmdhd: delete p2p device if already exist

in case of android service restart, framework calls DRIVER STOP and
and then DRIVER START command. We are not removing p2p device
on DRIVER STOP call as it will as it is also trigger to disable wifi when
wifi sleep policy: never selected(Bug 1525819). While android service
restart, supplicant also restarts that try to create p2p device and it
returns failure because p2p device was not unregister.

Solution: while registering p2p device(it will only call when
supplicant starts), free old p2p device and register it again
instead of returning failure.

Bug 200020160

Change-Id: I950f7f6e55e1250081107a65fc3d13f44a32c848
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/436678
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agostaging: iio: light: iqs253: make sensor always on
Sri Krishna chowdary [Thu, 10 Jul 2014 03:07:16 +0000 (08:37 +0530)]
staging: iio: light: iqs253: make sensor always on

Keep sensor always on for its proper functioning.
It seems, we do not work fine with sensor turning on when
needed and turning it off when not in use. This behavior
could be because of the time it takes to adjust to the
environment but the root cause is not yet clear.

Bug 1499925

Change-Id: I57a5949e01f8d9cf68e50d877a2dae6925592ffd
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/436506
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chas Inman <chasi@nvidia.com>
9 years agonet: wireless: bcmdhd: reorder sdlock to avoid lockup
Allen Yu [Tue, 8 Jul 2014 17:21:21 +0000 (01:21 +0800)]
net: wireless: bcmdhd: reorder sdlock to avoid lockup

dhd_os_sdlock() is called in dhd_watchdog(), which is the timer function
of dhd->timer. So we need to release the lock before deleting the timer
to avoid cpu lockup.

bug 1526837

Change-Id: Icbeb393afe81ff476d0e133f60bc7b0477d37364
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/435684
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agonet: wireless: bcmdhd: do not call wl_cfgp2p_del_disc_if on DRIVER STOP
Parth Bera (Parth) Bera [Tue, 8 Jul 2014 10:20:14 +0000 (15:50 +0530)]
net: wireless: bcmdhd: do not call wl_cfgp2p_del_disc_if on DRIVER STOP

In kernel 3.10 we only use one net device wlan0 and p2p is a
wireless device register above wlan0 (driver_param with with
p2p_device=1). In this specific configuration, the DRIVER STOP
command implies to unregister of the p2p-dev-wlan0 wireless
device and to down the wlan0 iface. But when the DRIVER START
command occurs only the wlan0 net device is up, the p2p-dev-wlan0
wireless device is never registered again.

Solution:
wl_cfgp2p_del_disc_if code in wl_cfgp2p_down is unnecessary
because the function is called during  unloading driver.

Bug 1525819

Change-Id: I1e37e151411fa5f85075640c831e327a4fdc7c2d
Signed-off-by: Parth Bera (Parth) Bera <parth.bera@broadcom.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/435594
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agobdi: avoid oops on device removal
Jan Kara [Thu, 3 Apr 2014 21:46:23 +0000 (14:46 -0700)]
bdi: avoid oops on device removal

After commit 839a8e8660b6 ("writeback: replace custom worker pool
implementation with unbound workqueue") when device is removed while we
are writing to it we crash in bdi_writeback_workfn() ->
set_worker_desc() because bdi->dev is NULL.

This can happen because even though bdi_unregister() cancels all pending
flushing work, nothing really prevents new ones from being queued from
balance_dirty_pages() or other places.

Fix the problem by clearing BDI_registered bit in bdi_unregister() and
checking it before scheduling of any flushing work.

Fixes: 839a8e8660b6777e7fe4e80af1a048aebe2b5977
Change-Id: Iba983ab2c40ab74f24484d44465741551a24de91
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Derek Basehore <dbasehore@chromium.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Nilesh More <nmore@nvidia.com>
Reviewed-on: http://git-master/r/435485
Reviewed-by: Prafull Suryawanshi <prafulls@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
9 years agoRevert "staging: ozwpan: enable some debug trace print"
Bharat Nihalani [Tue, 8 Jul 2014 14:16:01 +0000 (19:46 +0530)]
Revert "staging: ozwpan: enable some debug trace print"

This reverts commit 09cd18b2dfc33c6f8e2f86a9c270f435172a493e since
it causes potential delay in other threads in the system to be
scheduled.

On devices that don't have the right firmware, we do see OZ_TIMER_OUT
prints flooded in kernel log. This does cause delay in other threads
to be scheduled. This print is coming from a tasklet for oz_pd_timeout_handler.

Bug 200016188

Change-Id: I844994d4a768f61e20914f3a3649d4a139c4a7ab
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/435649
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agostaging: iio: light: iqs253: add iqs263 support
Sri Krishna chowdary [Mon, 23 Jun 2014 13:30:07 +0000 (19:00 +0530)]
staging: iio: light: iqs253: add iqs263 support

- add i2c routines for iqs263
- seperate out routines for iqs263 and iqs253
- auto detect iqs253 vs iqs263 and apply appropriate settings
- set HW suggested init settings to improve settings for iqs263
- Move code to appropriate places i.e., iqs253 first handshake
  need not happen for iqs263
- fix regulator logic to match regulator_enable and regulator_disable

Bug 1499925

Change-Id: I8970d2b17322598d8197022189016e4c02a76bd5
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/427198
(cherry picked from commit 9e2d7b22653fd70b99e8b14332af908e4f2d6113)
Reviewed-on: http://git-master/r/435667
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agobq2419x: dump stack backtrace when WDT expired.
Robert Shih [Sat, 5 Jul 2014 05:34:59 +0000 (13:34 +0800)]
bq2419x: dump stack backtrace when WDT expired.

If hitting WDT expired case, means CPU is too much
busy somewhere and not able to schedule the workqueue
for 10 second.

Dump stack backtrace to check what is hogging CPU time.

bug 200017893

Change-Id: Ie15da50df1138ed3d4ac8f240b20b94f2797ea67
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/435472
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Yu <alleny@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agopower: lc709203f:print battery voltage and soc at suspend and resume
Venkat Reddy Talla [Mon, 7 Jul 2014 05:34:15 +0000 (11:04 +0530)]
power: lc709203f:print battery voltage and soc at suspend and resume

print battery voltage and soc while entering into susped and
while resuming from LP0 state, it helps to debug fuel gauge update
issues.

Bug 1531256

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

9 years agopower: extcon:display No cable detected instead of unknown cable
Venkat Reddy Talla [Mon, 7 Jul 2014 05:21:01 +0000 (10:51 +0530)]
power: extcon:display No cable detected instead of unknown cable

display log No cable detected instead of unknown cable detected

Change-Id: I38a7cef5d9d0a97a3c652567031463950860d3f6
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/434975
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agostaging: iio: light: iqs253: update sensor code
Sri Krishna chowdary [Mon, 23 Jun 2014 10:52:52 +0000 (16:22 +0530)]
staging: iio: light: iqs253: update sensor code

1. clean up obsolete code paths
2. modify init sequence
3. modify i2c communication protocol
4. re init on power on reset detection
5. modify proximity detection thresholds and ATI registers

Bug 1499925

Change-Id: Icd81346259e5e689ce64854a421b6e53f1d67d05
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/427154
(cherry picked from commit ae2861e7b8439574e36b0ccd41bf9e07a7c4a964)
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/434893
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agovideo: tegra: host: Do not deinit tsec
Arto Merilainen [Mon, 7 Jul 2014 08:16:22 +0000 (11:16 +0300)]
video: tegra: host: Do not deinit tsec

tsec deinitialisation is currently triggered when the last user
on tsec channel closes the channel and we release the firmware as
part of the deinitialisation routine. However, we may still have some
work pending on the channel and therefore releasing the firmware
may trigger unexpected faults from tsec.

As firmware release is not needed (i.e. we will need the firmware)
later when the channel is used next time, we can simply remove the
firmware release.

Bug 200018717

Change-Id: I0b2c381049c6dbec43be8f42a670fdd7b06ff400
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/435056
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agobcmdhd: fix NULL pointer in setting IEs
Allen Yu [Sun, 6 Jul 2014 12:10:15 +0000 (20:10 +0800)]
bcmdhd: fix NULL pointer in setting IEs

In case of device role undetermined, we should return error instread of
going ahead to set IEs to FW, which could potentially cause a NULL poiter
issue.

Bug 200015171

Change-Id: I2dd1828d6ad87845d3b0ed5bfeaffad6fe728a1f
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/434900
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>
Tested-by: Kevin Bruckert <kbruckert@nvidia.com>
Reviewed-by: Chas Inman <chasi@nvidia.com>
9 years agotegra: dc: nvhdcp: check dc powergating status
Anshuman Nath Kar [Sat, 5 Jul 2014 22:26:07 +0000 (15:26 -0700)]
tegra: dc: nvhdcp: check dc powergating status

Bug 200017536
Bug 200018316
Bug 200018314

Change-Id: I7c58049166ef1e6e74daab218eb7f6abc918289f
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/434862
Reviewed-by: Eric Chuang <echuang@nvidia.com>
9 years agovideo: tegra: hdmi: check dc powergating status
Anshuman Nath Kar [Thu, 29 May 2014 00:43:07 +0000 (17:43 -0700)]
video: tegra: hdmi: check dc powergating status

Add checks for dc clockgating and powergating before
reading or writing from dc hdmi registers

Bug 200005903
Bug 1514732
Bug 200017536
Bug 200018316
Bug 200018314

Change-Id: I5155af72a0529d167bf56b016d9238501c5b4229
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/434863
Reviewed-by: Eric Chuang <echuang@nvidia.com>
9 years agostaging: ozwpan: reorder WARN_ON in oz_pd_put
Allen Yu [Sat, 5 Jul 2014 03:55:38 +0000 (11:55 +0800)]
staging: ozwpan: reorder WARN_ON in oz_pd_put

In oz_pd_put(), PD may be already freed after calling oz_pd_destroy().
So we need to move WARN_ON() to the entry of oz_pd_put() instead to
avoid dangling pointer.

Bug 200017893

Change-Id: Ie12af2adcacab6dce0ce58a21a27c0497a540382
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/434837
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agobcmdhd: Do not allow p2p calls after netdev unreg
Aly Hirani [Fri, 4 Jul 2014 19:04:59 +0000 (12:04 -0700)]
bcmdhd: Do not allow p2p calls after netdev unreg

Bug 200015171

Change-Id: Ib8471805a37310692e69a02715c44cc5eb329d92
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/434569
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>
Tested-by: Eric Chuang <echuang@nvidia.com>
9 years agovideo: tegra: host: remove duplicate tsec boot
Deepak Nibade [Fri, 4 Jul 2014 08:41:43 +0000 (14:11 +0530)]
video: tegra: host: remove duplicate tsec boot

Remove duplicate tsec boot during tsec_init() since it is
not required at that point

Reference change : http://git-master/r/415550

Bug 1531112

Change-Id: I2ca89a0824adc2abbb8a24391add14b5b2869cda
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/434683
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoHID: usbhid: protect hid disconnect flag
Vinayak Pane [Fri, 4 Jul 2014 02:03:49 +0000 (19:03 -0700)]
HID: usbhid: protect hid disconnect flag

Acquire spin_lock before checking disconnect flag of hid.
Also add USB interface null check at get_raw_report.

Bug 200018305

Change-Id: I7255fa641cabf0866dd0d1f2fdab460ec82eca70
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/434584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Chuang <echuang@nvidia.com>
9 years agomedia: tegra: nvavp: fix deadlock issue
Allen Yu [Wed, 2 Jul 2014 07:14:24 +0000 (15:14 +0800)]
media: tegra: nvavp: fix deadlock issue

nvavp_uninit() cancels clock_disable_work in a synchronous manner,
and the work function of clock_disable_work requires nvavp->open_lock,
so any routine holds the same lock should release it before calling
nvavp_uninit().

Bug 200013513

Change-Id: I42082a97cc4e311a4141559f8a56c7c1eeb97eb2
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/434113
(cherry picked from commit 70dea56a0b911b76e118146b2aa02b8a61491dc8)
Reviewed-on: http://git-master/r/434613
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
9 years agovideo: tegra: dc: skip duplicate CMU update
Jon Mayo [Fri, 16 May 2014 00:45:08 +0000 (17:45 -0700)]
video: tegra: dc: skip duplicate CMU update

Skip updating CMU on first boot, and restore CMU after disable or
suspend. Use dc->pdata->cmu_enable to select initial state of cmu, and
move the current cmu status out of dc->pdata and into dc->cmu_enabled.
Remove unused flag TEGRA_DC_FLAG_CMU_ENABLE.

Bug 1507065

Reviewed-on: http://git-master/r/410636
(cherry picked from commit 0c0bfb40e67fb31a01bd69695e0f153dbb2ac8de)

Change-Id: I645923339653698d1be137b3b90ad38735c3159e
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/431945
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-on: http://git-master/r/433113
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agobcmdhd: check NULL pointer
Eric Chuang [Fri, 4 Jul 2014 01:27:30 +0000 (09:27 +0800)]
bcmdhd: check NULL pointer

Bug 200015171

Change-Id: I7c74fcbe5bb567051b356227596b49fedb8eac57
Signed-off-by: Eric Chuang <echuang@nvidia.com>
Reviewed-on: http://git-master/r/433942

9 years agostaging: iio: adc: palmas: add debug prints when ADC failed.
Laxman Dewangan [Thu, 26 Jun 2014 11:44:14 +0000 (17:14 +0530)]
staging: iio: adc: palmas: add debug prints when ADC failed.

Prints the ADC status and irq status when ADC conversion failed
with timeout. This helps on debugging the issue when such failure
occurs.

bug 1527322

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

9 years agoUSB: phy: tegra: replace mdelay with usleep_range
Suresh Mangipudi [Mon, 30 Jun 2014 08:12:41 +0000 (13:42 +0530)]
USB: phy: tegra: replace mdelay with usleep_range

Avoid busy waiting by using usleep_range().

Change-Id: Ifba64bda667001d4de837e10ddb36f8f7d23312e
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/432651
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Chas Inman <chasi@nvidia.com>
9 years agostaging: ozwpan: set audio packet priority
Vinayak Pane [Thu, 3 Jul 2014 02:29:56 +0000 (19:29 -0700)]
staging: ozwpan: set audio packet priority

Increase all audio packet priority over network.
This will likely avoid audio glitches.

Change-Id: I5238da5060cb8d5990d4b4a7df8b856de7e46bd8
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/433901
Reviewed-by: Chas Inman <chasi@nvidia.com>
9 years agoHID: mask HID_CONNECT_FF flag
Vinayak Pane [Wed, 2 Jul 2014 21:43:18 +0000 (14:43 -0700)]
HID: mask HID_CONNECT_FF flag

Remove HID_CONNECT_FF bit from hid_connect.
Device has it's own forced feedback enabled.

Bug 200016744

Change-Id: I98f072c5a61809891264acbe7a498d51acef266f
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/433807
Reviewed-by: Ben Goska <bgoska@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chas Inman <chasi@nvidia.com>
9 years agobcmdhd: Override fw's check for flowcontrol
Aly Hirani [Wed, 2 Jul 2014 05:28:20 +0000 (22:28 -0700)]
bcmdhd: Override fw's check for flowcontrol

The broadcom firmware sends a flowcontrol status in the rx packet
indicating that it is running short on tx buffers. This bit is used to
tell the driver to stop sending packets (based on their priority).

However, there seems to be a significantly large delay (~100ms) in the
fw updating the driver with the new flowcontrol bits.

Ozmo's audio traffic is marked as 0x106 priority which translates to
priority=0x40.

This change overrides the flowcontrol bits sent by the fw
and makes it so that the 0x40 priority traffic is never blocked from
flowcontrol. The DATAOK(bus) check on the bus ensures that we always
have enough tx buffers on the chip (despite the flowcontrol being set)
and that we don't end up clobbering packets on the fw.

Change-Id: I26c2d6f3b66d2e2f23c4c5327ed2577025bc089c
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/433463
Reviewed-by: Chas Inman <chasi@nvidia.com>
9 years agostaging: ozwpan: cancel hrtimers at oz_pd_stop
Vinayak Pane [Tue, 1 Jul 2014 02:37:20 +0000 (19:37 -0700)]
staging: ozwpan: cancel hrtimers at oz_pd_stop

When PD is stopping, cancel hrtimers associated with it
instead of waiting for pd_destroy to cancel them.

Bug 200013781

Change-Id: Id6628e21b766a2f80ecfbe982cde2b82409c6637
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/432985
Reviewed-by: Eric Chuang <echuang@nvidia.com>
Tested-by: Eric Chuang <echuang@nvidia.com>
9 years agostaging: ozwpan: flush workqueue
Vinayak Pane [Mon, 30 Jun 2014 07:41:10 +0000 (00:41 -0700)]
staging: ozwpan: flush workqueue

uevent workqueue needs to be flushed before pd free.
destroy workqueue should not have been rescheduled.

Don't make work struct NULL again.

Bug 200016744

Change-Id: Ief24aad7d787ca3ce6f0c5b4f41656aa50bf2bf4
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/432633
Reviewed-by: Allen Yu <alleny@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoHID: fix bad merge in probe function
Vinayak Pane [Tue, 1 Jul 2014 02:45:45 +0000 (19:45 -0700)]
HID: fix bad merge in probe function

Force feedback should be enabled at hid-probe.
This has been caused by bad merge http://git-master/r/#/c/409169/

Change-Id: I5a9e97f2b489cfd0c1a988abd3c0a599ed226dd1
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/432986
Reviewed-by: Allen Yu <alleny@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Toby Butzon <tbutzon@nvidia.com>
Reviewed-by: Ben Goska <bgoska@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agobcmdhd: check null pointer in cfg80211 callbacks
bibhayr [Mon, 30 Jun 2014 18:13:18 +0000 (11:13 -0700)]
bcmdhd: check null pointer in cfg80211 callbacks

move the null pointer check before using it.

Bug 200015171

Change-Id: I669b62f2448cc515f67401df046a1d57638d8144
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/432834
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agogpu:nvgpu:fix powergate disabling order
Vijayakumar [Fri, 27 Jun 2014 09:20:31 +0000 (14:50 +0530)]
gpu:nvgpu:fix powergate disabling order

ELPG has to disabled before we write to clock gating registers
If ELPG is engaged during clock gating register write it will
cause error in ELPG engine

Bug 200013495
Bug 200014542

Change-Id: I57d1c59fc9311686829d898faddc90149df4cb46
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/432206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agobcmdhd: check null pointer in cfg80211 callbacks
Mitch Luban [Sun, 29 Jun 2014 23:36:32 +0000 (16:36 -0700)]
bcmdhd: check null pointer in cfg80211 callbacks

Bug 200015171

Change-Id: I341dd59845ae981ba1aeb7a6229cc83c37322443
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/432559

9 years agoRevert "video: tegra: dsi: Fix config dependency with bl"
Robert Shih [Sun, 29 Jun 2014 03:39:16 +0000 (11:39 +0800)]
Revert "video: tegra: dsi: Fix config dependency with bl"

This reverts commit 26313af130d9dbefdd5fa18ec1d3fea28e7e0ee3.

Bug 1528776

Change-Id: I8dc09b8afb309b6c136893656f92e38f588a4485
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/432524
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
9 years agostaging: ozwpan: fix potential race in oz_pd_destroy
Allen Yu [Fri, 27 Jun 2014 15:44:30 +0000 (23:44 +0800)]
staging: ozwpan: fix potential race in oz_pd_destroy

If two routines A and B call oz_pd_destroy() in parallel, there could be
a race condition they are both able to get through to the point of increasing
pd_destroy_scheduled. For example, routine A reads pd_destroy_scheduled
and its value is zero, right after that routine B reads pd_destroy_scheduled
as well and its value is still zero. Then routine A and B will both be able
to go ahead to increase pd_destroy_scheduled and then schedule the oz_pd_free
workitem, causing the reduplicate oz_pd_free.

To fix that, using spinlock instead of atomic operation. Also do some cleanup
of the redundant code and fix a potential NULL pointer error in oz_pd_alloc().

Bug 200014887
Bug 1522180

Change-Id: I777c39298600c273b6f55bbaf524edd597c80c57
Signed-off-by: Allen Yu <alleny@nvidia.com>
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/432519
GVS: Gerrit_Virtual_Submit
Tested-by: Kevin Bruckert <kbruckert@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agostaging: ozwpan: fix NULL pointer in stop_store
Allen Yu [Sat, 28 Jun 2014 17:43:42 +0000 (01:43 +0800)]
staging: ozwpan: fix NULL pointer in stop_store

oz_pd_find() can return 0 if it fails to find any pd in g_pd_list
that matches the mac_addr. This could happen if oz_pd_stop() has been
called on the pd so that it's deleted from g_pd_list.

Change-Id: I6bedf242676d6cd316eae41dacd8a515dac296b8
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/432534
GVS: Gerrit_Virtual_Submit
Tested-by: Kevin Bruckert <kbruckert@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>
9 years agobcmdhd: check NULL pointer in cfg80211 callbacks
bibhayr [Sat, 28 Jun 2014 02:25:11 +0000 (19:25 -0700)]
bcmdhd: check NULL pointer in cfg80211 callbacks

some of the callbacks does not have the NULL
pointer check for wl. So, add wl NULL check for
every function. If net device gets unregistered
and there is another call on wl, kernel crash
happens. This will avoid all the crashes.

Bug 200015171

Change-Id: I15a7de6ba36caf7037c7a37a530f1829e2f94cf0
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/432450
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Zu <pzu@nvidia.com>
Tested-by: Kevin Bruckert <kbruckert@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoRevert "video: tegra: dsi: re-init DSI in seamless"
Mitch Luban [Fri, 27 Jun 2014 22:10:53 +0000 (15:10 -0700)]
Revert "video: tegra: dsi: re-init DSI in seamless"

This reverts commit 12574365aec035227d2ec1e72e28650ffe872960.

Bug 1528776
Bug 200014874
Bug 200014845

Change-Id: Ide17e935de9d477259a4acbe5eedc4330365e14d
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/432369
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Zu <pzu@nvidia.com>
Tested-by: Kevin Bruckert <kbruckert@nvidia.com>
9 years agostaging: ozwpan: set port changed flag at disconnect
Vinayak Pane [Fri, 27 Jun 2014 02:38:03 +0000 (19:38 -0700)]
staging: ozwpan: set port changed flag at disconnect

Set port changed flag at every hub disconnect control message.
USB hub status should know correct port status always.

Also contains ugly WAR to recover from network failure cases.
After 3 port reset retries reset the net interface.

Bug 1522708

Change-Id: I1aa5baa837f60668cfb4a23dd7fa820be27151e7
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/431926
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Kevin Bruckert <kbruckert@nvidia.com>
Tested-by: Kevin Bruckert <kbruckert@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agotn8: Linearize PWM response
Daniel Solomon [Thu, 26 Jun 2014 22:44:00 +0000 (15:44 -0700)]
tn8: Linearize PWM response

This is required for correct DIDIM operation.

Change-Id: I584dda4d4cbeae97abda4d6d3591a9017961bcd4
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/432381
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agostaging: ozwpan: balance pd reference count
bibhayr [Thu, 26 Jun 2014 23:22:53 +0000 (16:22 -0700)]
staging: ozwpan: balance pd reference count

decrease the pd reference count if workitem
scheduling fails.

Bug 200013781

Change-Id: I6452477df02b538c04e5424a18a35524343ec1f6
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/429292
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agogpu: nvgpu: Initialize ELPG ref-count early.
Neil Gabriel [Thu, 26 Jun 2014 23:02:32 +0000 (18:02 -0500)]
gpu: nvgpu: Initialize ELPG ref-count early.

gk20a_pmu_disable_elpg can be called before the PMU driver has
received and processed the INIT message from the PMU. If change
ensures that the ELPG ref-count has been initialized to zero
before that can happen.

Bug 200016313

Change-Id: Ic80ec1ee69b1eb0499effb1abf556f78cb041f5e
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/431927
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoPM / Runtime: Fix error path for prepare
Ulf Hansson [Wed, 13 Nov 2013 14:45:03 +0000 (15:45 +0100)]
PM / Runtime: Fix error path for prepare

If a device prepare callback for some reason would fail, the PM core
prevented the device from going inactive forever.

In this case, to reverse the pm_runtime_get_noresume() we invokes the
asyncronous pm_runtime_put(), thus restoring the usage count.

bug 1518244

Reviewed-on: http://git-master/r/423999
(cherry picked from commit 70fbe95cb2865b464989c555879397908b10bdfa)

Change-Id: Ia4984630e71abeb55ef90a19799d1fea700b2148
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/428517
Reviewed-by: Robert Shih <rshih@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agoinput: touchscreen: raydium: update to 66.1
Jordan Nien [Thu, 26 Jun 2014 03:08:37 +0000 (11:08 +0800)]
input: touchscreen: raydium: update to 66.1

66.1 Change list:
1. Add mutex_lock/mutex_unlock protection in KRL_CMD_FLUSH_QU command table.
2. fix missed touch when fast tapping with stylus.
3. fix report mode switch problem.
3. fix service busy problem.

Bug 200006260
Bug 1515264

Change-Id: Ieab295c83448f6ab5455e4c9f1d60d7576688176
Signed-off-by: Jordan Nien <jnien@nvidia.com>
Reviewed-on: http://git-master/r/428734
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hon Fei Chong <hchong@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agogpu: nvgpu: fix possible PMU isr race
Deepak Nibade [Wed, 25 Jun 2014 13:27:23 +0000 (18:57 +0530)]
gpu: nvgpu: fix possible PMU isr race

Possible race description :
- while PMU is booting, it sends messages to kernel which we process
  in gk20a_pmu_isr()
- but when messages are processed it is possible that we are on the way
  to rail gate the GPU and we have already called pmu_destroy()
- this could lead to hangs if while processing messages, GR is
  already off

To fix this, introduce another mutex isr_enable_lock and a flag to
turn on/off ISRs
- when we enable PMU, get the lock and set the flag
- in pmu_destroy(), get the lock and remove the flag
- in pmu_isr(), take the lock, check if flag is set or not. If flag
  is not set return, otherwise proceed with the messages

Bug 200014542
Bug 200014887

Change-Id: I0204d8a00e4563859eebc807d4ac7d26161316ea
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/428372
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agostaging: ozwpan: enable some debug trace print
Om Prakash Singh [Wed, 25 Jun 2014 09:06:02 +0000 (14:36 +0530)]
staging: ozwpan: enable some debug trace print

Bug 200013781

Change-Id: If28cef260a55f7b1ccd6d6e427c488fd6abcb291
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/428245
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agoAdd Miracast modes 5 and 6 to handle interference mitigation on blake
Srinivas Ramachandran [Wed, 25 Jun 2014 00:04:06 +0000 (17:04 -0700)]
Add Miracast modes 5 and 6 to handle interference mitigation on blake

To prevent blake disconnection on 2.4Ghz channels, set miracast mode 5
to disable interference mitigation and set miracast mode 6 to enable
auto interference mitigation.

Bug 1527717

Change-Id: I48447215051be1bf6983ccec8eb4d2f07c4b1f2a
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/428009
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agoinput: touch: radyium: avoid deadlock
Xiaohui Tao [Tue, 15 Oct 2013 00:16:09 +0000 (17:16 -0700)]
input: touch: radyium: avoid deadlock

Fix potential deadlock in driver

Raydium drop does not fix the problem. We need to have this
temporary fix to solve the problem.

Bug 1384590
Bug 1526923

Change-Id: Ifcb56ba5db34b42af0b4d441659d7a5fdd869943
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/289969
Reviewed-on: http://git-master/r/427256
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jordan Nien <jnien@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agotegra: hdmi: start hdmi audio after hdmi_enable
Anshuman Nath Kar [Tue, 17 Jun 2014 04:03:08 +0000 (21:03 -0700)]
tegra: hdmi: start hdmi audio after hdmi_enable

Bug 200009194

Change-Id: Iff803b18fb7779dc510aab526a4a3b37ff45da96
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/427523
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agoHID: remove extra kfree
Vinayak Pane [Wed, 21 May 2014 23:04:01 +0000 (16:04 -0700)]
HID: remove extra kfree

hidinput_disconnect() function frees hid drv data
internally, remove unnecessary kfree from driver.

Reviewed-on: http://git-master/r/412819
(cherry picked from commit c7b31ae80b2364903095a98a32b31a37f98900b1)

Change-Id: Idd60a597d607d5a68eedb7dd51daeca867d31125
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/427397
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
9 years agoARM: tegra: p1761: update emc dvfs table
Robert Shih [Mon, 23 Jun 2014 07:57:37 +0000 (15:57 +0800)]
ARM: tegra: p1761: update emc dvfs table

New release DVFS table generated by
EMC_REG_CAL_V5.0.18

bug 1521750

Change-Id: Ib06001da111e22f0d9ab53d32e8e1adb45e6fbe8
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/427068
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agovideo: tegra: host: map command buffer if tracing is enabled
Deepak Nibade [Mon, 23 Jun 2014 06:18:06 +0000 (11:48 +0530)]
video: tegra: host: map command buffer if tracing is enabled

Map the command buffer only if tracing is enabled.
Buffer mapping is required only for command tracing
otherwise there is no need to map.

Change-Id: If433e1dec78322f415b2f5370d1a6e7b2346c4e9
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/427020
(cherry picked from commit e42b2925ca54e8a27a833d1008318a095a18f1e6)
Reviewed-on: http://git-master/r/427091
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agovideo: tegra: host: add cpuva checks for gathers
Deepak Nibade [Thu, 27 Mar 2014 12:41:28 +0000 (18:11 +0530)]
video: tegra: host: add cpuva checks for gathers

Add check for cpuva before calling dma_buf_vunmap()
Also, condition to call trace_write_gather() should
check for cpuva address and not iova

Bug 1481669

Change-Id: I585eff8f96edad7b89714133fb5b55f62a86cabb
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/387720
(cherry picked from commit e1cc77b87b23c9ef1028cba2fbda9e9cb0ba248e)
Reviewed-on: http://git-master/r/427119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
9 years agoRevert "usb: ehci: Tegra: change to noirq suspend/resume"
Robert Shih [Mon, 23 Jun 2014 09:18:30 +0000 (17:18 +0800)]
Revert "usb: ehci: Tegra: change to noirq suspend/resume"

This reverts commit 10093e4f538fbfbbd81318d9d8fa288c0e1df66a.

bug 200014697

Change-Id: I8830eaf46912e5d63c726a5e5fc12695407ffc21
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/427114
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agotegra: hdmi: audio: sysfs node for max audio channel info
Anshuman Nath Kar [Thu, 19 Jun 2014 05:07:24 +0000 (22:07 -0700)]
tegra: hdmi: audio: sysfs node for max audio channel info

Provide max_pcm_channels from the EDID audio info
to HAL before the EDID audio info gets copied to
the HDA codec driver. This is done since HAL requires
prior channel information in order to open the pcm
device

Bug 200009194

Change-Id: I2dd365a095705950901ec2228b94c8a3a63b1abd
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
(cherry picked from commit 19a30e527133d06eea3dabc9f3b15011c2c1ad9a)
Reviewed-on: http://git-master/r/426354
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agonet: wireless: bcmdhd: fix rtnl_lock deadlock while AGO creation
Om Prakash Singh [Thu, 19 Jun 2014 15:25:41 +0000 (20:55 +0530)]
net: wireless: bcmdhd: fix rtnl_lock deadlock while AGO creation

problem:
during p2p interface add/remove stress, race condition is happening
for rtnl_lock between cfg80211_event_work and dhd driver. due to
which system's net stack is going in to deadlock state.

solution:
to register p2p interface make use of register_netdevice instead
of register_netdev which doesn't require rtnl_lock and remove
rtnl_unlock/lock that was added to make sure register_netdev doesn't
block on rtnl_lock.

Bug 1515721

Change-Id: Iceba835b986561fce9e707ef9cc92e3265689abb
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/426983
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
9 years agoRevert "ARM: tegra: p1761: remove lower frequencies"
Mitch Luban [Sun, 22 Jun 2014 00:39:29 +0000 (17:39 -0700)]
Revert "ARM: tegra: p1761: remove lower frequencies"

This reverts commit 174f56b1357109d3c1a8e3d73a2beb060ae4a827.

Bug 1521750

Change-Id: I2157459f96ae896b40bf3120ba753c8e2988814f
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/426962
GVS: Gerrit_Virtual_Submit

9 years agoRevert "staging: iio: light: cm3217: check event's validity"
Sri Krishna chowdary [Sat, 21 Jun 2014 18:36:55 +0000 (00:06 +0530)]
Revert "staging: iio: light: cm3217: check event's validity"

This reverts commit 106b781a903756f574c9f7130c3db36d6bfe97c3.
From SQA testing it is found that this causes regression in auto-brightness.

Bug 1521699

Change-Id: I39e972002d1d87092e10205a9bed50f44fcfa512
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/426899
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agostaging: ozwpan: protect oz_pd_destroy
Vinayak Pane [Wed, 18 Jun 2014 01:45:14 +0000 (18:45 -0700)]
staging: ozwpan: protect oz_pd_destroy

oz_pd_destroy() is called mulitple times when network
down notifier gets triggered. Destroy workqueue is scheduled
from tasklet and also from oz_binding_remov function.
Protecting it by strictly scheduling workqueue only once.

Bug 1522180
Bug 1522708

Change-Id: I47c92a5e7ef1067d5dc4cdf67653a785eff34bca
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/426904
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agostaging: ozwpan: kobject_uevent_env() from process context
S Tateno [Tue, 17 Jun 2014 14:50:57 +0000 (15:50 +0100)]
staging: ozwpan: kobject_uevent_env() from process context

Call kobject_uevent_env() always from process context.

Bug 1523226

Reviewed-on: http://git-master/r/425002
(cherry picked from commit a7168d798724a3049f6dc53cd0f35d2c34163e48)

Change-Id: I65e52eda1349b2a807c323d3f8768e1bda516a45
Signed-off-by: S Tateno <shigekatsu.tateno@atmel.com>
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/426903
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agoRevert "staging: ozwpan: remove scheduling while atomic"
Vinayak Pane [Wed, 18 Jun 2014 20:10:50 +0000 (13:10 -0700)]
Revert "staging: ozwpan: remove scheduling while atomic"

This reverts commit 3e6733bb4f62148b38af8ccbe56dc0e62a052138.
An improvised fix for this is provided by Atmel with patch
"staging: ozwpan: kobject_uevent_env() from process context"
which is submitted separately.

Reviewed-on: http://git-master/r/425001
(cherry picked from commit 2b0b08d23de2a59275c276df87f2b11237f833e9)

Change-Id: I91ded7b515dea4a9fd75a04fd98b66f67f789504
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/426902
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agoarm: tegra: pinmux : enable e_input of sdmmc clk
Seema Khowala [Fri, 20 Jun 2014 18:36:30 +0000 (11:36 -0700)]
arm: tegra: pinmux : enable e_input of sdmmc clk

For all SDMMC controllers, E_INPUT of CLK pad should be
enabled since loopback CLK (Zi of CLK pad) is used to
latch RESP/DATA coming from external device.
If not enabled, you will see RESP/DATA time outs.

Bug 1521217

Change-Id: I66e9bb98d1d1740fc519001f93d45a7baaba46fa
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/426807
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agostaging: iio: light: cm3217: check event's validity
Sri Krishna chowdary [Thu, 19 Jun 2014 06:49:10 +0000 (12:19 +0530)]
staging: iio: light: cm3217: check event's validity

In case integration time for the sensor is not properly set,
User space may query the updated value of a sensor before an event
is generated from the sensor. Kernel driver should not send a stale or
invalid event in such cases, else it may impact performance and in some
cases, the user space application may behave in some undesirable way.

This change checks for such invalid events and makes sure such values
are not sent to user space.

Bug 1521699

Change-Id: I46f8d8defb2e63038f5c4947cbbe8e2b26c06f55
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/426819
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agoarm: tegra: soctherm: split suspend and resume nb
Diwakar Tundlam [Thu, 29 May 2014 22:54:12 +0000 (15:54 -0700)]
arm: tegra: soctherm: split suspend and resume nb

Split soctherm suspend and resume notifier callbacks to allow
different priority settings so that soctherm-suspend is called after
dvfs-resume and soctherm-resume is called before dvfs-resume.

Reviewed-on: http://git-master/r/416815
(cherry picked from commit 4280c2cac05905ea976d713373ac62df18cc27f1)

Change-Id: I269a7851f4131f1b900c6a813a203a6d49c50c6a
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/426723
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoRevert "ASoc: rt5639: Set audio CODEC IRQ as wake up pin"
Eric Eells [Sat, 21 Jun 2014 01:23:19 +0000 (18:23 -0700)]
Revert "ASoc: rt5639: Set audio CODEC IRQ as wake up pin"

This reverts commit 9d57e94e14a03921f03e7e4ee55915539fa7507e.
This change is apparently causing an LP0 resume hang.

Change-Id: I2201cc979447c040eedb4b7aa84e667c80962c42
Signed-off-by: Eric Eells <eeells@nvidia.com>
Reviewed-on: http://git-master/r/426797
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agopower: extcon: fix charging icon during bootup
Rakesh Bodla [Thu, 19 Jun 2014 11:27:44 +0000 (16:57 +0530)]
power: extcon: fix charging icon during bootup

If device is booted with charger cable, in probe
y-cable extcon dev reports no cable is connected
and cable connection status is getting corrupted.
Fixing this by adding suitable condition.

Bug 1522950

Change-Id: I5cee5953665338c500bf484ebc38cc5ce42c9ae0
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/425968
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoASoc: rt5639: Set audio CODEC IRQ as wake up pin
wahsu [Fri, 6 Jun 2014 06:50:22 +0000 (14:50 +0800)]
ASoc: rt5639: Set audio CODEC IRQ as wake up pin

Bug 200009793

Change-Id: Ie0f778e7492a8809c93045dc4d323339a72b5553
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/425240
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Chuang <echuang@nvidia.com>
9 years agoinput: touchscreen: raydium: update to 66.0
Jordan Nien [Mon, 16 Jun 2014 11:53:28 +0000 (19:53 +0800)]
input: touchscreen: raydium: update to 66.0

66.0 Change list:
1. Enable queue buffer function.
2. Enable touch ID mapping enhancement.
3. Add send Uevent function.
4. keep test mode/status after sleep.

Change-Id: I2eca08db9c02febadce83f51031b22f1847d19ea
Signed-off-by: Jordan Nien <jnien@nvidia.com>
(cherry picked from commit b06c04a07ab3aaf76157d7d1f006afae58aa746a)
Reviewed-on: http://git-master/r/426343
Reviewed-by: Vincent Chen <zochen@nvidia.com>
Tested-by: Vincent Chen <zochen@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agobcmdhd: update CONNECTED on WLC_E_SET_SSID event
bibhayr [Thu, 19 Jun 2014 02:35:54 +0000 (19:35 -0700)]
bcmdhd: update CONNECTED on WLC_E_SET_SSID event

update the status of the firmware to connected after
AP association when the WLC_E_SET_SSID event happens.
Currently it updates the status before WLC_E_SET_SSID.

Bug 200013819

Change-Id: Ic126661373e75ecaf561831396d3c23990314444
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/425086
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agousb: free up composite gadget string ids on unbind
Rakesh Bodla [Thu, 5 Jun 2014 06:31:12 +0000 (12:01 +0530)]
usb: free up composite gadget string ids on unbind

There are only 254 USB composite gadget string_ids available.
When switching gadget mode such as mtp and acm repeatedly,
they will be exhausted.

This bug has been brought up since android composite driver
introduced a way to switch gadget modes while the composite
driver is still holding its bind.

Fix this by reset next_string_id and clean up gstrings when
android gadgets are disabled. Also by removing the condition
comparing gadgets' string id to 0 because gadget string id
has to be re-assigned whenever the string count is reset.

The codes removed the condition check will work as the same
as before they have changed if the gadgets are used by other
composite drivers other than android since all of them call
bind only once and never unbind it hence no side effects considered.

Ported from https://android-review.googlesource.com/#/c/95366/

Bug 200001941

Change-Id: I1e2fbe0f59fe05b89052db62e0b61b074d8f032b
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/425165
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agogpu: nvgpu: do not idle timed out channels
Deepak Nibade [Thu, 12 Jun 2014 13:58:15 +0000 (19:28 +0530)]
gpu: nvgpu: do not idle timed out channels

While suspending the device, do not submit WFI on
timed out channels

Submitting WFI on timed out channels will cuase submit_wfi()
to return error and as result of this, rail gating of device
will be prevented

Bug 200010416

Change-Id: Ic097bfdae59dbf9e1f2aea5d8d0431b5f1c3721b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
(cherry picked from commit 9ac601c0035240f6bacc3c42c5cc9e7b85a65456)
Reviewed-on: http://git-master/r/426079
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agogpu: nvgpu: bail out from poweroff if channel suspend fails
Deepak Nibade [Wed, 11 Jun 2014 13:52:51 +0000 (19:22 +0530)]
gpu: nvgpu: bail out from poweroff if channel suspend fails

During gk20a_pm_prepare_poweroff(), if call to gk20a_channel_suspend()
fails, we proceed to disable other components and then return error.
But when genpd sees the error, it will abort the suspend sequence and
keep the device state as active.

But since we have already disabled all the components, GPU lands in
invalid state.

Hence, if channel_suspend() fails then do not proceed but return
the error immediately

Bug 200010416

Change-Id: I553a2a25832a1be4941bb6b6ce490c950cdbe7fa
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
(cherry picked from commit 7352415a206b6bec41c762085e49efec5036dec9)
Reviewed-on: http://git-master/r/426078
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agovideo: tegra: host: fix setclass order in gather submit
Deepak Nibade [Mon, 16 Jun 2014 10:25:43 +0000 (15:55 +0530)]
video: tegra: host: fix setclass order in gather submit

We submit gathers in submit_gathers() as below :
1) set class to class id sent from user space
2) call add_sync_waits() which sets class to HOST1X
   and adds host waits
3) and then we proceed to insert gathers sent from user space
   (which now see wrong class id set i.e. HOST1X)

This results in setting wrong class ids and causes
abnormal behaviour

To fix this, rewrite this sequnce as below :
1) call add_sync_waits() which sets class to HOST1X
   and adds host waits
2) set class to class id sent from user space
3) and then we proceed to insert gathers sent from user space
   (and now we have correct class id set for this gather)

Bug 1521367

Change-Id: Ifef00ae8b4431ea440ac6f9048111a3136e3bb3e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
(cherry picked from commit 83d938ee3ad390298768b2267fb157799cee610b)
Reviewed-on: http://git-master/r/426077
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agousb: ehci: Tegra: change to noirq suspend/resume
Martin Chi [Fri, 28 Mar 2014 15:38:42 +0000 (23:38 +0800)]
usb: ehci: Tegra: change to noirq suspend/resume

Chnage ehci suspend/resume to noirq suspend/resume
to enable it get more chances to handle the remote
wake-up which may come after normal suspend/resume

bug 1430974
bug 1402295

Change-Id: I0bd078350d6b465e6417768f91748d5107640323
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/426073
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agotegra: ictlr: correct the base address of init
Sang-Hun Lee [Tue, 17 Jun 2014 23:35:49 +0000 (16:35 -0700)]
tegra: ictlr: correct the base address of init

 - The initilization of the mselect register was being done
   against the hier_ictlr register base address, instead of
   the mselect register base address. Correct the address
   to the mselect register base

Bug 1519537

Change-Id: I2de684e26ff21b4034ed5493a5991e31d01b75c1
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/426071
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agobcmdhd: fix p2p interface and wlan0 assoc race
bibhayr [Sat, 31 May 2014 01:06:49 +0000 (18:06 -0700)]
bcmdhd: fix p2p interface and wlan0 assoc race

Do not allow virtual p2p interface creation while the AP
drviver status is CONNECTING

Bug 200009241
Bug 200009346
Bug 200009344
Bug 200009328

Change-Id: I8bfba473110067b550473e32295ad523a5515023
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/417330
(cherry picked from commit 7436ab5ebc68e08e0c54f6ddfcaf1b078ebb532c)
Reviewed-on: http://git-master/r/425081
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agoARM: tegra: convert non-battery DTS to battery dts for P1761-A04-E
Laxman Dewangan [Thu, 19 Jun 2014 07:16:47 +0000 (12:46 +0530)]
ARM: tegra: convert non-battery DTS to battery dts for P1761-A04-E

Convert the non-battery DTS to battery DTS for the P1761-A04-E to fix the
proper OTA from mp1 to OTA1 release.

The battery dts have the dtsfilename as the non-battery dts which causes the
BC/FG broken after OTA1. The steps are:
- Create nonbattery dtss file and keep same as original non-battery dts.
- Change original non-battery dts to battry supported DTS.

bug 200014189

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

9 years agoARM: tegra:provide battery soc range and input voltage limit
Venkat Reddy Talla [Wed, 18 Jun 2014 07:25:51 +0000 (12:55 +0530)]
ARM: tegra:provide battery soc range and input voltage limit

adding input voltage limit and soc range to configure
input voltage limit(VINDMP) based on battery SOC value.
add entry for monitor battery current through IIO for
p1761-A04,This enables current_now sysfs which helps
to find out how much current flowing from/to battery.

Bug 1516392

Change-Id: I9d59eec51ccfd58b805663c00c699249138fa0e2
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/425934
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoRevert "extcon: palmas: make aca detection platform dependent"
Laxman Dewangan [Wed, 18 Jun 2014 14:36:31 +0000 (20:06 +0530)]
Revert "extcon: palmas: make aca detection platform dependent"

This reverts commit aa55d35202b5895068bdf8eace842102bf134dab.
Revert the change becasue it breaks the VUS and ID detection. With this change
on some platforms, the VBUS and ID both are detected even only connnect the
VBUS cable. This causes misbehaving of the drivers.

bug 200013069

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

9 years agoARM: tegra: p1761: remove lower frequencies
Sang-Hun Lee [Wed, 18 Jun 2014 00:14:53 +0000 (17:14 -0700)]
ARM: tegra: p1761: remove lower frequencies

 - Removing EMC frequencies below and including 40.8 Mhz until
   the validation is done

Bug 1521750

Change-Id: I3eb4430ad66d5e89ed19ab0b33ba27472bae0e43
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/424948
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
9 years agoRM: tegra: add debounce time to 200ms for stylus sensor
wahsu [Mon, 9 Jun 2014 10:02:10 +0000 (18:02 +0800)]
RM: tegra: add debounce time to 200ms for stylus sensor

Change-Id: I8d856bb2370bd61807f0d559edea9228713ca369
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/420621
(cherry picked from commit 9f7724881f4ce3d15dc7990b2382df6112dcd847)
Reviewed-on: http://git-master/r/422237
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
Reviewed-on: http://git-master/r/424938
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agovideo: tegra: dc: blank windows upon dc disable
Michael Frydrych [Mon, 9 Jun 2014 11:07:41 +0000 (14:07 +0300)]
video: tegra: dc: blank windows upon dc disable

Blank all windows when disabling dc, otherwise
incorrectly sized destination window rectangles may
be used when dc is re-enabled after mode switch.

bug 1494157
bug 1494506
bug 1513592

Change-Id: I11bfe745483f0b1754df4e3135d243c1d9cad89c
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/420647
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agogpu: nvgpu: gk20a: do not access invalid TLB
Sang-Hun Lee [Thu, 12 Jun 2014 17:52:59 +0000 (13:52 -0400)]
gpu: nvgpu: gk20a: do not access invalid TLB

Problem description:
 - gk20a_mm_tlb_invalidate guarantees callers that
   TLB would be in a clean state
 - gk20a_mm_tlb_invalidate checks whether the dirty
   flag is set, then mark clean, then performs
   reset operation
 - If there are two parallel callers, one thread would be
   performing the clean up operation, while the other thread
   is returned to the caller

Fix description:
 - Extends the duration of the TLB dirty flag mutex lock

Bug 1519537

Change-Id: Ib762d876ea11c06cc39399b1e2607ae3a2c0e17e
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/422820
(cherry picked from commit dc85d8f4fb08a2a7cc85f8432aee8370b860b73b)
Reviewed-on: http://git-master/r/423806
Reviewed-by: Emad Mir <emir@nvidia.com>
Tested-by: Emad Mir <emir@nvidia.com>
9 years agotegra: hdmi: Update hdmi_disable_l process
Anshuman Nath Kar [Sat, 14 Jun 2014 23:52:16 +0000 (16:52 -0700)]
tegra: hdmi: Update hdmi_disable_l process

Update fb_monspecs and ext_process_hotplug on every hdmi_disable
This is required since hdmi_disable can also be called when
transitioning from hdmi disconnected to disable, for
example, when hdmi gets disconnected during LP0

Bug 200012022

Change-Id: Iec26358a20fc0a720a31362d9e2ae489831ab9c4
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
(cherry picked from commit ed4cf08420092ccf22a903b15328539d04c23373)
Reviewed-on: http://git-master/r/423491
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Nitish Rajguru <nrajguru@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
9 years agogpu: nvgpu: Remove extraneous FB flush calls
Terje Bergstrom [Mon, 12 May 2014 12:14:05 +0000 (15:14 +0300)]
gpu: nvgpu: Remove extraneous FB flush calls

gk20a_mm_fb_flush() invoked G_ELPG_FLUSH and FB_FLUSH. Remove the
invokation of G_ELPG_FLUSH. Replace calls to gk20a_mm_fb_flush() with
gk20a_mm_l2_flush() when appropriate.

Bug 1421824

Change-Id: I02af4bdc3b7bd26d0f6a8d610f70349269775a36
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/408210
(cherry picked from commit f02f34a8d214d883c949ab55fe872d4176a21bc5)
Reviewed-on: http://git-master/r/423233
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agogpu: nvgpu: When rail gating, flush only once
Terje Bergstrom [Mon, 12 May 2014 12:00:43 +0000 (15:00 +0300)]
gpu: nvgpu: When rail gating, flush only once

When rail gating invoke G_ELPG_FLUSH only once.

Bug 1421824

Change-Id: Ibde0e32b212e3b030e69a9cb837c87789887aabb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/408209
(cherry picked from commit 7c8c12eef2e4ce132b5cec239dc59b24888f4c9c)
Reviewed-on: http://git-master/r/423232
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

9 years agogpu: nvgpu: Prune redundant cache maintenance
Terje Bergstrom [Thu, 8 May 2014 12:13:32 +0000 (15:13 +0300)]
gpu: nvgpu: Prune redundant cache maintenance

Remove redundant cache maintenance operations. Instance blocks and
graphics context buffers are uncached, so they do not need any cache
maintenance.

Bug 1421824

Change-Id: Ie0be67bf0be493d9ec9e6f8226f2f9359cba9f54
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/406948
(cherry picked from commit 179d6ff3b2845e99d1719a9ba10862f2d3b22080)
Reviewed-on: http://git-master/r/423231
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agoARM: DTS: ST8: Do not use PMIC for reset
Tom Cherry [Mon, 16 Jun 2014 19:52:15 +0000 (12:52 -0700)]
ARM: DTS: ST8: Do not use PMIC for reset

We don't want to power cycle PMIC over I2C on a warm reboot.
Instead just reboot the AP.

Change-Id: I66d4f79c8443ad08f1f1bc348b693b13e6896497
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/423844
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoRevert "cpuidle: Fix disabled sysfs entry"
Allen Yu [Fri, 13 Jun 2014 07:23:44 +0000 (15:23 +0800)]
Revert "cpuidle: Fix disabled sysfs entry"

This reverts commit f23e8a88998fd69e85b14d0b68db16f62adb846c.

"disabled" parameter is currently used by generic PM domains to control
attached cpuidle state. This patch moves disable parameter from idle state
back to state_usage which to avoid the race between sysfs control and
generic PM domains.

Bug 1517825
Bug 1493508
Bug 200008021
Bug 1469274

Change-Id: Iedd950ec19e89f0517d99532a43c1db051473611
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/423146
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoarm: tegra: enable Tegra WDT for T124
Mitch Luban [Tue, 3 Jun 2014 07:33:10 +0000 (00:33 -0700)]
arm: tegra: enable Tegra WDT for T124

Enables both tegra WDT as well as reboot on kernel panic. Reboot
on kernel panic has a timeout value of 60 seconds.

These mechanisms give us a high chance that we have DRAM retention
across resets. Important to gather ramoops and PTM traces.

Change-Id: If5f80c422e511f72430beaf83072a0e2f0b551d7
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/419514
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agovideo: tegra: dsi: re-init DSI in seamless
Vineel Kumar Reddy Kovvuri [Wed, 4 Jun 2014 05:58:03 +0000 (11:28 +0530)]
video: tegra: dsi: re-init DSI in seamless

This patch re-initializes dsi in the kernel even
in seamless mode. This helps reduce the dependency
with bootloader set dsi configuration

Bug 200006804
Bug 1510417

Change-Id: I2f9ae5efd467b95b5d3b0f6568c2379f4f68522e
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/418332
(cherry picked from commit 4e9583d8ceeabb393d355a53641b12c03d8be0e2)
Reviewed-on: http://git-master/r/419278
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Eric Chuang <echuang@nvidia.com>
9 years agodrivers: hid: Support vendor specific usage for blake trackpad
Ankita Garg [Tue, 10 Jun 2014 22:48:58 +0000 (15:48 -0700)]
drivers: hid: Support vendor specific usage for blake trackpad

Generic HID drivers do not work well Blake trackpad. So, fw
uses vendor specific usage for the trackpad. Change the usage
internally to register trackpad as a relative mouse.

Bug 1519941

Change-Id: I9145309d77ed6d46e1c6b9847abd3ed3aaa7d04b
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/422894
Reviewed-by: Toby Butzon <tbutzon@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agovideo: tegra: dc: accept CSC on window update
Jon Mayo [Fri, 13 Jun 2014 00:02:10 +0000 (17:02 -0700)]
video: tegra: dc: accept CSC on window update

This patch permits changing of the current CSC coefficients. It cannot be used
with interlaced mode.

Adds fields to skip window CSC programming if nothing has changed.

Bug 1522546

Change-Id: If8fc6a5d634e4b300ef0de6a5913188fe1f1efb0
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/422885
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agoiio: meter: ina230: fix return value of ina230_set_channel
Timo Alho [Thu, 12 Jun 2014 18:29:12 +0000 (21:29 +0300)]
iio: meter: ina230: fix return value of ina230_set_channel

On success, ina230_set_channel needs to return the number of
characters written.

Change-Id: I4ed249c0c4c86792b3b590eb4c1a532dcfd57f3a
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/422792
(cherry picked from commit 0ad59e7418ae0809354e5178ee641b69deda3ad0)
Reviewed-on: http://git-master/r/422800
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agopower: extcon:convert extcon lock to spinlock from mutex
Venkat Reddy Talla [Wed, 11 Jun 2014 05:24:03 +0000 (10:54 +0530)]
power: extcon:convert extcon lock to spinlock from mutex

use spinlock instread of mutex to avoid kernel warning "sleeping
function called from invalid context" if CONFIG_DEBUG_ATOMIC_SLEEP
(sleep inside atomic section checking config) enabled and usb cable
plugged/unplugged.

Bug 1522398

Change-Id: I813f959dc5cb3ce666794a8d57152b6f562046a6
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/421988
(cherry picked from commit dbca4e0d9f5cdd7da5270288bf1e8add4e164e6a)
Reviewed-on: http://git-master/r/422555
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agostaging: ozwpan: remove scheduling while atomic
bibhayr [Thu, 12 Jun 2014 02:44:01 +0000 (19:44 -0700)]
staging: ozwpan: remove scheduling while atomic

Call kobject_uevent_env() from process context.

Bug 1523226

Change-Id: I6b5569f986b179f8b804642dc3702f3a3f10d180
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/422536
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoARM: tegra: set debounce time to 300ms for magnetic sensor
Sri Krishna chowdary [Thu, 12 Jun 2014 14:15:25 +0000 (19:45 +0530)]
ARM: tegra: set debounce time to 300ms for magnetic sensor

It is observed that there is huge amount of debounce on the
signal of transtion when smart cover flipped.

Keep the safe value of debounce time of the signal from sensor to
300ms.

bug 200005902

Change-Id: Ied607341397e9bce5dbc7c4456c1c1b3460f914e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/422744
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoarm: tegra12: enable the PTM driver
Xin Xie [Wed, 4 Dec 2013 00:17:35 +0000 (16:17 -0800)]
arm: tegra12: enable the PTM driver

bug 9622188

Change-Id: I569c0c41002dcd1b518187e75a4ce4203c02e032
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/419513
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>