mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 04:25:09 +07:00
staging: most: dim2-hdm: fix possible kernel freeze when reusing a dim2 channel
If a DIM2 channel is being closed while it is busy, the channels's status flag could possibly stay active for this very channel. This causes the kernel to freeze by the time the channel is opened again. This patch fixes the problem. Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
63c87669c4
commit
1c88f8ff42
@ -342,6 +342,9 @@ static void dim2_clear_channel(u8 ch_addr)
|
|||||||
|
|
||||||
dim2_clear_cat(MLB_CAT, ch_addr);
|
dim2_clear_cat(MLB_CAT, ch_addr);
|
||||||
dim2_clear_cdt(ch_addr);
|
dim2_clear_cdt(ch_addr);
|
||||||
|
|
||||||
|
/* clear channel status bit */
|
||||||
|
dimcb_io_write(&g.dim2->ACSR0, bit_mask(ch_addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user