linux/drivers/hid/intel-ish-hid
Hong Liu b22f805bbe HID: intel-ish-hid: Optimize writing ipc message from queue
Currently we are using one additional static variable and a spinlock to
prevent contention of writing IPC messages to ISH hardware, which is
not necessary. Once ISH is ready to accept new data, we can push new
data to hardware. This pushing of new data is already protected by
wr_processing_spinlock for contention, which is enough. So use this
spinlock to check both readiness for accepting new data and once ready
allow writing of ipc message from queue to ISH hardware.

While here, cleaned up some space after return.

Signed-off-by: Hong Liu <hong.liu@intel.com>
Tested-by: Hongyan Song <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2019-02-15 22:47:21 +01:00
..
ipc HID: intel-ish-hid: Optimize writing ipc message from queue 2019-02-15 22:47:21 +01:00
ishtp HID: intel-ish-hid: Optimize writing ipc message from queue 2019-02-15 22:47:21 +01:00
ishtp-hid-client.c HID: intel-ish-hid: use helper function to search client id 2018-09-24 11:20:06 +02:00
ishtp-hid.c HID: intel-ish-hid: fixes incorrect error handling 2018-12-17 15:04:49 +01:00
ishtp-hid.h HID: intel-ish-hid: ISH HID client driver 2016-08-17 11:13:08 +02:00
Kconfig HID: intel_ish-hid: enable compile testing 2017-05-30 14:11:52 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00