Skip to content

Commit 25c2e0f

Browse files
Wolfram Sangwsakernel
authored andcommitted
i2c: rcar: optimize cacheline to minimize HW race condition
'flags' and 'io' are needed first, so they should be at the beginning of the private struct. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent c7b514e commit 25c2e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-rcar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ enum rcar_i2c_type {
119119
};
120120

121121
struct rcar_i2c_priv {
122+
u32 flags;
122123
void __iomem *io;
123124
struct i2c_adapter adap;
124125
struct i2c_msg *msg;
@@ -129,7 +130,6 @@ struct rcar_i2c_priv {
129130

130131
int pos;
131132
u32 icccr;
132-
u32 flags;
133133
u8 recovery_icmcr; /* protected by adapter lock */
134134
enum rcar_i2c_type devtype;
135135
struct i2c_client *slave;

0 commit comments

Comments
 (0)