Kernel: Mark SDHC InterruptStatus structured view as const

This view is really nice to check flags, but when clearing them we must
make sure that we only ever try to set 1 bit at a time, which makes
setting bits through the structured view a footgun, as that fetches,
ors in and then sets, potentially resetting other flags.
This commit is contained in:
Hendiadyoin1 2023-09-30 12:48:06 +02:00 committed by Andreas Kling
parent f51e8e785c
commit aea244efe1
Notes: sideshowbarker 2024-07-16 20:21:48 +09:00

View File

@ -103,7 +103,7 @@ struct HostControlRegisterMap {
u32 tuning_error : 1;
u32 response_error : 1;
u32 vendor_specific_error : 1;
};
} const;
u32 raw;
} interrupt_status;
u32 interrupt_status_enable;