Commit d9a6bc6e authored by Russell King's avatar Russell King Committed by Linus Torvalds

[SERIAL] Add per-port semaphore.

Add a per-port semaphore to protect against simultaneous opens,
closes, hangups, and the like.  This removes the need for the
UIF_CLOSING flag, as well as the extra tests and wait queues.

Disable the old PM code for now - it is incompatible with the
per-port semaphore.
parent 1208e2cb
This diff is collapsed.
......@@ -211,6 +211,8 @@ struct uart_state {
struct uart_info *info;
struct uart_port *port;
struct semaphore sem;
#ifdef CONFIG_PM
struct pm_dev *pm;
#endif
......@@ -235,7 +237,6 @@ struct uart_info {
*/
#define UIF_CHECK_CD (1 << 25)
#define UIF_CTS_FLOW (1 << 26)
#define UIF_CLOSING (1 << 27)
#define UIF_NORMAL_ACTIVE (1 << 29)
#define UIF_INITIALIZED (1 << 31)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment