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)
commite707c35cbbe83a016cf0122a29e3a47b5a9e35c4
tree5e0761f8e65d247f63785f5afc42623dc1291cd9
parentedfacdd6f81119b9005615593f2cbd94b8c7e2d8
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