Skip to content

Commit 1268890

Browse files
marcanjoergroedel
authored andcommitted
iommu/apple-dart: Make the hw register fields u32s
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 <[email protected]> Signed-off-by: Janne Grunau <[email protected]> Reviewed-by: Sven Peter <[email protected]> Reviewed-by: Neal Gompa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 8f5ae30 commit 1268890

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

drivers/iommu/apple-dart.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,22 +166,22 @@ struct apple_dart_hw {
166166

167167
int max_sid_count;
168168

169-
u64 lock;
170-
u64 lock_bit;
169+
u32 lock;
170+
u32 lock_bit;
171171

172-
u64 error;
172+
u32 error;
173173

174-
u64 enable_streams;
174+
u32 enable_streams;
175175

176-
u64 tcr;
177-
u64 tcr_enabled;
178-
u64 tcr_disabled;
179-
u64 tcr_bypass;
176+
u32 tcr;
177+
u32 tcr_enabled;
178+
u32 tcr_disabled;
179+
u32 tcr_bypass;
180180

181-
u64 ttbr;
182-
u64 ttbr_valid;
183-
u64 ttbr_addr_field_shift;
184-
u64 ttbr_shift;
181+
u32 ttbr;
182+
u32 ttbr_valid;
183+
u32 ttbr_addr_field_shift;
184+
u32 ttbr_shift;
185185
int ttbr_count;
186186
};
187187

0 commit comments

Comments
 (0)