Skip to content

Commit ec551cf

Browse files
committed
serial: pl011: Initialise the hrtimers for RS485 on pl011_axi
pl011_axi_probe was missing the equivlent hrtimer initialisation from commit 2c1fd53 ("serial: amba-pl011: Fix RTS handling in RS485 mode") and commit 8cb4418 ("serial: amba-pl011: Switch to use hrtimer_setup()") resulting in the kernel blowing up as soon as pl011_rs485_stop_tx tried to use them. Add the hrtimer initialisation. Fixes: 120c89e ("serial: pl011: rp1 uart support") Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 85f9ed0 commit ec551cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/tty/serial/amba-pl011.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,6 +3148,11 @@ static int pl011_axi_probe(struct platform_device *pdev)
31483148

31493149
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
31503150

3151+
hrtimer_setup(&uap->trigger_start_tx, pl011_trigger_start_tx, CLOCK_MONOTONIC,
3152+
HRTIMER_MODE_REL);
3153+
hrtimer_setup(&uap->trigger_stop_tx, pl011_trigger_stop_tx, CLOCK_MONOTONIC,
3154+
HRTIMER_MODE_REL);
3155+
31513156
ret = pl011_setup_port(&pdev->dev, uap, r, portnr);
31523157
if (ret)
31533158
return ret;

0 commit comments

Comments
 (0)