VCC sends HUP instead of BREAK.
Orabug:
21086161
Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
(cherry picked from commit
15102643e10a87e3f238d225b8459f08240cd014)
if (sscanf(buf, "%ud", &brk) != 1 || brk != 1)
rv = -EINVAL;
- else if (vcc_send_ctl(vcc, VCC_CTL_HUP) < 0)
+ else if (vcc_send_ctl(vcc, VCC_CTL_BREAK) < 0)
vcc_kick_tx(vcc);
spin_unlock_irqrestore(&vcc->lock, flags);
spin_unlock_irqrestore(&vcc->lock, flags);
if (tty)
- tty_hangup(tty);
+ tty_vhangup(tty);
tty_unregister_device(vcc_tty_driver, vdev->port_id);