[LinuxPPS] debug output
gnu not unix
gnu at wraith.sf.ca.us
Fri Feb 23 23:12:49 CET 2007
In message <20070223184010.GH30997 at enneenne.com> you write:
>Ok, maybe I've got it! Please, try this patch:
>diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
>index d1756c6..cf86d9a 100644
>--- a/drivers/serial/serial_core.c
>+++ b/drivers/serial/serial_core.c
>@@ -875,7 +875,7 @@ static int uart_set_info(struct uart_state *state,
> if (port->type == PORT_UNKNOWN)
> goto exit;
> if (state->info->flags & UIF_INITIALIZED) {
>- if (((old_flags ^ port->flags) & UPF_SPD_MASK) ||
>+ if (((old_flags ^ port->flags) & (UPF_SPD_MASK|UPF_HARDPPS_CD)
>)
It still needs the ||, though.
> old_custom_divisor != port->custom_divisor) {
> /*
> * If they're setting up a custom divisor or speed,
Here's the debug output, first the setserial then the ppstest:
SETTING UART_IER
SETTING UART_IER AS 5
FLAGS2 10000840
serial_core: PPS source #0 "/dev/ttyS0" added to the system
SETTING UART_IER
ENABLE UART_IER_MSI IRQ
SETTING UART_IER AS d
pps_core: New message from PID 1278 (flags 0)
pps_core: PPS_FIND_SRC: source -1
pps_core: start sending reply to ID 1278...
pps_core: ... reply sent (180)
SETTING UART_IER
ENABLE UART_IER_MSI IRQ
SETTING UART_IER AS d
pps_core: New message from PID 1278 (flags 0)
pps_core: PPS_CREATE: source 0
pps_core: start sending reply to ID 1278...
pps_core: ... reply sent (180)
../Steven
More information about the LinuxPPS
mailing list