summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRoderick Colenbrander <roderick.colenbrander@sony.com>2016-10-07 12:39:34 -0700
committerSiarhei Vishniakou <svv@google.com>2019-11-07 11:12:54 -0600
commit0aa08756ef3a082ea0b7aa2e0a93df016ed2ba95 (patch)
treeab7ff01f09b3d0bb51b8e4b05a54bf03cb78b568 /tools/perf/scripts/python
parent3c555a279538d3250593309c724bb624535ba266 (diff)
UPSTREAM: HID: sony: Fix race condition in sony_probe
Early on the sony_probe function calls hid_hw_start to start the hardware. Afterwards it issues some hardware requests, initializes other functionality like Force Feedback, power classes and others. However by the time hid_hw_start returns, the device nodes have already been created, which leads to a race condition by user space applications which may detect the device prior to completion of initialization. We have observed this problem many times, this patch fixes the problem. This patch moves most of sony_probe to sony_input_configured, which is called prior to device registration. This fixes the race condition and the same approach is used in other HID drivers. Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> (cherry picked from commit e1bc84d0071f59c8b38232e2cb093c47c47e4f9f) Bug: 111431828 Signed-off-by: Kim Low <kim-huei.low@sony.com> Change-Id: If8ea300e33413de73aa8ae1bd95f64c810edae58 Signed-off-by: Siarhei Vishniakou <svv@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions