/* NOTE: Channel lock MUST be held before calling this function!  */
static void neo_flush_uart_read(struct jsm_channel *ch)
/* NOTE: Channel lock MUST be held before calling this function!  */
static void neo_flush_uart_read(struct jsm_channel *ch)
{
	u8 tmp = 0;
	int i = 0;
	if (!ch)
		return;
	writeb((UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR), &ch->ch_neo_uart->isr_fcr);
	for (i = 0; i < 10; i++) {
		tmp = readb(&ch->ch_neo_uart->isr_fcr);
		if (tmp & 2) {
			jsm_printk(IOCTL, INFO, &ch->ch_bd->pci_dev,
					"Still flushing RX UART... i: %d\n", i);
			udelay(10);
		}
		else
			break;
	}
}