And this seems like a viable option to me, what do you suggest?spin_unlock(static)
gserial_disconnect {
spin_lock(static)
spin_lock(port)
...
gser->ioport = NULL;
...
spin_lock(port)
spin_unlock(static)
}
gserial_resume {
struct gs_port *port = gser->ioport;
spin_lock(static)
if (!port)
returnSmall correction inlined.
spin_lock(port)
...
spin_unlock(port)
spin_unlock(static)
}
Thanks,
Prashanth K