Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
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
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
-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
|
|
-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
|
|
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
|
|
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>
|
|
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
|