summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@nvidia.com>2023-02-08 08:33:27 +0200
committerHans de Goede <hdegoede@redhat.com>2023-02-13 12:07:50 +0100
commit26917eab144c8515435ef9175fdd5dddf9f0f000 (patch)
treed1c3b2997d8ec11fa16a1421f6411dce41399107
parent26e118ea98cf5ec0b53198e643d5fa8d99b73b49 (diff)
downloadlinux-stable-26917eab144c8515435ef9175fdd5dddf9f0f000.tar.gz
linux-stable-26917eab144c8515435ef9175fdd5dddf9f0f000.tar.bz2
linux-stable-26917eab144c8515435ef9175fdd5dddf9f0f000.zip
platform_data/mlxreg: Add field with mapped resource address
Add field with PCIe remapped based address for passing it across relevant platform drivers sharing common system resources. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Reviewed-by: Michael Shych <michaelsh@nvidia.com> Link: https://lore.kernel.org/r/20230208063331.15560-11-vadimp@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--include/linux/platform_data/mlxreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h
index a6bd74e29b6b..0b9f81a6f753 100644
--- a/include/linux/platform_data/mlxreg.h
+++ b/include/linux/platform_data/mlxreg.h
@@ -216,6 +216,7 @@ struct mlxreg_core_platform_data {
* @mask_low: low aggregation interrupt common mask;
* @deferred_nr: I2C adapter number must be exist prior probing execution;
* @shift_nr: I2C adapter numbers must be incremented by this value;
+ * @addr: mapped resource address;
* @handle: handle to be passed by callback;
* @completion_notify: callback to notify when platform driver probing is done;
*/
@@ -230,6 +231,7 @@ struct mlxreg_core_hotplug_platform_data {
u32 mask_low;
int deferred_nr;
int shift_nr;
+ void __iomem *addr;
void *handle;
int (*completion_notify)(void *handle, int id);
};