All of lore.kernel.org
 help / color / mirror / Atom feed
* Questions regarding adding a patch in linux/drivers/char/8250.c
@ 2012-05-21  6:19 Donald
  2012-05-21  9:28 ` Alan Cox
  2012-05-21  9:30 ` Alan Cox
  0 siblings, 2 replies; 9+ messages in thread
From: Donald @ 2012-05-21  6:19 UTC (permalink / raw)
  To: linux-serial

Hi,

This is Donald from ASIX Electronics Corp. My company has three PCI to Serial controllers, including MCS9845, MCS9835, and MCS9820.
Currently those serial devices using these three chips can directly use the Linux kernel's serial driver in
linux/drivers/char/8250.c. Recently we find these three chips have a hardware bug relating to parity error count function. We have a
software workaround for this issue. Below for reference is a pseudo code for this workaround.

serial8250_do_set_termios() {
	If ((PID == MCS9845 || PID == MCS935 || PID == MCS9820) && ((termios->c_cflag & PARENB))) {
		port->fifosize = 1; /* Change RX FIFO size to 1 byte */
		up->ier &= ~UART_IER_RLSI; /* Disable RLSI interrupt */
	}	
}

Is it possible to add a patch into linux/drivers/char/8250.c for our chips' hardware issue? If it's not feasible to add a patch into
linux/drivers/char/8250.c, could we submit a new driver (e.g., mcs78xx_8250.c) to Linux kernel for devices using these three chips
(i.e., those devices can use new driver mcs78xx_8250.c instead of 8250.c)

Your reply to my questions will be very appreciated.

Regards,
Donald Lee
~~~~~~~~~~~~~~~~~~~~~~~~
R&D Division
ASIX Electronics Corporation
TEL: 886-3-5799500 ext.515
http://asix.com.tw/
~~~~~~~~~~~~~~~~~~~~~~~~



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-06-19 12:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21  6:19 Questions regarding adding a patch in linux/drivers/char/8250.c Donald
2012-05-21  9:28 ` Alan Cox
2012-05-29  8:37   ` Donald
2012-06-18  3:07   ` Donald
2012-06-19  9:18     ` Alan Cox
2012-06-19 12:35       ` Donald
2012-05-21  9:30 ` Alan Cox
2012-05-21 12:54   ` Donald
2012-05-21 15:07   ` Jason Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.