diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-03-28 21:28:32 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-03-28 21:28:32 +0200 |
commit | ef1136fb7497e0ad6b419add0b463c9a770c42ee (patch) | |
tree | 052d8eefba84688370f9b85ec4eff42b971215bb /include | |
parent | aaab1c66f78311771aeaeb4f2e9aab8fab3b1c6d (diff) |
[SERIAL] Fix oops when removing suspended serial port
A serial card might have been removed when the system is resumed.
This results in a suspended port being shut down, which results in
the ports shutdown method being called twice in a row. This causes
BUGs. Avoid this by tracking the suspended state separately from
the initialised state.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/serial_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 4041122dabf..eca0d9a5658 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -311,6 +311,7 @@ struct uart_info { #define UIF_CTS_FLOW ((__force uif_t) (1 << 26)) #define UIF_NORMAL_ACTIVE ((__force uif_t) (1 << 29)) #define UIF_INITIALIZED ((__force uif_t) (1 << 31)) +#define UIF_SUSPENDED ((__force uif_t) (1 << 30)) int blocked_open; |