]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/log
sojka/nv-tegra/linux-3.10.git
9 years agoARM: arch_timer: Enable PL0 access to the CNTVCT
Neil Gabriel [Wed, 11 Jun 2014 22:41:44 +0000 (17:41 -0500)]
ARM: arch_timer: Enable PL0 access to the CNTVCT

Enable usermode access to the generic virtual counter.

Change-Id: Id033d12690d1693e67cf75ce7017fd4a24a18b45
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/422391
(cherry picked from commit 49e21cf475a62c2c6c38f6b2460579834ad62b6b)
Reviewed-on: http://git-master/r/453554
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agodrivers: clocksource: add CPU PM notifier for ARM architected timer
Sudeep KarkadaNagesha [Fri, 23 Aug 2013 14:53:15 +0000 (15:53 +0100)]
drivers: clocksource: add CPU PM notifier for ARM architected timer

Few control settings done in architected timer as part of initialisation
can be lost when CPU enters deeper power states. They need to be
restored when the CPU is (warm)reset again.

This patch adds CPU PM notifiers to save the counter control register
when entering low power modes and restore it when CPU exits low power.

Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Change-Id: I0bad683961e4b72835ad40edf2c9ac9e0f78fad0
Reviewed-on: http://git-master/r/350844
(cherry picked from commit 1dd60414e4839c11eb99dbbd071b8accdaa3dafd)
Reviewed-on: http://git-master/r/453553
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agobcmdhd: update cfg layer with active channel list
bibhayr [Fri, 11 Jul 2014 20:30:43 +0000 (13:30 -0700)]
bcmdhd: update cfg layer with active channel list

Update the cfg layer with active channel list after
associating to AP. Currently cfg layer gets updated
only during driver initialization. If some other
channel is passive during that time, it will never
get updated to active. Also, this update should be
done after every scan, but this should take care of
at least to update the AP association channel to be
active so that the p2p GO can be created on the APs
channel. Cfg layer does not check the passive channel
list for wlan0 connection but it checks the passive
channel for p2p GO creations.

Bug 200015567
BuG 200020740

Change-Id: Id42836917ca60aff0ae3a2115d7ee90ba017ee9f
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/436981
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agobcmdhd: null check for wl->p2p
Om Prakash Singh [Mon, 28 Jul 2014 08:15:03 +0000 (13:45 +0530)]
bcmdhd: null check for wl->p2p

Bug 200024287
Change-Id: Ideb514aeb37250431a6fc4c064c95fbdbe498936
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/448019
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
9 years agobcmdhd: ensure work completion before freeing
Sang-Hun Lee [Wed, 30 Jul 2014 00:53:48 +0000 (17:53 -0700)]
bcmdhd: ensure work completion before freeing

Problem description:
 - wl_dealloc_netinfo would free allocated wireless_dev structures, which has
   work_struct for wdev_cleanup_work
 - If there is any job scheduled for wdev_cleanup_work and if it
   is scheduled after kfree of its parent struct, the result is undefined
 - But simply waiting for wdev_cleanup_work completion in
   wl_cfg80211_netdev_notifier_call would result in a dead lock, as wdev_cleanup_work
   and cfg80211_event_work both use the same workqueue. cfg80211_event_work
   may ultimately call wl_cfg80211_netdev_notifier_call

Fix description:
 - Separate the detach of an interface from the deallocation of an interface
 - Upon a detach, only remove the interface, and schedule a deallocation of it

Bug 1533639

Change-Id: I865907243ac370ab5932fb1d5ec7ce8c83279baf
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/448637
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agovideo: tegra: host: Register VI isomgr on request
Sudhir Vyas [Mon, 24 Mar 2014 15:34:51 +0000 (21:04 +0530)]
video: tegra: host: Register VI isomgr on request

Register VI as isomgr client when the camera user
driver has requested for memory BW requirements.
Currently it is being done in probe only, which
may be unnecessary for the usecases where VI is
not the memory client.

Bug 1485474

Change-Id: I9ae41e299bf0a8ef21ed94d44a57829cf70d11e2
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
(cherry picked from commit 279b41ca6155d3e6b17c09a9418a6e1bbdc57889)
Reviewed-on: http://git-master/r/449588
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 agoov5693: fix fuse ID read
Philip Breczinski [Fri, 25 Jul 2014 23:58:24 +0000 (16:58 -0700)]
ov5693: fix fuse ID read

Add 150us delay to start of fuse ID read to ensure sensor is ready
to communicate.

Bug 200005241

Change-Id: Ie9be9f22419e3c16952bde44ce1e289f48b7bba2
Signed-off-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/447834
(cherry picked from commit df3e4528e5b2f8f96a658c8b865db1e077105d3d)
Reviewed-on: http://git-master/r/448948
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Schalig <dschalig@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agostaging: iio: light: iqs263: synchronize driver
Shylender Gaddamwar [Tue, 8 Jul 2014 21:14:32 +0000 (14:14 -0700)]
staging: iio: light: iqs263: synchronize driver

-support iqs263 read/write.

Change-Id: I47c36978037af6fabedd01b319b1645ce73d095e
Signed-off-by: Shylender Gaddamwar <sgaddamwar@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/435874
(cherry picked from commit ae243d22c899302bba08990598c3c0a13ade0d7b)
Reviewed-on: http://git-master/r/440489
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agoARM: Tegra: TN8: Correct vana mapping
Sang-Hun Lee [Wed, 16 Jul 2014 04:22:13 +0000 (00:22 -0400)]
ARM: Tegra: TN8: Correct vana mapping

The i2c address of the rear camera sensor has changed

Bug 200016507

Change-Id: I9d6794b2efe81c96286d4ca305731492f9062961
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/438554
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>
9 years agobcmdhd: wait for cfg cleanup before unregistering
bibhayr [Fri, 18 Jul 2014 22:23:42 +0000 (15:23 -0700)]
bcmdhd: wait for cfg cleanup before unregistering

If the p2p device is unregistered before the cfg
cleanup work item is scheduled then, the wdev
struct is corrupted and can cause the kernel panic.
wait for the work item to finish before freeing

Bug 1533639

Change-Id: Ib8729a985d2ed14ec062f98a9a8bcebacf90f8fc
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/439979
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agostaging: ozwpan: Cancel hrtimer before expiry set
Sai Gurrappadi [Fri, 18 Jul 2014 06:46:56 +0000 (23:46 -0700)]
staging: ozwpan: Cancel hrtimer before expiry set

Currently oz_timer_add sets the new expiry time before calling
hrtimer_start_expires where the timer is actually updated in the
timerqueue.

However, this update to expiry time is racy because the the
hrtimer_set_expires call is being performed from a softirq or a thread's
context. The CPU could recieve a hrtimer_interrupt before the
hrtimer_start_expires call but after hrtimer_set_expires.

This would leave the hrtimer with a new expiry value but with the same
position in the rbtree which a subsequent hrtimer_interrupt could use
to perform its timerqueue add/del operations with. Leaving the rbtree
in this stale/bad state causes some timers to never get serviced.

Fix this by first removing the timer from the timerqueue by calling
hrtimer_cancel and then updating the expiry time.

Bug 200016188

Change-Id: Ib8acb9f2977580e077bbe968a32c6deba992d000
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/439729
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
9 years agoHID: hidraw: check disconnect before get raw report
Vinayak Pane [Thu, 17 Jul 2014 03:27:23 +0000 (20:27 -0700)]
HID: hidraw: check disconnect before get raw report

Bug 200021849

Change-Id: I4096a25b251a351eeae627a776683adfec7dd197
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/439070
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
9 years agomedia: platform: tegra: ov5693: fix sysedp registration
Timo Alho [Mon, 26 May 2014 13:45:05 +0000 (16:45 +0300)]
media: platform: tegra: ov5693: fix sysedp registration

Register sysedp consumer with actual device name, not with generic
'ov5693' name. This allows more than one device to exists in the
system.

Bug 200007892
Bug 200021368

Change-Id: I2c85f3d1f483afb75df2b16a4d5808fdd8f3d9ad
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/415014
(cherry picked from commit d0a2342b78cb93ac858932cb2973f87a33417830)
Reviewed-on: http://git-master/r/438112
Reviewed-by: Steve Rogers <srogers@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
9 years agonet: wireless: bcmdhd: reduce tasklet priority
Sang-Hun Lee [Fri, 11 Jul 2014 18:05:28 +0000 (14:05 -0400)]
net: wireless: bcmdhd: reduce tasklet priority

In case there is a lot of workload, wifi's bottom half handler can
starve the system critical threads such as the watchdog and CPU workload
monitor triggering a system reboot

Lower the priority of wifi tasklets to match the other bottom half handlers
priority

Bug 1526837

Change-Id: Ie1d592b7d445f22a79a9f0d5e50f61965d695888
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/432423
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agousb: gadget: tegra: conditionally update LP0 connect type
Rakesh Bodla [Tue, 15 Jul 2014 15:26:07 +0000 (20:56 +0530)]
usb: gadget: tegra: conditionally update LP0 connect type

After driver resume sometimes connect_type_lp0 is not
set to NONE, due some tasks didn't get scheduled.
In this case retain the value, so that correct
value will be preserved.

Bug 200017175

Change-Id: I8f2400675a8ced063a182c1069c586dfb9cc756f
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/438218
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
9 years agoALC5639: Remove usage of the one-bit-depop feature.
Rene Houle [Wed, 16 Jul 2014 03:33:24 +0000 (20:33 -0700)]
ALC5639: Remove usage of the one-bit-depop feature.
Bug 200020621

Change-Id: Ib0f81cec748863d4a09b163cc4ff6208e372c59f
Signed-off-by: Rene Houle <rhoule@nvidia.com>
Reviewed-on: http://git-master/r/438476
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
9 years agostaging: iio: palmas-adc: convert adc conversion to polling based.
Laxman Dewangan [Thu, 10 Jul 2014 10:44:38 +0000 (16:14 +0530)]
staging: iio: palmas-adc: convert adc conversion to polling based.

Convert ADC conversion to polling from interrupt as the
conversion takes 113us.

bug 1532624

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

9 years agopower: lc709203f: decouple gauge report from query
Sang-Hun Lee [Mon, 14 Jul 2014 00:09:57 +0000 (20:09 -0400)]
power: lc709203f: decouple gauge report from query

battery_gauge_report_battery_soc may call back one of lc709203f functions

If the mutex lock is still held, this sequence will dead lock

Bug 200020663

Change-Id: Ic55c630333ec2a4797510388fa77642b103e1367
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/437549
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agoalc5639 : Adding Realtek update for reducing pops on jack detection.
Rene Houle [Wed, 2 Jul 2014 01:53:20 +0000 (18:53 -0700)]
alc5639 : Adding Realtek update for reducing pops on jack detection.
Also adding Realtek driver support for their register access tool.
Bug 1529295

Change-Id: I996c95762231adea4ca09e70cd92c8075beee744
Signed-off-by: Rene Houle <rhoule@nvidia.com>
Reviewed-on: http://git-master/r/433415
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>
9 years agoRevert "bq2419x: dump stack backtrace when WDT expired."
Robert Shih [Fri, 11 Jul 2014 11:31:45 +0000 (19:31 +0800)]
Revert "bq2419x: dump stack backtrace when WDT expired."

This reverts commit 876d855741d5aa7fce49d79ffb703ad71677e388.

Change-Id: I92b6e266ff60e1a251e88bce3c6376532b9f7d6c
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/437141
Reviewed-by: Mitch Luban <mluban@nvidia.com>
9 years agoAdd driver command MKEEP_ALIVE
Srinivas Ramachandran [Fri, 11 Jul 2014 02:34:40 +0000 (19:34 -0700)]
Add driver command MKEEP_ALIVE

Add the driver command MKEEP_ALIVE to send a periodic IP based keep alive
packet from the firmware to avoid deauth from access point due to inactivity.

Bug 1528060

Change-Id: I6836b7d19ed617d216391e318e9cd5b93e1e0724
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/436944
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
9 years agostaging: iio: adc: palmas: ADC convertion error handling
Jinyoung Park [Thu, 10 Jul 2014 14:26:57 +0000 (23:26 +0900)]
staging: iio: adc: palmas: ADC convertion error handling

Added error handling for ADC conversion.

Bug 200019496

Change-Id: I94785687e69596e5e8e0f5a7ad79a85a1766acdf
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/436690
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agousb: gadget: tegra: add debug info related extcon
Rakesh Bodla [Thu, 10 Jul 2014 12:43:55 +0000 (18:13 +0530)]
usb: gadget: tegra: add debug info related extcon

Adding the extcon notification status debug info
in driver.

Bug 200017175

Change-Id: I1a2f0d6d9a8518ed4119a51443174ad802b18b9d
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/436639
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agostaging: iio: adc: palmas: Fix a wrong return
pchiang [Mon, 12 May 2014 09:52:10 +0000 (17:52 +0800)]
staging: iio: adc: palmas: Fix a wrong return

Fix a wrong return from palmas_gpadc_start_convertion

Bug 1512199

Change-Id: I7be181554288719550786b568088b1390fcce0c3
Signed-off-by: pchiang <pchiang@nvidia.com>
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/408117
(cherry picked from commit 765c9e47862d92320ec06413a0999d16038a2573)
Reviewed-on: http://git-master/r/436689
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

9 years agothermal: check return value of update_temperature
Jinyoung Park [Thu, 26 Jun 2014 00:48:58 +0000 (09:48 +0900)]
thermal: check return value of update_temperature

Checking return value of update_temperature.
If return value is not Zero, it does't handle thermal trips.

Bug 200011588
Bug 200015248

Change-Id: I084e7c53ee132b33fa377d96f6c9e70f26529ffe
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/428636
(cherry picked from commit d7254186c9a2a6aeaf360d853c332a33ef9f0ff8)
Reviewed-on: http://git-master/r/436688
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
9 years agothermal: check tz device is registered
Jinyoung Park [Tue, 17 Jun 2014 08:03:51 +0000 (17:03 +0900)]
thermal: check tz device is registered

Checking thermal zone device whether it is registered or not.

Bug 200011588

Change-Id: I377583f887d3dbe8258daa46d777daa6337b192f
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/424088
(cherry picked from commit 397ce28d1841853103bc028080dfb00656211b9e)
Reviewed-on: http://git-master/r/427501
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
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>