]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
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>
9 years agoarm: tegra: ardbeg: add the PTM device
Xin Xie [Wed, 4 Dec 2013 00:15:51 +0000 (16:15 -0800)]
arm: tegra: ardbeg: add the PTM device

bug 9622188

Change-Id: I77eba679cf03b67ba2776954f78329300d2e1ecf
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/419512
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
9 years agoarm: tegra: fix PTM dead locking on tight loop
Xin Xie [Wed, 4 Dec 2013 00:21:22 +0000 (16:21 -0800)]
arm: tegra: fix PTM dead locking on tight loop

If one core is executing a tight loop and generating huge number of PTM
packets on funnel, it will cause other core dead locking on the PTM
flushing during the WFI entrance.

This patch will replace the "cpu_relax()" with "smp_mb()", and it can
relax the CPU tight loop and allow other CPU's PTM packet being flushed
properly.

bug 9622188

Change-Id: Ibe17fc91a74a5446d560f71ef9308f3dbd32f6c9
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/419511
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agonvdumper: Disabled if cannot get dump flag in nct
Yifei Wan [Fri, 13 Jun 2014 19:05:23 +0000 (14:05 -0500)]
nvdumper: Disabled if cannot get dump flag in nct

Change-Id: I863d16e215673047c94ce3380033efc9e13b87d4
Signed-off-by: Yifei Wan <ywan@nvidia.com>
Reviewed-on: http://git-master/r/423350
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mark Peters <mpeters@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agousb: gadget: keep udc alive on non-std charger det
Petlozu Pravareshwar [Fri, 11 Apr 2014 11:29:13 +0000 (16:59 +0530)]
usb: gadget: keep udc alive on non-std charger det

The non-std charger could also be a self-powered
hub(which is not yet connected to any host).
If we stop controller here, tegra can't detect
the host through this self-powered hub.

Bug 1458990

Change-Id: Ifd4aeae65304acf724098b452899dd5c5a8aac62
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/395217
(cherry picked from commit 4fac6d6c34ed9b04b914f3968e7d1b18fd259fc7)
Reviewed-on: http://git-master/r/423122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoi2c: tegra: do bit-banging for i2c transfer at 50KHz.
Laxman Dewangan [Thu, 12 Jun 2014 13:28:58 +0000 (18:58 +0530)]
i2c: tegra: do bit-banging for i2c transfer at 50KHz.

Bit-banging is enabled dueing power off. Do the bit-banging method
of data transfer at 50KHz.

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

9 years agoi2c: algo: add more error/info prints
Laxman Dewangan [Thu, 12 Jun 2014 13:27:13 +0000 (18:57 +0530)]
i2c: algo: add more error/info prints

Enable more error/info prints to know the status of the
transfer if it fails.

Also when sending bytes, ignore the last byte ACK from the slave.

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

9 years agoARM:tegra:st8: Set UARTA over SDMMC3 pinmux
wahsu [Fri, 6 Jun 2014 14:43:46 +0000 (22:43 +0800)]
ARM:tegra:st8: Set UARTA over SDMMC3 pinmux

Bug 200012420

Change-Id: Ifebbc4c28ba3b2ae88a42fda2920d58eaab1e253
Signed-off-by: wahsu <wahsu@nvidia.com>
Reviewed-on: http://git-master/r/420094
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoARM: tegra:provide battery soc range and input voltage limit
Venkat Reddy Talla [Fri, 30 May 2014 06:56:36 +0000 (12:26 +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.

Change-Id: Iade9d91c5a94149a60a513f15be8d27f7e264efb
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/416960
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agopower: lc709203f:report battery capacity value
Venkat Reddy Talla [Fri, 30 May 2014 06:54:31 +0000 (12:24 +0530)]
power: lc709203f:report battery capacity value

report battery SOC value to configure input voltage
depends on SOC value.

Bug 1516392

Change-Id: I83258361e7e75aea630e37d58d08b199980da36c
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/416959
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agopower: bq2419x:adjust input voltage limit based on battery SOC
Venkat Reddy Talla [Fri, 30 May 2014 06:48:47 +0000 (12:18 +0530)]
power: bq2419x:adjust input voltage limit based on battery SOC

configure input voltage limit based on battery SOC,
get the battery soc from fuel gauge and adjust input voltage
as the battery soc rises when usb/NV charger cable connected.

Bug 1516392

Change-Id: I14e44852760f046884fd066ffcdfff86b36871c1
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/416958
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agousb: gadget: tegra: reset extcon state in cable disconnect
Rakesh Bodla [Thu, 12 Jun 2014 11:44:29 +0000 (17:14 +0530)]
usb: gadget: tegra: reset extcon state in cable disconnect

For QC2.0 charger we set two cable types. Resetting the
extcon state during cable disconnect so that all the
cables types are cleared.

Bug 200011709

Change-Id: I3e5bf896869045f5eefb68723411abbc864ae76d
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/422715
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agotn8: Make backlight nonlinear
Aly Hirani [Tue, 3 Jun 2014 21:33:21 +0000 (14:33 -0700)]
tn8: Make backlight nonlinear

As per the request, we would want to make the backlight nonlinear in
progression. Do this as a step in the kernel before applying SD.
The curve implemented is a simple piecewise linear function with
a slow rise from 0 to 166 and a linear function with a faster rise
from 166 to 255.

Bug 200008701

Change-Id: I9dfdf17c448165a1b5a770a0db7f4c9beded4439
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/418526
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agovideo: tegra: dc: initialize cursor registers
Jon Mayo [Fri, 9 May 2014 18:07:17 +0000 (11:07 -0700)]
video: tegra: dc: initialize cursor registers

Cursor registers have no default state. Initialize to useful defaults.

Bug 1486452
Bug 200006001

Change-Id: Iaf07bdd2c8d40ef1bae881da68a809d335a0377f
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/407682
(cherry picked from commit 4ded39f37b849849ebca44ab46e2762d71872102)
Reviewed-on: http://git-master/r/413477
(cherry picked from commit ccfde89b1842f2a2b5b614064df7b8a7d70954f9)
Reviewed-on: http://git-master/r/417227
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agoarm: tegra: enable SMMU for SDMMC4 device
R Raj Kumar [Wed, 4 Jun 2014 10:32:56 +0000 (16:02 +0530)]
arm: tegra: enable SMMU for SDMMC4 device

Enabled SMMU for SDMMC4 (eMMC) device

Bug 1374895

Change-Id: I88d8ad913c2763599353d99e9034598fa7f76441
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/418884
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agostaging: iio: light: ltr659ps: set pulse count 15
Sri Krishna chowdary [Fri, 30 May 2014 15:15:08 +0000 (20:45 +0530)]
staging: iio: light: ltr659ps: set pulse count 15

Set pulse count to 15 as recommended by HW team.

Bug 200003335

Change-Id: Ifc7f6284fe7d491c3533a11edb79431359e0d382
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/417148
(cherry picked from commit 8f8c2d9c8d8f531073573ffb278a774018a5009b)
Reviewed-on: http://git-master/r/422170
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agoARM: tegra: Restore old cpu.emc client
Sai Gurrappadi [Tue, 10 Jun 2014 18:43:26 +0000 (11:43 -0700)]
ARM: tegra: Restore old cpu.emc client

This is a further revert of bd65c015c97c87454e9dc0988485cd4191fe4d0c

It fully brings back EMC clock client that allows for coupling CPU and
EMC frequencies. This is being done in order to always enforce the
static emc_to_cpu ratio as it can potentially improve UX by setting
higher EMC frequencies thereby reducing memory latency seen by code
on the CPU.

Bug 1522387

Change-Id: Iedebc4d7d4ebb11ed210a87754b0452be59766fd
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/421772
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
9 years agostaging: iio: light: iqs253: cancel workqueue
Sang-Hun Lee [Mon, 9 Jun 2014 22:45:38 +0000 (18:45 -0400)]
staging: iio: light: iqs253: cancel workqueue

 - Any lingering workqueue must be cancelled
   during the shutdown, to prevent them from running
   during a shutdown
 - In most cases, they are harmless, but they will
   trigger a warning if the i2c bus is shutdown during the
   shutdown as done on some platforms

Bug 1522172

Change-Id: I465e19ef793cf72f5f533b0e2c9e9f3e837c2133
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/421345
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agostaging: iio: light: add shutdown
Sang-Hun Lee [Mon, 9 Jun 2014 21:48:18 +0000 (17:48 -0400)]
staging: iio: light: add shutdown

 - Depending on the platform, i2c bus may be shutdown
   as we shutdown the systme
 - In such a case, any lingering workqueue would slowdown
   the system, as the access will be made to the i2c bus
   which has been shutdown
 - To mitigate the above, cancel all workqueue jobs as we shutdown

Bug 1522172

Change-Id: Idebab822c0ef8ddad7352ef25a546acb3f3e5870
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/420889
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Sri Krishna Chowdary <schowdary@nvidia.com>
9 years agotn8: modem: reduce timeout wakelock to 1s
Robert Shih [Thu, 5 Jun 2014 05:25:09 +0000 (13:25 +0800)]
tn8: modem: reduce timeout wakelock to 1s

1. The kernel resume (from LP0 to the time when app tasks start unfreezing) is shorter than 200ms.
When app tasks start running, the RIL/framework/app will hold their wake lock to block suspending.
Furthermore, tegra_usb_modem_post_remote_wakeup() in tegra_usb_modem_power.c will hold
another timeout (1 second) wake lock, which should start later than the wake lock "tegra-ehci.1".
So, 1s timeout for wake lock "tegra-ehci.1" in kernel should be enough.
2. Per our experience, many system resume/suspend (with screen off) caused by remote wake-up is
able to finish in 1.5 seconds, or even shorter. So, 3 seconds timeout could cause more unnecessary power consumption.

bug 1519797

Change-Id: If7b20ea490007e1df0639b4ece8f32fdb3fa757e
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/419279
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agogpu: nvgpu: Turn on scaling when powered
Allen Yu [Mon, 9 Jun 2014 09:37:22 +0000 (17:37 +0800)]
gpu: nvgpu: Turn on scaling when powered

This patch reorders scaling resume to happen always when
we power on the GPU, so as to balance the scaling suspend
when we power off GPU.

bug 200010911

Change-Id: I9fde817fbf9fed7d90c48ea06050db4b82e670a8
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/420607
Reviewed-by: Emad Mir <emir@nvidia.com>
Tested-by: Emad Mir <emir@nvidia.com>
9 years agoARM: 7840/1: LPAE: don't reject mapping /dev/mem above 4GB
Sergey Dyasly [Tue, 24 Sep 2013 15:38:00 +0000 (16:38 +0100)]
ARM: 7840/1: LPAE: don't reject mapping /dev/mem above 4GB

With LPAE enabled, physical address space is larger than 4GB. Allow mapping any
part of it via /dev/mem by using PHYS_MASK to determine valid range.

PHYS_MASK covers 40 bits with LPAE enabled and 32 bits otherwise.

Bug 1474982

Reported-by: Vassili Karpov <av1474@comtv.ru>
Signed-off-by: Sergey Dyasly <dserrg@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit 3159f372354e8e1f5dee714663d705dd2c7e0759)

Change-Id: I37133a68642b5856c358486bddacc7c4383ea812
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/417795
(cherry picked from commit 032975cbe364d06754c3b5e2788313ea07c38ac7)
Reviewed-on: http://git-master/r/419640
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoARM: dt: fix 64 bit mem size in E1791
Ishwarya Balaji Gururajan [Thu, 29 May 2014 00:39:45 +0000 (17:39 -0700)]
ARM: dt: fix 64 bit mem size in E1791

update address/size of memory-controller
node to 64 bit

Bug 1396089

Change-Id: I1d83959edf990a7d2a179152ac07aa9c87ff903c
Signed-off-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-on: http://git-master/r/416393
(cherry picked from commit 94712ed590f1ec9ce3d5f2a4f205e40f738b4f22)
Reviewed-on: http://git-master/r/418502
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agonvdumper: add nvdumper support in kernel
Yifei Wan [Fri, 6 Jun 2014 01:36:58 +0000 (20:36 -0500)]
nvdumper: add nvdumper support in kernel

Change-Id: Ib59f88b171f12efc28985f42cf3d349374a371b8
Signed-off-by: Yifei Wan <ywan@nvidia.com>
Reviewed-on: http://git-master/r/419803
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mark Peters <mpeters@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agogpu: nvgpu: flush write before unlocking
Sang-Hun Lee [Tue, 3 Jun 2014 20:28:45 +0000 (13:28 -0700)]
gpu: nvgpu: flush write before unlocking

 - gk20a_enable is reading the clock after unlocking the spinlock
   to flush any previous write
 - This could lead to a race if any write afterwards assume
   the write has been completed already
 - Read the clock before unlocking to ensure all previous writes
   have been completed before letting any other thread use gk20a

Bug 200007520

Change-Id: I737fbbe825c68b25ca256c4a8ee2b99aa8baf0f5
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/418485
(cherry picked from commit 2aed542a719caa69620766bf2dceefe50626c189)
Reviewed-on: http://git-master/r/420329
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agogpu: nvgpu: print intr code for class error
Deepak Nibade [Thu, 5 Jun 2014 12:37:57 +0000 (18:07 +0530)]
gpu: nvgpu: print intr code for class error

Print interrupt code and channel id for unhandled gr class error.

Bug 200010403

Change-Id: Iedceaf4b8b6363b26f1836256875fb9b5c43eded
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/419566
(cherry picked from commit 080b9a9e7ea5365ed3ace05d4f117095a8416d19)
Reviewed-on: http://git-master/r/419990
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
9 years agopinctrl: fix a memleak when freeing maps
Linus Walleij [Mon, 22 Jul 2013 23:43:20 +0000 (01:43 +0200)]
pinctrl: fix a memleak when freeing maps

We forgot to free the node itself when free:ing a map.

Change-Id: I6d946f66f8b0f3d4fbe81e6bfdfe79ce57cf7ef6
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit db6c2c69c27f2c4fd1e2a1c6b0b1119b1e885f8a)
Signed-off-by: Allen Yu <alleny@nvidia.com>
Reviewed-on: http://git-master/r/416674
Reviewed-on: http://git-master/r/418876
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agotegra: hdmi: check dc enabled during recheck EDID
Anshuman Nath Kar [Fri, 30 May 2014 02:17:40 +0000 (19:17 -0700)]
tegra: hdmi: check dc enabled during recheck EDID

Bug 200002012

Change-Id: Idff34c8acf7aeb409571573838bcf41710cb8434
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/416881
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agommc: tegra: Ignore err if dvfs overrides are disabled
Pavan Kunapuli [Tue, 13 May 2014 11:22:42 +0000 (16:52 +0530)]
mmc: tegra: Ignore err if dvfs overrides are disabled

If dvfs overrides are disabled, continue tuning execution by
treating the dvfs override API return values as expected.

Bug 1516198

Change-Id: I8d27969029ce7b318d23c227e8dfb19793282fea
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/413118
(cherry picked from commit 71edeee1a98a8dc7474781689b0859a32f5aca80)
Reviewed-on: http://git-master/r/416564
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
9 years agonet: wireless: bcmdhd: Remove CMD_COUNTRY private command
Mohan T [Sat, 31 May 2014 12:00:34 +0000 (17:30 +0530)]
net: wireless: bcmdhd: Remove CMD_COUNTRY private command

Since we are using global country code Q2 and reg revision 87
in firmware. Which will support for ALL countries remove the
CMD_COUNTRY private command.

Bug 1515052

Change-Id: Ibd49f215c6f1d46525ac88fd83035e58bc898cd4
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/417398
(cherry picked from commit 38e7bb5282ed8576d3e37aa62bb8802aa6f80b36)
Reviewed-on: http://git-master/r/420109
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
9 years agogpu: nvgpu: add accessor for gr_class_error
Deepak Nibade [Thu, 5 Jun 2014 11:29:29 +0000 (16:59 +0530)]
gpu: nvgpu: add accessor for gr_class_error

Add accessors to read class error code from
NV_PGRAPH_CLASS_ERROR

Bug 200010403

Change-Id: Ia99f50e264f9b8aa93f99994e52424418a2e4f74
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/419565
(cherry picked from commit d9f93d0c9a2aec552cce14147f3f6feb318f330e)
Reviewed-on: http://git-master/r/419989
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agogpu: nvgpu: Rewrite PMU boot-up sequence
Terje Bergstrom [Wed, 14 May 2014 12:22:49 +0000 (15:22 +0300)]
gpu: nvgpu: Rewrite PMU boot-up sequence

Rewrite PMU boot sequence as a state machine. At PMU power-up send
initial messages, and reset state machine. At each reply from PMU,
do the next stage of PMU boot and set state.

As now PMU and FECS boot are independent, we need to ensure engine
idle before saving ZBC.

Change-Id: I1ea747ab794ef08f1784eeabfdae7655d585ff21
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/419894

9 years agogpu: nvgpu: Initialize FECS explicitly on recovery
Terje Bergstrom [Wed, 14 May 2014 12:22:00 +0000 (15:22 +0300)]
gpu: nvgpu: Initialize FECS explicitly on recovery

Instead of calling second phase of PMU boot sequence, initialize FECS
directly.

Change-Id: I7f9de0c5ec42049033839d244979f3f3daabf317
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/410204
(cherry picked from commit 5a631edd5cf05a4b8c5e8b049256a0e190964859)
Reviewed-on: http://git-master/r/416209
Reviewed-by: Automatic_Commit_Validation_User
9 years agoARM: tegra: TN8:handle touch 3v3 parent rail overcurrent
Venkat Reddy Talla [Fri, 6 Jun 2014 09:20:59 +0000 (14:50 +0530)]
ARM: tegra: TN8:handle touch 3v3 parent rail overcurrent

When touch rail get enabled, there is chances of parent rail to be
short and drop the voltage output of parent rail to be 0V. This can
cause the malfunctioning of system which depends on parent rail.

Add the SW-WAR for enabling touch rail on P1761-A04 designs.
- Enable LDO3 (3.3V) to load switch output.
- Enable load switch and then disable parent rail.

Bug 1494740

Change-Id: I5d489f655d9f153f1a22bcc620226e25e9877bee
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/419946
Reviewed-by: Chas Inman <chasi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Chas Inman <chasi@nvidia.com>
9 years agovideo: tegra: host: gk20a: remove pg_init_mutex
Prashant Malani [Tue, 18 Mar 2014 19:06:02 +0000 (12:06 -0700)]
video: tegra: host: gk20a: remove pg_init_mutex

There is a scenario where the pg_init_mutex tries to ge acquired from a
nonstalling threaded ISR. This leads to timeouts while trying to update
the zbc table. Since deferred pg_init is disabled for now, we can remove
the mutex.

Bug 1459850
Bug 1458353

Change-Id: Iba955c5b86f2c7aa509a8f2a537fcacf037f74e9
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/383224
(cherry picked from commit 0635f15fdbdafc200a3f86f49e7e2243ea86c82f)
Reviewed-on: http://git-master/r/419893
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
9 years agoARM: Tegra: TN8: Set vdd_rtc to static 0.95V
Hunk Lin [Fri, 6 Jun 2014 03:25:58 +0000 (11:25 +0800)]
ARM: Tegra: TN8: Set vdd_rtc to static 0.95V

It is from characterization team's request since there is no rtc tracking
in TN8.

Bug 1519080

Change-Id: Ic773aac0bcd443723dba498488a8b5864db1b36b
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/419840
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>