]> git.baikalelectronics.ru Git - kernel.git/commit
tty_port: Move hupcl handling
authorAlan Cox <alan@linux.intel.com>
Thu, 5 Nov 2009 13:27:57 +0000 (13:27 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:05 +0000 (15:18 -0800)
commitfb0a33ddb80505fe2d0bd3a9331ec35f109e6488
tree5e0761f8e65d247f63785f5afc42623dc1291cd9
parenta96efd38607847fb9ed7de5c866d36ac8eaa0f80
tty_port: Move hupcl handling

Move the HUCPL handling from the end of close_port_start to the beginning
of close_port_end. What this actually does is change the ordering from

port shutdown
port->dtr_rts

to

port->dtr_rts
port shutdown

Some hardware drops the physical connection on shutdown so we must perform
the port operations before the shutdown.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_port.c