OSDN Git Service

platform/x86: ISST: Allow configurable offset range
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 4 Dec 2020 01:57:45 +0000 (17:57 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 7 Dec 2020 15:10:12 +0000 (16:10 +0100)
commit761f0ee0e84b4c18535c6d17890ccc9f5c617e8d
treee1fc8e4970d306853944da8f1838dbbaa45158d5
parenta552f204b050b213b1e41a5134a0d2726c9a2ec1
platform/x86: ISST: Allow configurable offset range

The mmio offset range can be different based on the PCI device id. Here
for INTEL_RAPL_PRIO_DEVID_1, the range is increased from 45 to 64. Pass
the range as the driver_data. Also account for different ranges during
save/restore via suspend/resume callbacks.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20201204015746.1168941-2-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c