diff options
author | Claudiu Beznea <[email protected]> | 2023-11-20 13:18:16 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2023-12-12 15:40:41 +0100 |
commit | ef88eefb1a81a8701eabb7d5ced761a66a465a49 (patch) | |
tree | f479c4e0e2201964e925c1d2b3601f0199b304e9 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | b94f455372ad6e6b4da8e8ed9864d9c7daaf54b8 (diff) |
irqchip/renesas-rzg2l: Implement restriction when writing ISCR register
The RZ/G2L manual (chapter "IRQ Status Control Register (ISCR)") describes
the operation to clear interrupts through the ISCR register as follows:
[Write operation]
When "Falling-edge detection", "Rising-edge detection" or
"Falling/Rising-edge detection" is set in IITSR:
- In case ISTAT is 1
0: IRQn interrupt detection status is cleared.
1: Invalid to write.
- In case ISTAT is 0
Invalid to write.
When "Low-level detection" is set in IITSR.:
Invalid to write.
Take the interrupt type into account when clearing interrupts through the
ISCR register to avoid writing the ISCR when the interrupt type is level.
Signed-off-by: Claudiu Beznea <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions