Skip to content

Commit 1e005bf

Browse files
tq-schiffermgregkh
authored andcommitted
serial: 8250: omap: Use serial8250_em485_supported
8250_omap uses em485, fill in rs485_supported accordingly. This makes RS485 work with 8250_omap again, which was broken with the introduction of the RS485 config sanitization. Fixes: be2e2cb ("serial: Sanitize rs485_struct") Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Link: https://lore.kernel.org/r/20220916110955.161099-1-matthias.schiffer@ew.tq-group.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 60f3617 commit 1e005bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/8250/8250_omap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,7 @@ static int omap8250_probe(struct platform_device *pdev)
13341334
up.port.throttle = omap_8250_throttle;
13351335
up.port.unthrottle = omap_8250_unthrottle;
13361336
up.port.rs485_config = serial8250_em485_config;
1337+
up.port.rs485_supported = serial8250_em485_supported;
13371338
up.rs485_start_tx = serial8250_em485_start_tx;
13381339
up.rs485_stop_tx = serial8250_em485_stop_tx;
13391340
up.port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);

0 commit comments

Comments
 (0)