4 years agosound: add usb_device_ids rel-roth-r5 daily-2014.08.04.1_rel-roth-r5-partner daily-2014.09.23.0_rel-roth-r5-partner
Anshul Jain [Thu, 31 Jul 2014 18:21:58 +0000]
sound: add usb_device_ids

Add MODULE_DEVICE_TABLE again, this was accidentally deleted in
previous commit.

Change-Id: I5f9a58a7718a8249272c5b79080d8300596b4cec
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/449398
Reviewed-by: Jason Roche <jroche@nvidia.com>

4 years agoHID: usbhid: set interface data null
Vinayak Pane [Sat, 5 Jul 2014 02:08:07 +0000]
HID: usbhid: set interface data null

Set USB interface data to null at disconnect.

Bug 200018305
Bug 200024051

Change-Id: I65aec8c97f674faef0ebd9ed5916f28e22604da6
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/449265
Tested-by: Yunfan Zhang <yunfanz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoarm:tegra:thor: Sound debug print fix
David Dastous [Wed, 30 Jul 2014 22:31:49 +0000]
arm:tegra:thor: Sound debug print fix

Debugging message should be listed under snd_printdd

Bug 200020654

Change-Id: I934d4de870e38dff80bf1d0731e9f66d8e39812b
Signed-off-by: David Dastous <ddastoussthi@nvidia.com>
Reviewed-on: http://git-master/r/449022
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

4 years agosound: Add blacklist for audio devices
Jun Yan [Tue, 25 Mar 2014 02:10:32 +0000]
sound: Add blacklist for audio devices

Prevent specified audio devices from sending
uevents upon connection/disconnection.

Bug 1474213

Change-Id: I532968ed9717dc18db62671deedd60bb4a38463e
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/385931
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>
(cherry picked from commit 553636416a0700b354385d7a508d67653814272d)
Reviewed-on: http://git-master/r/449065
Reviewed-by: Jason Roche <jroche@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoarm:tegra:thor: Set dc to stop on hdmi close
David Dastous [Fri, 25 Jul 2014 19:47:01 +0000]
arm:tegra:thor: Set dc to stop on hdmi close

HDMI needs to set DC to stop when closing, otherwise there is a flicker
upon shutdown

Bug 1448296

Change-Id: I93d14517e2b2ec77b0a6730a5c40930cd71f4327
Signed-off-by: David Dastous <ddastoussthi@nvidia.com>
Reviewed-on: http://git-master/r/447733
Tested-by: Anshuman Kar <anshumank@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: Cancel hrtimer before expiry set
Sai Gurrappadi [Fri, 18 Jul 2014 06:46:56 +0000]
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>
(cherry picked from commit bad282f7a9bf0cdbef32a6353e1a0154277eaaa7)
Reviewed-on: http://git-master/r/440902
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
(cherry picked from commit aa4e6917c9a17ddfed3f14d1128f47d373e85097)
Reviewed-on: http://git-master/r/441373

4 years agousbaudio: Update switch driver to report dig. dock
Jason Roche [Fri, 11 Jul 2014 07:55:07 +0000]
usbaudio: Update switch driver to report dig. dock

The current switch state output defaults to analog dock
which does not work well with the audio policy and is
not representative of what device is connected, which
is the digital dock.

Bug 1534551
Bug 200006932
Bug 200020653
Bug 200020650

Change-Id: I40d91d79088d600cae1ff68ad98bf5693af507b3
Signed-off-by: Jason Roche <jroche@nvidia.com>
(cherry picked from commit 647145df96d68688bac268c1ecb463d9a6c96f86)
Reviewed-on: http://git-master/r/439922
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agocpufreq: cancel work before free policy data
Louis Li [Fri, 11 Jul 2014 07:55:07 +0000]
cpufreq: cancel work before free policy data

If __cpufreq_remove_dev is called right after handle_update is
scheduled, it will cause kernel crashes at process_one_work.

Bug 200018349
Bug 200020039

Change-Id: I7521163977881493f79f83664b3dd7db4f81f257
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/437036
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agobcmdhd: fix NULL pointer in setting IEs
Allen Yu [Sun, 6 Jul 2014 12:10:15 +0000]
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
(cherry picked from commit 79936ac3b2a0069af2b55ec84ed44c86fc8fce17)
Reviewed-on: http://git-master/r/435737
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: reorder WARN_ON in oz_pd_put
Allen Yu [Sat, 5 Jul 2014 03:55:38 +0000]
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
(cherry picked from commit 42a76c8f61b33c73244f5114126e8f9e6bf72934)
Reviewed-on: http://git-master/r/435736
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: flush workqueue
Vinayak Pane [Mon, 30 Jun 2014 07:41:10 +0000]
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
(cherry picked from commit 0011da3e0ed4b8c73992ff630ee8a2972ef8ba33)
Reviewed-on: http://git-master/r/435735
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: Do not allow p2p calls after netdev unreg
Aly Hirani [Fri, 4 Jul 2014 19:04:59 +0000]
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
(cherry picked from commit 3f569103bd34a449afc45ded980292bfb412fdd8)
Reviewed-on: http://git-master/r/435734
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoHID: usbhid: protect hid disconnect flag
Vinayak Pane [Fri, 4 Jul 2014 02:03:49 +0000]
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
(cherry picked from commit df6b2b50b8e0f4db0609bd5c3388225243038778)
Reviewed-on: http://git-master/r/435733
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: check NULL pointer
Eric Chuang [Fri, 4 Jul 2014 01:27:30 +0000]
bcmdhd: check NULL pointer

Bug 200015171

Change-Id: I7c74fcbe5bb567051b356227596b49fedb8eac57
Signed-off-by: Eric Chuang <echuang@nvidia.com>
Reviewed-on: http://git-master/r/433942
(cherry picked from commit 74c2b52d3c248246942e5590d88398d95870bf8c)
Reviewed-on: http://git-master/r/435732
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: set audio packet priority
Vinayak Pane [Thu, 3 Jul 2014 02:29:56 +0000]
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
(cherry picked from commit b4e4f79a1894b5716fc234ccf1c7224e7bdb6d42)
Reviewed-on: http://git-master/r/435731
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoHID: mask HID_CONNECT_FF flag
martin gao [Tue, 8 Jul 2014 19:29:14 +0000]
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
(cherry picked from commit 9d13c29fd07d8b15b9a5439f4a2057be8704a63d)
Signed-off-by: martin gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/435730
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: Override fw's check for flowcontrol
Aly Hirani [Wed, 2 Jul 2014 05:28:20 +0000]
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
(cherry picked from commit 98ab3dfb5c46e48a140d0888540d48b8770c9f4d)
Reviewed-on: http://git-master/r/435729
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: cancel hrtimers at oz_pd_stop
Vinayak Pane [Tue, 1 Jul 2014 02:37:20 +0000]
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
(cherry picked from commit b61d6a4da28f9b54d542e396a4a251d4ec4d9a0b)
Reviewed-on: http://git-master/r/435728
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoHID: fix bad merge in probe function
Vinayak Pane [Tue, 1 Jul 2014 02:45:45 +0000]
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
(cherry picked from commit b8970d8083860a0a3b83c872bc4c2de255b74b9b)
Reviewed-on: http://git-master/r/435727
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: check null pointer in cfg80211 callbacks
bibhayr [Mon, 30 Jun 2014 18:13:18 +0000]
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
(cherry picked from commit b33e2518db4411a7d1e89b9b116ae038ef4ed55e)
Reviewed-on: http://git-master/r/435726
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: check null pointer in cfg80211 callbacks
Mitch Luban [Sun, 29 Jun 2014 23:36:32 +0000]
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
(cherry picked from commit 99ef142403e3c7203febd174f0c533f9d72c245b)
Reviewed-on: http://git-master/r/435725
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: fix NULL pointer in stop_store
Allen Yu [Sat, 28 Jun 2014 17:43:42 +0000]
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
(cherry picked from commit d6e48d6e4b3a5b378502137f2eda68009333e144)
Reviewed-on: http://git-master/r/435724
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: fix potential race in oz_pd_destroy
Allen Yu [Fri, 27 Jun 2014 15:44:30 +0000]
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
(cherry picked from commit 8e7516dd2b71ded03e9a3556da32979d1ddba92c)
Reviewed-on: http://git-master/r/435723
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: check NULL pointer in cfg80211 callbacks
bibhayr [Sat, 28 Jun 2014 02:25:11 +0000]
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
(cherry picked from commit dbdc9e41eed97b0e9f29651f0f2c70c056165338)
Reviewed-on: http://git-master/r/435722
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: set port changed flag at disconnect
Vinayak Pane [Fri, 27 Jun 2014 02:38:03 +0000]
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
(cherry picked from commit bf3790755af42b0d6d2497061b7880078829e9c7)
Reviewed-on: http://git-master/r/435721
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: balance pd reference count
bibhayr [Thu, 26 Jun 2014 23:22:53 +0000]
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
(cherry picked from commit de30fcd8dd58c6cf046e9b95cc3f022085890ba1)
Reviewed-on: http://git-master/r/435720
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoAdd Miracast modes 5 and 6 to handle interference mitigation on blake
Srinivas Ramachandran [Wed, 25 Jun 2014 00:04:06 +0000]
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
(cherry picked from commit c608170b0603d55bb703db1f08d07925d9bc0a3f)
Reviewed-on: http://git-master/r/435719
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agonet: wireless: bcmdhd: fix rtnl_lock deadlock while AGO creation
Om Prakash Singh [Thu, 19 Jun 2014 15:25:41 +0000]
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
(cherry picked from commit 29ff3759b1352d1c7c8278b6b123c3b3317917b8)
Reviewed-on: http://git-master/r/435718
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: protect oz_pd_destroy
Vinayak Pane [Wed, 18 Jun 2014 01:45:14 +0000]
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
(cherry picked from commit 2115acceab535b3b493519c23cb076045618482b)
Reviewed-on: http://git-master/r/435717
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agostaging: ozwpan: kobject_uevent_env() from process context
S Tateno [Tue, 17 Jun 2014 14:50:57 +0000]
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
(cherry picked from commit aa608de59a483a9e868bb77b0e9460ec0eb551d6)
Reviewed-on: http://git-master/r/435716
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoRevert "staging: ozwpan: remove scheduling while atomic"
Vinayak Pane [Wed, 18 Jun 2014 20:10:50 +0000]
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
(cherry picked from commit 4cfff60103501540866dde35bd90e20fd721418f)
Reviewed-on: http://git-master/r/435715
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: update CONNECTED on WLC_E_SET_SSID event
bibhayr [Thu, 19 Jun 2014 02:35:54 +0000]
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
(cherry picked from commit d956e21d55b1c3f1d5ae832ab3e3bf8368138ea5)
Reviewed-on: http://git-master/r/435714
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agobcmdhd: fix p2p interface and wlan0 assoc race
bibhayr [Sat, 31 May 2014 01:06:49 +0000]
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
(cherry picked from commit d4e1b14483dda59bccddb1fc65535b9dc8487269)
Reviewed-on: http://git-master/r/435713
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>

4 years agoHID: hidraw: add proper error handling to raw event reporting
Jiri Kosina [Thu, 26 Apr 2012 22:56:08 +0000]
HID: hidraw: add proper error handling to raw event reporting

If kmemdup() in hidraw_report_event() fails, we are not propagating
this fact properly.

Let hidraw_report_event() and hid_report_raw_event() return an error
value to the caller.

Reported-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit b6787242f32700377d3da3b8d788ab3928bab849)

Change-Id: I4594eedebe423f1f8d6ff5272ab7b5bc4c924593
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427998
GVS: Gerrit_Virtual_Submit

4 years agoHID: export hidinput_calc_abs_res
Benjamin Tissoires [Wed, 14 Nov 2012 15:59:13 +0000]
HID: export hidinput_calc_abs_res

Exporting the function allows us to calculate the resolution in third
party drivers like hid-multitouch.
This patch also complete the function with additional valid axes.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit 37cf6e6fc34e2fca4e7c565697e7cd5c317bc316)
Change-Id: I526e9fad8ee4369b4a52f6325234a6ef22fb2bb7
Reviewed-on: http://git-master/r/427996
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoHID: hid-input: Add digitizer tilt usage support
Nikolai Kondrashov [Tue, 20 Mar 2012 14:01:32 +0000]
HID: hid-input: Add digitizer tilt usage support

Add digitizer X Tilt and Y Tilt usage support along with resolution calculation.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit b73b2da0353d15b712b27b1aed3c50856bdfc341)
Change-Id: I50d34fb9dceccad05d534898396e260ff223020c
Reviewed-on: http://git-master/r/427994
Reviewed-by: Jean Huang <jeanh@nvidia.com>
Tested-by: Jean Huang <jeanh@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agoHID: Extend the interface with report requests
Henrik Rydberg [Mon, 25 Feb 2013 10:31:43 +0000]
HID: Extend the interface with report requests

Some drivers send reports directly to underlying device, creating an
unwanted dependency on the underlying transport layer. This patch adds
hid_hw_request() to the interface, thereby removing usbhid from the
lion share of the drivers.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit e90a6df80dc45ab53d2f4f4db297434e48c0208e)

Change-Id: Ib042c9600a56d092e1548e7c12a1fddf28a0ac5b
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427991
GVS: Gerrit_Virtual_Submit

4 years agostaging: ozwpan: remove scheduling while atomic
bibhayr [Thu, 12 Jun 2014 02:44:01 +0000]
staging: ozwpan: remove scheduling while atomic

Call kobject_uevent_env() from process context.

Bug 1523226

Change-Id: I6b5569f986b179f8b804642dc3702f3a3f10d180
Reviewed-on: http://git-master/r/422536
(cherry picked from commit 3e6733bb4f62148b38af8ccbe56dc0e62a052138)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427952
GVS: Gerrit_Virtual_Submit

4 years agostaging: ozwpan: add net device notifier
Bibhay Ranjan [Tue, 18 Mar 2014 08:24:54 +0000]
staging: ozwpan: add net device notifier

add notifier function to remove p2p netdevice binding on
NETDEV_DOWN or NETDEV_UNREGISTER events

Bug 1478118
Bug 1470921

Change-Id: I6a18c65ee45affeaa6f459b656888c1c52d2fd3b
Reviewed-on: http://git-master/r/368141
(cherry picked from commit 28d61853e7f35e80ba11784eceb83acd1a870fac)
Reviewed-on: http://git-master/r/383615
(cherry picked from commit c67c144624703bc7d927c6822c24ecbc9a6b04f9)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427951
GVS: Gerrit_Virtual_Submit

4 years agostaging: ozwpan: handle race in remove binding
Vinayak Pane [Tue, 11 Mar 2014 20:28:42 +0000]
staging: ozwpan: handle race in remove binding

Make sure we remove node from list while we still
hold lock.

Bug 1474422

Change-Id: I7e23f6432f347937b1883ea086e55f5c324fc985
Reviewed-on: http://git-master/r/380497
(cherry picked from commit 466f6ed30787d16fff3f74e9412416de5b1eb0f6)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427950
GVS: Gerrit_Virtual_Submit

4 years agostaging: ozwpan: Update to latest drop
Vinayak Pane [Sat, 15 Feb 2014 02:48:07 +0000]
staging: ozwpan: Update to latest drop

Update to driver version 10.00.01.02.05

Bug 1459299

Change-Id: I73dcbb97093179c4a69b9e5cbfc4d10a16e228ec
Reviewed-on: http://git-master/r/368040
(cherry picked from commit aaa4d5c3e5e21b3a220b3103b72eee6fda0203b3)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427949
GVS: Gerrit_Virtual_Submit

4 years agoHID: remove extra kfree
Vinayak Pane [Wed, 21 May 2014 23:04:01 +0000]
HID: remove extra kfree

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

Change-Id: Idd60a597d607d5a68eedb7dd51daeca867d31125
Reviewed-on: http://git-master/r/412819
(cherry picked from commit c7b31ae80b2364903095a98a32b31a37f98900b1)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427948
GVS: Gerrit_Virtual_Submit

4 years agoHID: usbhid: add safety check at _report
Vinayak Pane [Fri, 2 May 2014 23:21:10 +0000]
HID: usbhid: add safety check at _report

Add device disconnect check in usbhid_get_raw_report()

Bug 200000762

Change-Id: Ia56a5ba746ee197a0be967f4cb09e38e44be8a8f
Reviewed-on: http://git-master/r/404650
(cherry picked from dd289fb0c9cb7f3b2f3ad37509d08591180aa60d)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427947
GVS: Gerrit_Virtual_Submit

4 years agoHID: add remove function in nv hidraw
Vinayak Pane [Wed, 14 May 2014 00:23:22 +0000]
HID: add remove function in nv hidraw

Adding remove function to remove sysfs attribute nodes
when blake is disconnected.

Bug 200003632

Change-Id: I5bf571176d2653b9f74f548775da904ef93007c8
Reviewed-on: http://git-master/r/410596
(cherry picked from commit 9904c21f42b14f3675c27ef2646eae669440bd07)
Reviewed-on: http://git-master/r/409169
(cherry picked from commit 3d1e96872a5769ff66678c0235654ade43c9ea3c)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427946
GVS: Gerrit_Virtual_Submit

4 years agodrivers: hid: Update blake driver with FF and improved UX
Ben Goska [Fri, 16 May 2014 21:14:35 +0000]
drivers: hid: Update blake driver with FF and improved UX

Make changes to the blake driver to support new features that were
enabled with new FW. This includes:
 - Force feedback enablement
 - Touchpad tweaking to improve UX
 - New hid report support

Bug 1456586
Bug 1481171
Bug 1504937
Bug 1514012

Change-Id: I8e35c9206a88a7a4911457ba500ed5be2070867f
Reviewed-on: http://git-master/r/411089
(cherry picked from commit 88ed3da9d1d5566165dd634a2e532ad1e9521b29)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427945
GVS: Gerrit_Virtual_Submit

4 years agodrivers: hid: Add modes for Blake Controller
Jun Yan [Tue, 22 Apr 2014 19:34:02 +0000]
drivers: hid: Add modes for Blake Controller

-Mouse Mode(Default on KK): trackpad is functioning as
 a mouse.

-Gesture Mode(Default on KKWT): trackpad is functioning
 as a D-pad.

-Absolute Mode: trackpad is sending absolute coordinates
 as ABS_X and ABS_Y.

-Disabled Mode: trackpad will not send anything to host.

Bug 1503137

Change-Id: Ifd007af18cafc0e1c34ba335cae9ee59e34e9e9f
Reviewed-on: http://git-master/r/399867
(cherry picked from commit 21e8fe3450c7429362dbeddca2df65893bbae575)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427944
GVS: Gerrit_Virtual_Submit

4 years agohid: hid driver for Blake Controller
Jun Yan [Fri, 11 Apr 2014 00:09:23 +0000]
hid: hid driver for Blake Controller

-Converted absolute coordinates to REL events.
-Adjusted blake joystick parameters to increase
granularity.

Bug 1487225

Change-Id: I3f90e79e5519a74d46947ef851b126cca4070719
Reviewed-on: http://git-master/r/394924
(cherry picked from commit ed1bc9b9e6f5d38476ba97f10102b602c9b92aac)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427943
GVS: Gerrit_Virtual_Submit

4 years agohid: nvidia: Map home and back in kernel
Jun Yan [Tue, 31 Dec 2013 03:24:48 +0000]
hid: nvidia: Map home and back in kernel

This is to support recovery kernel, where we
don't have Android keymapping but totally relying
on "real" KEY_HOME/KEY_BACK.

Bug 1431870

Change-Id: Ib3185bc230b65b5e25094caf3a61fa45ed2b835b
Reviewed-on: http://git-master/r/350820
(cherry picked from commit e8c64f6f7cf8280b903a6f29116b79abb1538f05)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/427942
GVS: Gerrit_Virtual_Submit

4 years agoarm: tegra: therm: avoid reg op after clk disabled
Louis Li [Thu, 19 Jun 2014 07:36:23 +0000]
arm: tegra: therm: avoid reg op after clk disabled

Register operations could be triggered via sysfs or debugfs from
userspace even after soctherm clock disabled, it would cause a device
hard hang. Added protection to avoid such a case.

Bug 200009946

Change-Id: Ic0bb57bc9a2e9fdf39e8259436f618f1f68ae4c0
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/425205
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

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

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

Bug 1352488

Change-Id: Ide6d37eeeffac9a7150fb257d30f348599794c4c
Reviewed-on: http://git-master/r/335198
(cherry picked from commit e0e74a97241af85468858cdd79fd4ba994804007)
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/381015
GVS: Gerrit_Virtual_Submit

4 years agohid: blake: enable hid-nvidia and hid-nvidia-blake
Jean Huang [Wed, 18 Jun 2014 02:04:52 +0000]
hid: blake: enable hid-nvidia and hid-nvidia-blake

Change-Id: I5d5ad15a842cf19db0bdcaf8b5265f7a4ad4bf86
Signed-off-by: Jean Huang <jeanh@nvidia.com>
Reviewed-on: http://git-master/r/424962
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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

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

Bug 200010582

Change-Id: I14aad6018f0c3fd92dad315bc3ade04c0b3982e0
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 5f0fd6105f491b8b435863e98f7e96d617e3da84)
Reviewed-on: http://git-master/r/336272
(cherry picked from commit 6d931659abae7575ee64b16e3c2f3ee8bd350dd1)
Reviewed-on: http://git-master/r/351010
(cherry picked from commit 48c98b69c93e9b16cbdf5fdab18eaab07503ff8a)
Reviewed-on: http://git-master/r/390637
(cherry picked from commit d4473956b592be08849f64120d00dd0cf42c1c1e)
Reviewed-on: http://git-master/r/419261
GVS: Gerrit_Virtual_Submit
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

Bug 200010582
Change-Id: I5e9db559d22e35d27fa1df948b70c70ed8b42115
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 3a018d2e8fc2910e5fb2077cde81cad659e2c7f9)
Reviewed-on: http://git-master/r/336271
(cherry picked from commit 71e8c301dce8ee85ee26eedb808b939084f14b45)
Reviewed-on: http://git-master/r/351008
(cherry picked from commit cab02ce05d5e1abaff049a02ee1e3630d481adeb)
Reviewed-on: http://git-master/r/390636
(cherry picked from commit b4fe053967bc207fc696b93b47b951c51ab956b5)
Reviewed-on: http://git-master/r/419260
GVS: Gerrit_Virtual_Submit
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

[net-next commit c26d6b46da3ee86fa8a864347331e5513ca84c2b]

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

Bug 200010582
Change-Id: I74764edf3d0567f5ae094b2e83484cdfe05f6098
Cc: Lorenzo Colitti <lorenzo@google.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 14e41a18688ec8d52ea3163f7898455b52365854)
Reviewed-on: http://git-master/r/336270
(cherry picked from commit 68f4261657194f51c9d954f259825c76a72a00e2)
Reviewed-on: http://git-master/r/351006
(cherry picked from commit 70ed1a2d8a3ce85a4d6b9a5b32d6daf7781cc3c0)
Reviewed-on: http://git-master/r/390635
(cherry picked from commit f3f116f515811a1d2e7c29b1163138d68451c7cc)
Reviewed-on: http://git-master/r/419259
GVS: Gerrit_Virtual_Submit
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

[backport of net-next 6d0bfe22611602f36617bc7aa2ffa1bbb2f54c67]

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

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

Caveats:

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

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

Bug 200010582

Change-Id: I0081b4654dd54b12c8f233e00e18943582aa2142
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[lorenzo@google.com: backported to 3.4]
(cherry picked from commit 1f0675844e3b63a765e5bd32bc5af051ccd951c0)
Reviewed-on: http://git-master/r/336269
(cherry picked from commit 36c1b848f9c0cbcefa6fc731f84ae6ddc3536be6)
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Reviewed-on: http://git-master/r/350988
(cherry picked from commit b6c001896edb42c15d7fa86fda14181c096aa1d0)
Reviewed-on: http://git-master/r/390634
(cherry picked from commit 14c704403517e9e934860c847f82314855c8c1d2)
Reviewed-on: http://git-master/r/419258
GVS: Gerrit_Virtual_Submit
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoipv6: introdcue __ipv6_addr_needs_scope_id and ipv6_iface_scope_id helper functions
Hannes Frederic Sowa [Fri, 8 Mar 2013 02:07:16 +0000]
ipv6: introdcue __ipv6_addr_needs_scope_id and ipv6_iface_scope_id helper functions

[net-next commit b7ef213ef65256168df83ddfbb8131ed9adc10f9]

__ipv6_addr_needs_scope_id checks if an ipv6 address needs to supply
a 'sin6_scope_id != 0'. 'sin6_scope_id != 0' was enforced in case
of link-local addresses. To support interface-local multicast these
checks had to be enhanced and are now consolidated into these new helper
functions.

v2:
a) migrated to struct ipv6_addr_props

v3:
a) reverted changes for ipv6_addr_props
b) test for address type instead of comparing scope

v4:
a) unchanged

Bug 200010582

Change-Id: I1788f1f2d3a6bd2b9e6a6afe74992d6d4a1385eb
Suggested-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 2c75b248e5243d0af7cc97522148db7415a70f8a)
Reviewed-on: http://git-master/r/336266
(cherry picked from commit dfd23e75d7f69863ec3903ea1300185a1474b56a)
Reviewed-on: http://git-master/r/350982
(cherry picked from commit edc5676cb9a9136f88db4685feb11bb87ed359cf)
Reviewed-on: http://git-master/r/390633
(cherry picked from commit 37a81c1e93fd95b20977d40915711462e309f6ec)
Reviewed-on: http://git-master/r/419257
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

4 years agoALSA: usb: Add capture sample rate control
Rahul Mittal [Wed, 12 Feb 2014 09:45:39 +0000]
ALSA: usb: Add capture sample rate control

Add capture sample rate control
Bug 1455195

Change-Id: I031ef70954d01fb5799727c470c3af48477d7459
Reviewed-on: http://git-master/r/366461
(cherry picked from commit a60b34d57cc255d7e0940907469e1c7ce48246f3)

Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Change-Id: I1382e8ff10fd56e1cc7f985412a87d85ffc5671c
Reviewed-on: http://git-master/r/418968
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

4 years agonet: wireless: bcmdhd: Wi-Fi scan fix
Dhruvaraja Kunjar [Tue, 11 Mar 2014 06:25:57 +0000]
net: wireless: bcmdhd: Wi-Fi scan fix

choose appropriate netdev to issue scan command depending on netdev
interface type.

Bug 1472982

Change-Id: I1bdf15760119f98e4b55432aef6e397b16bed1e4
Signed-off-by: Dhruvaraja Kunjar <dkunjar@broadcom.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/383635
(cherry picked from commit 359142ef5a6def496a588d2c6b48f1acbe65e8b4)
Reviewed-on: http://git-master/r/417396
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

4 years agonet: wireless: bcmdhd: fix call from ndev_to_wdev
Om Prakash Singh [Sat, 26 Apr 2014 01:47:32 +0000]
net: wireless: bcmdhd: fix call from ndev_to_wdev

dhd_idx2net can return NULL. ndev_to_wdev needs valid input

Bug  1507452

Change-Id: I2291f0a1a71b90dc799f93169ccf7eec63479f18
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/401796
(cherry picked from commit 8263b665ebb294ae5e51078a20a5ab94b9100fd9)
Reviewed-on: http://git-master/r/417395
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agobcmdhd: NULL checks for wl_cfgp2p_generate_bss_mac
Mohan T [Tue, 11 Feb 2014 10:18:40 +0000]
bcmdhd: NULL checks for wl_cfgp2p_generate_bss_mac

On concurrent P2P and STA connection stress tests observe
NULL pointer issue in wl_cfgp2p_generate_bss_mac function.
So add NULL checks for input parameters.

Bug 1455328

Change-Id: I884d1612b1df16c5acd038b8cd0f51129e5d9130
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/385779
(cherry picked from commit 21a162bc3f9eb7ec0153ff87cdbf28433fe34a6f)
Reviewed-on: http://git-master/r/417394
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

4 years agonet: wireless: bcmdhd: optimize scan time
Narayan Reddy [Fri, 9 May 2014 08:28:30 +0000]
net: wireless: bcmdhd: optimize scan time

modify DHD_SCAN_UNASSOC_ACTIVE_TIME and
DHD_SCAN_ASSOC_ACTIVE_TIME to 65 and 35 msec to save
300 msec of active scan time in non associated state and
100 msec in case of associated state.

Bug 1512114

Change-Id: I902400763d0e64ee020ff4650253e4934527c0e3
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/407443
(cherry picked from commit aa34b71e8b235eb2d05e4d2b099bcae36c7d0a02)
Reviewed-on: http://git-master/r/417380
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agotime: tegra: post-lp0 sync system to rtc time
Bitan Biswas [Thu, 22 May 2014 18:44:47 +0000]
time: tegra: post-lp0 sync system to rtc time

Ensure system time is read from rtc i.e. PMIC RTC
in case of tegra after system resume.
 - Change is applicable to all PMIC RTC drivers.

bug 1510843

Change-Id: I8194f9f4be581216d662e6a6e0d7e98a9495159c
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/413365
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Wed, 14 Aug 2013 18:54:12 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p3.40665

This version supports FIQ debugging.

Bug 1295289
Bug 1321825

Change-Id: I8f8826a2237dbd36cc2f3b6b5e5e0cebbf62d145
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/261678
(cherry picked from commit 7849fa4d90a85b89fcb3d4ff8aa9a8aa70758fab)
Reviewed-on: http://git-master/r/274415
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 544dd50e44255167539fbcb9e175af2127aec576)
Reviewed-on: http://git-master/r/370289
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

4 years agosecurity: tf_driver: update with latest TL drop
Hyung Taek Ryoo [Thu, 25 Jul 2013 17:09:01 +0000]
security: tf_driver: update with latest TL drop

This change fixes abnormal signal handling in tf driver.
Tf_daemon(user thread) is waiting for the signal when coming out of LP0,
but tf_daemon never gets the signal because tf driver can't handle the
signal properly. If there's a pending signal when coming out of LP0,
this fix clears the pending signal.

Bug 1244750
Bug 1309812

Change-Id: I7849866c7993af8716c17f6b7a06692271334664
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
(cherry picked from commit e8417cbd69041407b83502a0d168adea3d47c044)
Reviewed-on: http://git-master/r/370288
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

4 years agosecurity: tf_driver: update with latest TL drop
Hyung Taek Ryoo [Thu, 18 Jul 2013 02:02:10 +0000]
security: tf_driver: update with latest TL drop

K3.4 does not need this code maintain to PF_KTHREAD

Bug 1244750

Change-Id: I679a9483c362532af8a8705b5bcf64029d6fe9c1
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
(cherry picked from commit b22405f82c3cac3e6af80ef77681a2989786eb96)
Reviewed-on: http://git-master/r/370280
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

4 years agonet: wireless: bcmdhd: Set KSO enable sleep to 5ms
Mohan T [Wed, 30 Apr 2014 17:19:22 +0000]
net: wireless: bcmdhd: Set KSO enable sleep to 5ms

The HW time requirements to wake up the BRCM chip is
about 5ms. 3ms sleep time is too aggressive for wake up,
due to which CMD CRC is observed. So change the sleep
for KSO bit set from 3ms to 5ms.

Bug  1456241

Change-Id: Ia20b173a7730cff2356e62eb57baddb09d24a784
Signed-off-by: Mohan T <mohant@nvidia.com>
(cherry picked from commit 2c0bb76d454ee8bc53eb14c27d27a2f4b32067a3)
Reviewed-on: http://git-master/r/405834
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

4 years agomedia: nvavp: Keep BSEV/VDE clock enabled
Vandana Salve [Wed, 3 Jul 2013 14:11:13 +0000]
media: nvavp: Keep BSEV/VDE clock enabled

Keep clocks BSEV and VDE enabled for Video channel
This is needed for secure key programming which happens
on various video playback operations such as seek to 0 &
toggling full screen mode. Use stay on flag to handle
clock reference for vde/bsev clocks

bug 1307769

Change-Id: I8d0cbb91797ab17d0b671f8bdf6c3db79bd589ce
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/244770
(cherry picked from commit 4550dd38827a0a16a2bff94beacbd9ce6edfa560)
Reviewed-on: http://git-master/r/250213
(cherry picked from commit 44f9919a4ae5c60e83ce49ae4158dd1a84790cf0)
Reviewed-on: http://git-master/r/400646
Reviewed-by: Jaiprakash Nagendra Rao Khemkar <jkhemkar@nvidia.com>
Tested-by: Jaiprakash Nagendra Rao Khemkar <jkhemkar@nvidia.com>

4 years agovideo: tegra: dc: swap rotated h/v filter check
Jon Mayo [Mon, 9 Dec 2013 21:51:24 +0000]
video: tegra: dc: swap rotated h/v filter check

When determining if the filter should be disabled because input == output,
use the SCAN_COLUMN flag to select the correct dimension.

Bug 1421307
Bug 1413155
Bug 1482737

Change-Id: I19dd5575fb41d8a2b6aa3ee12022acd14232afe4
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/340037
(cherry picked from commit 08f1bbbfd9c7484d38db8f4eac3868fa0e9d22c3)
Reviewed-on: http://git-master/r/403359
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>
Tested-by: Michael Frydrych <mfrydrych@nvidia.com>

4 years agovideo: tegra: dc: fix filtering during rotation
Jon Mayo [Wed, 30 Apr 2014 17:28:03 +0000]
video: tegra: dc: fix filtering during rotation

SCAN_COLUMN works on the input, filters work on the output. Only input
settings need to be swapped when in SCAN_COLUMN mode (270/90 rotation).

This removes an inadvertant swap of H and V for the filter capabilities.

Bug 1421307
Bug 1413155
Bug 1482737

Change-Id: I53017429fe4f554517ad9e054a0116582585bb56
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/403755
(cherry picked from commit f2d3ce1df0ccd8401aab554853401b5e3afa6859)
Reviewed-on: http://git-master/r/406831
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>
Tested-by: Michael Frydrych <mfrydrych@nvidia.com>

4 years agovideo: tegra: blank dc windows during dc release
Michael Frydrych [Wed, 23 Apr 2014 06:15:07 +0000]
video: tegra: blank dc windows during dc release

Window owned by a process should be blanked when the process
releases dc or any individual window it has owned. The buffers
lastly displayed on those windows will be unpinned.

bug 1490686
bug 1467689

Change-Id: I3b3614a99b9598b7d432f08c4a95d8050a4ef99e
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/400894
(cherry picked from commit 73896aaf41ac24c5d5b31cdbcf8aff4f8f659a3e)
Reviewed-on: http://git-master/r/401403
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

4 years agomisc: tegra-profiler: add additional validations
Igor Nabirushkin [Mon, 7 Apr 2014 14:23:48 +0000]
misc: tegra-profiler: add additional validations

Unwinding: add additional validations for stack pointer
and instruction pointer.

Bug 1495325

Change-Id: Idc8b88be51925b67b8cfc5416ae2204f82f24b41
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/392927
(cherry picked from commit dd041965215e3eece1f84df65634342c7c00986d)
Reviewed-on: http://git-master/r/398057
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra-profiler: fix start hrtimer bug
Igor Nabirushkin [Mon, 7 Apr 2014 04:59:53 +0000]
misc: tegra-profiler: fix start hrtimer bug

Tegra Profiler: device sometimes hangs up when hrtimer_start wakeup
flag is enabled (especially on high frequency - more than 10 kHz).
Use __hrtimer_start_range_ns function with disabled wakeup flag
instead of hrtimer_start.

Bug 1495033

Change-Id: I2437df2ee1cd25ab7a76384ba124328d2158b44e
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/392698
(cherry picked from commit 09eefdf4bfd24372b3b9a47f8f440b297a493ea5)
Reviewed-on: http://git-master/r/398049
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra-profiler: fix backtraces
Igor Nabirushkin [Tue, 25 Mar 2014 11:09:01 +0000]
misc: tegra-profiler: fix backtraces

Tegra Profiler: fix backtraces from the kernel context.
There should be at least one user space address for such chains.

Bug 1487562

Change-Id: Ibf1f6d78b5f744f397fbcbab54e45f70b6548fbd
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/394493
(cherry picked from commit 8fddf958db67d87f5a3568d9c433d995306dc060)
Reviewed-on: http://git-master/r/398046
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra-profiler: add mixed unwinding mode
Igor Nabirushkin [Tue, 25 Mar 2014 09:42:02 +0000]
misc: tegra-profiler: add mixed unwinding mode

Tegra Profiler: do not break the chains for mixed code -
code with exception-handling tables and code with frame pointers

Bug 1487488

Change-Id: I4fdc6708ef2b4e86b354e5a9daeaa19689abb2dd
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/386241
(cherry picked from commit 320dd2b8dced7d3d4a34ddf696907459c3e1a0a8)
Reviewed-on: http://git-master/r/398042
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra-profiler: support special mappings
Igor Nabirushkin [Thu, 13 Mar 2014 09:09:17 +0000]
misc: tegra-profiler: support special mappings

Tegra Profiler: support special architecture mappings

Bug 1480667

Change-Id: I2f1bd67d99888d39bc713a5c58d295b121ad18b2
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/381407
(cherry picked from commit 75aeabcf32fb9967f74d046445a830cc606da59d)
Reviewed-on: http://git-master/r/398037
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra-profiler: Add t132 support
Igor Nabirushkin [Thu, 6 Mar 2014 08:59:39 +0000]
misc: tegra-profiler: Add t132 support

Tegra Profiler: add support for t132.

Bug 1475730

Change-Id: Id54fe70713c038757e3dfab9fa8b35682f50da73
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/378297
(cherry picked from commit a4d17db2f23bb9cd542f70a83fce8cb31a4b2565)
Reviewed-on: http://git-master/r/398027
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoarch: arm: roth: Set backlight phase in rate to 32
Ankita Garg [Mon, 31 Mar 2014 23:09:48 +0000]
arch: arm: roth: Set backlight phase in rate to 32

Some panels still show a change in brightness when booting.
This change lowers the value to 32 and tested on 3 shield
devices.

Bug 1486835

Change-Id: Ica504769d0d4725270795aa329c94023590df34a
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/394280
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ankit Pashiney <apashiney@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agousb: gadget: tegra: handle y cable properly
Rakesh Bodla [Thu, 3 Apr 2014 09:15:14 +0000]
usb: gadget: tegra: handle y cable properly

For Y cable vbus will be present so gadget
driver thinks it as normal cable. Adding
condition to distinguish between Y and
device cable. Here, if transceiver is present,
turning ON phy will be decided by OTG driver.

Bug 1490687

Change-Id: Ic1d7667fb28d5a9211f88af585f40316dc126148
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/391783
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

4 years agommc: tegra: Abort tuning if device is removed
Pavan Kunapuli [Mon, 24 Mar 2014 07:25:31 +0000]
mmc: tegra: Abort tuning if device is removed

For removable devices, always check if the device is present before
executing tuning. If the device is removed, abort tuning and return
no medium as error status.

Bug 1486268

Change-Id: Idae1590eaa956bfb1244a5b10cc0ef770f3047ef
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/385503
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

4 years agommc: tegra: Use SDR104 UHS mode for SDR50 mode
Pavan Kunapuli [Mon, 24 Mar 2014 06:36:57 +0000]
mmc: tegra: Use SDR104 UHS mode for SDR50 mode

Program SDR104 mode in the UHS_MODE_SEL register for SDR50 mode as well.
This is required for better timing and reliable transfers in SDR50 mode.

Bug 1486268

Change-Id: Iedeabbfa8d39bfcb1e111e65f09f5ca6b36bdb9b
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/385492
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

4 years agotegra: dc: move hdmi_detect_config out of dc lock
Anshuman Nath Kar [Thu, 20 Mar 2014 20:15:27 +0000]
tegra: dc: move hdmi_detect_config out of dc lock

Bug 1482982

Change-Id: I6d1e2881f10366c5fdbe08c5b8d0da38d68a41f4
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/384536
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

4 years agonet: wireless: bcmdhd: Update copyright info
Syed Asifful Dayyan [Fri, 28 Feb 2014 10:55:09 +0000]
net: wireless: bcmdhd: Update copyright info

SWWLAN-44451, RB:24767: Update copyright info
Updated copyright information of dhd_qmon files as Open Broadcom Corporation

Bug 1458617

Change-Id: Iadd25d79c110f9fbac3f1e7b2512efa27c768178
Signed-off-by: Syed Asifful Dayyan <syedd@broadcom.com>
Signed-off-by: Raghu <kraghavender@nvidia.com>
Reviewed-on: http://git-master/r/379513
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoARM: tegra: boot with performance freq governor
Sang-Hun Lee [Sat, 15 Mar 2014 01:07:35 +0000]
ARM: tegra: boot with performance freq governor

 - Set the CPU frequency governor to performance, once
   DVFS and clock initialization is done
 - Leave the initial CPU frequency governor to userspace,
   as initially CL-DVFS is not ready, thus the system is
   already at the highest frequency

Bug 1458081

Change-Id: I29f3a023513e87d3c7411bda6daaf4000517fc72
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/382164
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

4 years agovideo: tegra: avoid null deref on nvdps read
Jon Mayo [Thu, 17 Jan 2013 17:21:41 +0000]
video: tegra: avoid null deref on nvdps read

When reading nvdps sysfs file, check mode to avoid a null dereference.

Bug 1454609

Change-Id: I27c125c887e7653d953cf15b4d96d889ef36652f
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/192099
(cherry picked from commit fc2ebcb8459543814b5a0180e5fc2f222b3dc93b)
Reviewed-on: http://git-master/r/381409
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
GVS: Gerrit_Virtual_Submit

4 years agonet: wireless: bcmdhd: Modify 'disable_proptx' flag when proptx is set
Raghu [Thu, 13 Feb 2014 09:37:56 +0000]
net: wireless: bcmdhd: Modify 'disable_proptx' flag when proptx is set

When Proptx(IOV_PROPTXSTATUS_ENABLE) is set then 'disable_proptx'
flag should be set accordingly. This change is part of latest
driver 1.88.64 but missing in earlier versions.This change majorly
effects P2P certification test case 6.1.12 test case.

Bug 1430612

Change-Id: I9336bc0f368af2d9509c5c8d567e76253cf1bcac
Reviewed-on: http://git-master/r/367011
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/377126
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agobcmdhd: DELBA support for game streaming (GRID, PC2Shield roaming)
Kyeong Kim [Fri, 21 Feb 2014 21:01:52 +0000]
bcmdhd: DELBA support for game streaming (GRID, PC2Shield roaming)

Reassoc sometimes causes connection problem.
Use DELBA instead of reassoc to disable aggregation

Bug 1459545

Change-Id: I4edef1e2a6953416c8226f14a0c699f2a48de9f5
Signed-off-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-on: http://git-master/r/373060
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoinput: misc: sensor: Add mutex for the bias reading
Xiaohui Tao [Thu, 26 Dec 2013 23:49:38 +0000]
input: misc: sensor: Add mutex for the bias reading

Bug 1431360
Bug 1443158
Bug 1454609

Change-Id: Id3654deb1012d0b0826dbf2a11287a000234fd27
Reviewed-on: http://git-master/r/349890
Signed-off-by: Jordan Nien <jnien@nvidia.com>
(cherry picked from commit ea0a18696d24213fe4f8db1546b8d6ea1134f482)
Reviewed-on: http://git-master/r/377513
GVS: Gerrit_Virtual_Submit
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoRevert "net: wireless: bcmdhd: update driver to version 1.88.58"
Narayan Reddy [Thu, 27 Feb 2014 09:54:49 +0000]
Revert "net: wireless: bcmdhd: update driver to version 1.88.58"

This reverts commit 1282e9ee337d735b3c66425230d48ebb8c6573a5.
Wi-Fi batching and TDLS driver drop fails P2P-Wi-Fi concurrent
connection. Reverting the driver until we get a proper fix from
BRCM team.

Bug 1456379
Bug 1462395

Change-Id: I96c9b17ac7558ded2baa8b1342f4962cef1471a6
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/375425
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agousb: gadget: tegra: Add callback to boost_enable
Antti P Miettinen [Mon, 30 Sep 2013 10:14:58 +0000]
usb: gadget: tegra: Add callback to boost_enable

Cancel PM QoS request upon enabled to disabled
transition.

Bug 1455140

Change-Id: Iaf28d2d0daca312996e2cb1a1280769d814fd066
Reviewed-on: http://git-master/r/280232
(cherry picked from commit 9a25a04c42ed0feeb1aff1dcf696b54e122a8c65)
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/377857
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yunfan Zhang <yunfanz@nvidia.com>
Tested-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

4 years agousb: gadget: Tegra: Disable parameters for PM QoS
Antti P Miettinen [Tue, 21 Aug 2012 07:56:38 +0000]
usb: gadget: Tegra: Disable parameters for PM QoS

For testing purposes it is useful to be able to disable
CPU frequency boost.

Bug 1359445
Bug 1455140

Change-Id: Iab4363b23372055819adaf66265762fb9d1a0a3a
Reviewed-on: http://git-master/r/273043
(cherry picked from commit b929aee920208da005e4aefe51dd4fe9b5b3978a)
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/377671
Reviewed-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

4 years agomisc: tegra-profiler: unwinding: add auto mode
Igor Nabirushkin [Mon, 3 Mar 2014 07:52:22 +0000]
misc: tegra-profiler: unwinding: add auto mode

Tegra Profiler: automatic selection of unwinding
method (frame pointers or exception-handling tables)

Bug 1465331

Change-Id: I8ae85e78b32198c685aab44102f919f33a2bad55
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/377155
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agomisc: tegra_profiler: add unwinding
Igor Nabirushkin [Thu, 20 Feb 2014 16:48:48 +0000]
misc: tegra_profiler: add unwinding

Tegra Profiler: unwinding based on exception-handling tables

Bug 1465331

Change-Id: I9e8bb2eb342c5dadf82af05bb87040c0925cca1b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/377109
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Andrey Trachenko <atrachenko@nvidia.com>
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

4 years agoARM: 7809/1: perf: fix event validation for software group leaders
Will Deacon [Wed, 7 Aug 2013 22:39:41 +0000]
ARM: 7809/1: perf: fix event validation for software group leaders

commit c95eb3184ea1a3a2551df57190c81da695e2144b upstream.

It is possible to construct an event group with a software event as a
group leader and then subsequently add a hardware event to the group.
This results in the event group being validated by adding all members
of the group to a fake PMU and attempting to allocate each event on
their respective PMU.

Unfortunately, for software events wthout a corresponding arm_pmu, this
results in a kernel crash attempting to dereference the ->get_event_idx
function pointer.

This patch fixes the problem by checking explicitly for software events
and ignoring those in event validation (since they can always be
scheduled). We will probably want to revisit this for 3.12, since the
validation checks don't appear to work correctly when dealing with
multiple hardware PMUs anyway.

Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 40c366017f537354c64ea8b77d57ca81ecbd6b1d)

Bug 1454622

Change-Id: I2b490a6955480c48586679de66bfba6c213b0247
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/367602

4 years agoARM: 7527/1: uaccess: explicitly check __user pointer when !CPU_USE_DOMAINS
Russell King [Fri, 7 Sep 2012 17:22:28 +0000]
ARM: 7527/1: uaccess: explicitly check __user pointer when !CPU_USE_DOMAINS

commit 8404663f81d212918ff85f493649a7991209fa04 upstream.

The {get,put}_user macros don't perform range checking on the provided
__user address when !CPU_HAS_DOMAINS.

This patch reworks the out-of-line assembly accessors to check the user
address against a specified limit, returning -EFAULT if is is out of
range.

[will: changed get_user register allocation to match put_user]
[rmk: fixed building on older ARM architectures]

Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 8cc876def310b034ab0e0775a14d1a49472d7f5f)

Bug 1454622

Change-Id: I5802bb9426c06920e9849af560d7ea3862b6c852
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/367577

4 years agousb: gadget: otg:Modify Y-cable charging cur limit
Rohith Seelaboyina [Fri, 28 Feb 2014 04:27:43 +0000]
usb: gadget: otg:Modify Y-cable charging cur limit

Modify the OTG Y-cable charging current limit
from 500mA to 1200mA.

Bug 1375608

Change-Id: I7e6dc93e3f73dd7cc5e8ed9d9c6c8055cf7df78d
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/376435
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agomisc: tegra-profiler: reduce size of sample
Igor Nabirushkin [Mon, 27 Jan 2014 10:08:51 +0000]
misc: tegra-profiler: reduce size of sample

Tegra Profiler: reduce size of sample
magic number was removed

Bug 1447839

Change-Id: I14a23f668eab575add872daa35f27653eff643ff
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365904
(cherry picked from commit dbd2e0e3392861eeffff087b577cda0fa501a36b)
Reviewed-on: http://git-master/r/368218
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add user_mode flag
Igor Nabirushkin [Mon, 27 Jan 2014 09:38:05 +0000]
misc: tegra-profiler: add user_mode flag

Tegra Profiler: add user_mode flag into mmap sample

Bug 1447904

Change-Id: Ieba1025abac78b2682c0445e608fd0137dbe2379
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365901
(cherry picked from commit bbbdb78281524c75706d6b4162182a514355a1a0)
Reviewed-on: http://git-master/r/368217
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agotegra-profiler: non-disruptive counter tracking
Igor Nabirushkin [Mon, 27 Jan 2014 08:42:30 +0000]
tegra-profiler: non-disruptive counter tracking

Tegra Profiler: do not affect the already used counters

Bug 1447839

Change-Id: I4da319e6c2bc853a63c9e1ae4210be9b5a60cc3b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365898
(cherry picked from commit 5cefbee263b6616ef748cbd848bb14752da36c52)
Reviewed-on: http://git-master/r/368216
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: use mmap calls
Igor Nabirushkin [Sun, 26 Jan 2014 23:13:33 +0000]
misc: tegra-profiler: use mmap calls

Tegra Profiler: add mmap calls

Bug 1447662

Change-Id: I96614ab3c320fd028cf861ea970b5199bdcae1c7
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365889
(cherry picked from commit 6c4eaeece04690ea442d3c4b6cd74d6fa9ae121e)
Reviewed-on: http://git-master/r/368214
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: add thread state field
Igor Nabirushkin [Sun, 26 Jan 2014 21:28:57 +0000]
misc: tegra-profiler: add thread state field

Tegra Profiler: state, in_interrupt fields
were added into samples

Bug 1447655

Change-Id: I082b63ff854da34df45160a6f07dbe5ee73ca7f7
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/365867
(cherry picked from commit 868545a99d8385a850fc87a4ad97dc8fb44a6e76)
Reviewed-on: http://git-master/r/368212
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>