MLK-14659 rpmsg: imx: tty: restore support for imx7d
authorOctavian Purdila <octavian.purdila@nxp.com>
Tue, 18 Apr 2017 15:11:59 +0000 (18:11 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:00 +0000 (15:22 -0500)
Commit 2a596c353234 ("MLK-13981-2 rpmsg: imx: enable rpmsg virt tty")
enabled support for imx7ulp but it broke support for imx7d since the
currently distributed M4 image for imx7d still uses the old
"rpmsg-openamp-demo-channel" naming.

While we could change the channel name in the M4 image it is better to
maintain backwards compatibility, so add the old naming back to the id
table.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
drivers/rpmsg/imx_rpmsg_tty.c

index 3545fd2..42b245d 100644 (file)
@@ -207,6 +207,7 @@ static void rpmsg_tty_remove(struct rpmsg_device *rpdev)
 
 static struct rpmsg_device_id rpmsg_driver_tty_id_table[] = {
        { .name = "rpmsg-virtual-tty-channel" },
+       { .name = "rpmsg-openamp-demo-channel" },
        { },
 };
 MODULE_DEVICE_TABLE(rpmsg, rpmsg_driver_tty_id_table);