serial driver PMC MSP71xx, kernel linux-mips.git mast er
Subsystems (2)
Quoted 23 lines · Sergei Shtylyov
Quoted 1 line · Marc St-Jean
Third attempt at the serial driver patch for the PMC-Sierra MSP71xx
device.
Quoted 20 lines
There are three different fixes:
1. Fix for DesignWare THRE errata
- Dropped our fix since the "8250-uart-backup-timer.patch" in the "mm" tree also fixes it. This patch needs to be applied on top of it.2. Fix for Busy Detect on LCR write
- Dropped the addition ofUPIO_DWAPBiotype to8250_early.cas Sergei pointed out the fix wasn't complete and we don't require it.3. Workaround for interrupt/data concurrency issue
- Fix must remainserial8250_interrupt()in order to mark interrupt as handled.Thanks,
MarcSigned-off-by Marc St-Jean <[email protected]>drivers/serial/8250.c +0
-0
...
Quoted 10 lines
drivers/serial/8250.c static irqreturn_t serial8250_interrupt( · line 1403
Quoted 7 lines
break;drivers/serial/8250.c +2
-0@@ -1383,6 +1399,19 @@ static irqreturn_t serial8250_interrupt( handled =1 ; end =NULL ; + }else if ((iir &UART_IIR_BUSY ) ==UART_IIR_BUSY && + up->port.iotype ==UPIO_DWAPB ) {Makes sense to swap the checks, i.e. to only test for
UART_IIR_BUSYis
this isUPIO_DWAPB.
I had left in the other order for readability with the previous test. I agree this will save a few cycles so I've reordered.
Quoted 15 lines
[...]
drivers/serial/8250.c int __init serial8250_start_console(stru · line 2492
Quoted 12 lines
drivers/serial/8250.c +5
-3@@ -2454,9 +2485,12 @@ int __init serial8250_start_console(struadd_preferred_console ("ttyS" , line, options); printk("Adding console on ttyS%d at %s 0x%lx (options '%s')\n", - line, port->iotype ==UPIO_MEM ?"MMIO" :"I/O port" , - port->iotype ==UPIO_MEM ? (unsigned long ) port->mapbase : - (unsigned long ) port->iobase, options); + line, + (port->iotype == UPIO_MEM || port->iotype == UPIO_DWAPB) + ? "MMIO" : "I/O port", + (port->iotype == UPIO_MEM || port->iotype == UPIO_DWAPB) + ? (unsigned long) port->mapbase : (unsignedlong)
port->iobase,
Quoted 7 lines
drivers/serial/8250.c int __init serial8250_start_console(stru · line 2493
Quoted 1 line
drivers/serial/8250.c +1
-0+ options);Please turn this check into port->iotype >= UPIO_MEM, since thiswould be
the Right Thing (RM). All iotypes beyondUPIO_MEMare memory mapped. And I
thought I fixed that -- was wrong, obviously... :-/
This is news to me, I thought the numbering was of no particular importance. I've made the change.
Quoted 7 lines
include/linux/serial_reg.h #define UART_IIR_MSI 0x00 /* Modem stat · line 37
Quoted 6 lines
include/linux/serial_reg.h +0
-0@@ -37,6 +37,7 @@ #define UART_IIR_MSI 0x00 /* Modem stat#define UART_IIR_THRI 0x02/* Transmitter holding register empty */
Quoted 7 lines
include/linux/serial_reg.h #define UART_IIR_MSI 0x00 /* Modem stat · line 39
Quoted 2 lines
include/linux/serial_reg.h +0
-0#define UART_IIR_RDI 0x04/* Receiver data interrupt */ #define UART_IIR_RLSI 0x06/* Receiver line status interrupt */
include/linux/serial_reg.h #define UART_IIR_MSI 0x00 /* Modem stat · line 40
Quoted 1 line
include/linux/serial_reg.h +1
-0+#define UART_IIR_BUSY 0x07/* DesignWare APB Busy Detect */
Alan already said about this one... :-)
Yes, changed.
Quoted 3 lines
BTW, your patches are still corrupt by your mailer (space added to
lines
starting with space)
Argh! There were no spaces in the message window before sending, I swear! I've solved the problem for the next patch.
Marc