diff options
author | Even Xu <even.xu@intel.com> | 2021-06-10 09:21:53 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-06-14 16:55:09 +0300 |
commit | 4aae88b9a9749f5b1c74f004ed8bd8efbaa96440 (patch) | |
tree | fd43142094da5796d3db2b9f7f725a229d32e474 /drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | |
parent | 65e4122d2ea758a1834a5ddf9c555a4d2c1dd66a (diff) | |
download | linux-4aae88b9a9749f5b1c74f004ed8bd8efbaa96440.tar.xz |
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>
Diffstat (limited to 'drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h')
-rw-r--r-- | drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h b/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h index f579b16e6d7a..32142c7d9a04 100644 --- a/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h +++ b/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h @@ -119,6 +119,7 @@ struct ishtp_hw_ops { unsigned long buffer_length); uint32_t (*get_fw_status)(struct ishtp_device *dev); void (*sync_fw_clock)(struct ishtp_device *dev); + bool (*dma_no_cache_snooping)(struct ishtp_device *dev); }; /** |