]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iommu/apple-dart: Make the hw register fields u32s
authorHector Martin <marcan@marcan.st>
Thu, 21 Aug 2025 10:15:58 +0000 (12:15 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 5 Sep 2025 12:27:31 +0000 (14:27 +0200)
The registers are 32-bit and the offsets definitely don't need 64 bits
either, these should've been u32s.

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Sven Peter <sven@kernel.org>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Link: https://lore.kernel.org/r/20250821-apple-dart-4levels-v2-1-e39af79daa37@jannau.net
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/apple-dart.c

index 190f28d76615159527649cd288df395a50d950ef..e72a93e78e26ca61b233c83d439dbdfadf040fc6 100644 (file)
@@ -166,22 +166,22 @@ struct apple_dart_hw {
 
        int max_sid_count;
 
-       u64 lock;
-       u64 lock_bit;
+       u32 lock;
+       u32 lock_bit;
 
-       u64 error;
+       u32 error;
 
-       u64 enable_streams;
+       u32 enable_streams;
 
-       u64 tcr;
-       u64 tcr_enabled;
-       u64 tcr_disabled;
-       u64 tcr_bypass;
+       u32 tcr;
+       u32 tcr_enabled;
+       u32 tcr_disabled;
+       u32 tcr_bypass;
 
-       u64 ttbr;
-       u64 ttbr_valid;
-       u64 ttbr_addr_field_shift;
-       u64 ttbr_shift;
+       u32 ttbr;
+       u32 ttbr_valid;
+       u32 ttbr_addr_field_shift;
+       u32 ttbr_shift;
        int ttbr_count;
 };