]> git.baikalelectronics.ru Git - kernel.git/commit
HID: intel-ish-hid: ishtp: Add dma_no_cache_snooping() callback
authorEven Xu <even.xu@intel.com>
Thu, 10 Jun 2021 06:21:53 +0000 (14:21 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Jun 2021 13:55:09 +0000 (15:55 +0200)
commit2ef01d86f0964342b2e8a3a544da4b4a099c4bae
treefd43142094da5796d3db2b9f7f725a229d32e474
parent3b5e297785f43f61dac79b5dabb418d61a403d3a
HID: intel-ish-hid: ishtp: Add dma_no_cache_snooping() callback

Different platforms have different DMA capability, on most of
platforms, DMA support cache snooping. But few platforms,
such as ElkhartLake (EHL), don't support cache snooping
which requires cache flush from driver.

So add a hardware level callback to let ishtp driver know if cache
flush is needed.

As most of platform support cache snooping, so driver will not
do cache flush by default, until platform implements this callback
and return true explicitly.

Acked-by: Pandruvada, Srinivas <srinivas.pandruvada@intel.com>
Signed-off-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ishtp/client.c
drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h