serial driver PMC MSP71xx, kernel linux-mips.git mast er
Subsystems (2)
Quoted 9 lines · Sergei Shtylyov
Hello.
Quoted 2 lines · Marc St-Jean
Quoted 2 lines
Quoted 1 line
Fourth attempt at the serial driver patch for the PMC-Sierra MSP71xx
device.
I think you need to submit your patch to Andrew Morton since it
requires a patch from his tree.
OK, will do.
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Review static irqreturn_t serial8250_interrupt( · line 1403
Quoted 6 lines
(quoted diff) +2
-0@@ -1383,6 +1399,19 @@ static irqreturn_t serial8250_interrupt( handled = 1; end = NULL; + } else if (up->port.iotype == UPIO_DWAPB && + (iir & UART_IIR_BUSY) ==
UART_IIR_BUSY) {Quoted 1 line
Quoted 1 line
Worth aligning this line with the opening paren of if... but's
Quoted 8 lines
that's
Quoted 3 lines
Quoted 1 line
nitpicking. :-)
No problem I'll change it. I just usually align to the closest tab
stop to
Quoted 1 line
the opening parenthesis.
It haven't really changed in the last patch. :-)
I will respin with 8 char tabs.
Quoted 23 lines
Quoted 10 lines
Quoted 10 lines
Review static irqreturn_t serial8250_interrupt( · line 1404
Quoted 1 line
(quoted diff) +1
-0+ /* The DesignWare APB UART has an Busy Detect(
0x07)Review static irqreturn_t serial8250_interrupt( · line 1405
Quoted 1 line
(quoted diff) +1
-0+ * interrupt meaning an LCR write attemptoccured while the
Review static irqreturn_t serial8250_interrupt( · line 1406
Quoted 1 line
(quoted diff) +1
-0+ * UART was busy. The interrupt must be clearedby reading
Review static irqreturn_t serial8250_interrupt( · line 1407
Quoted 1 line
(quoted diff) +1
-0+ * the UART status register (USR) and the LCRre-written. */
Quoted 2 lines
(quoted diff) +2
-0+ unsigned int status; + status = *(volatile u32*)up->port.private_data;
Quoted 11 lines
Quoted 11 lines
Quoted 9 lines
(quoted diff) +5
-0+ serial_out(up, UART_LCR, up->lcr); + + handled = 1; + + end = NULL; } else if (end == NULL) end = l;return 0;Still, shouldn't you be doing this in
serial8250_timeout()
Quoted 5 lines
Quoted 2 lines
No, the
serial8250_timeoutis for issue 1 at the top, this is for issue 2.It's for lost interrupts, IIUC. They use anothe timeout handler for the
workaround...
This issue (2) is a completely new type of interrupt generated but the DesignWare APB uart, it has nothing to do with lost interrupts.
Quoted 10 lines
Quoted 4 lines
Quoted 2 lines
also?
What IRQ numbers this UART is using, BTW?For the ports on the device they are 27 and 42. Is there any
significance
Quoted 1 line
that I'm not aware of?
Yeah, IRQ0 is treated as no IRQ by 8250, and in this case it falls
back to
usingserial8250_timeout()to handle "interrupts".
Good to know. It won't be affecting us then.
Quoted 11 lines
Quoted 4 lines
Quoted 2 lines
Oops, your mailer went and did it again. :-)
I'm completely giving up on Thunderbird,unless someone can point out
Ypu should have long ago. :-)
Quoted 1 line
the specific internal configuration items which needs a kick!
Only the attachments will work in the Mozilla kind mailer, AFAIK.
The last patch looked OK at last. :-)
The attachemnents appear to be MIME which is a no-no according the linux FAQ at kernel.org. I guess I'll stick with /bin/mail.
Thanks,
Marc
Hello.
Quoted 7 lines · Marc St-Jean
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Fourth attempt at the serial driver patch for the PMC-Sierra MSP71xx
device.
I think you need to submit your patch to Andrew Morton since it
requires a patch from his tree.OK, will do.
In fact, since the serial drivers are not maintained anymore, this seems
the only option.
Quoted 23 lines
Quoted 22 lines
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
+ /* The DesignWare APB UART has an Busy Detect
(
0x07)Quoted 1 line
+ * interrupt meaning an LCR write attempt
occured while the
Quoted 1 line
+ * UART was busy. The interrupt must be cleared
by reading
Quoted 1 line
+ * the UART status register (USR) and the LCR
re-written. */
Quoted 2 lines
(quoted diff) +2
-0+ unsigned int status; + status = *(volatile u32*)up->port.private_data;
Quoted 11 lines
Quoted 11 lines
Review
Quoted 9 lines
(quoted diff) +5
-0+ serial_out(up, UART_LCR, up->lcr); + + handled = 1; + + end = NULL; } else if (end == NULL) end = l; return 0;Still, shouldn't you be doing this in
serial8250_timeout()
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
No, the
serial8250_timeoutis for issue 1 at the top, this is for issue 2.It's for lost interrupts, IIUC. They use anothe timeout handler for the
workaround...This issue (2) is a completely new type of interrupt generated but the DesignWare APB uart, it has nothing to do with lost interrupts.
Yeah, I just thought that the lost interrupts might be a "generic" issue.
Quoted 11 lines
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
also?
What IRQ numbers this UART is using, BTW?For the ports on the device they are 27 and 42. Is there any
significance
Quoted 1 line
that I'm not aware of?
Yeah, IRQ0 is treated as no IRQ by 8250, and in this case it falls
back to usingserial8250_timeout()to handle "interrupts".Good to know. It won't be affecting us then.
This may be overriden anyway...
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Oops, your mailer went and did it again. :-)
I'm completely giving up on Thunderbird,unless someone can point out
Quoted 8 lines
Quoted 6 lines
Ypu should have long ago. :-)
Quoted 1 line
the specific internal configuration items which needs a kick!
Only the attachments will work in the Mozilla kind mailer, AFAIK.
The last patch looked OK at last. :-)The attachemnents appear to be MIME which is a no-no according the
The text/plain type attachments seem to be acceptable for the most
maintainers. This Mozilla can do, at least. :-)
Quoted 4 lines
linux FAQ at kernel.org. I guess I'll stick with
/bin/mail.Thanks,
Marc
WBR, Sergei