tty: serial: qcom_geni_serial: Move loopback support to TIOCM_LOOP
authorAkash Asthana <akashast@codeaurora.org>
Mon, 6 Jan 2020 14:45:05 +0000 (20:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jan 2020 19:22:34 +0000 (20:22 +0100)
commit69bd1a4f19a41c6ba680e8440165634f6278895f
tree8f27ee77456b42f63c14a321bc369ee7dcbe52d8
parentf3974413cf0209b215ce03aa7cb450a5b2e4d758
tty: serial: qcom_geni_serial: Move loopback support to TIOCM_LOOP

Remove code from the driver that create and maintain loopback sysfs node.
Instead use the ioctl TIOCMSET with TIOCM_LOOP argument to set HW to
loopback mode.

Signed-off-by: Akash Asthana <akashast@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1578321905-25843-3-git-send-email-akashast@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c