Skip to contentSkip to conversation

Question about IO/MMIO check in uart_configure_port() in serial_core.c

DISCUSSION Martin Qiu 1 participant 1 message Mar 22, 2009 TTY layer and serial drivers

lore
Share & tools
lore

Martin Qiu

author
#0 lore raw

In uart_configure_port(), there is code:

        /*
         * If there isn't a port here, don't do anything further.
         */
        if (!port->iobase && !port->mapbase && !port->membase)
                return;

Actually, there is some UART devices over SPI interface, which don't have IO spcae or MMIO registers which could be directly accessed, like Maxim's 3100/3110/3111E. Further on, there may be UART devices over I2C.

These check may block those device from been correctly configured in linux, or they have to fake out a iobase or mapbase.. to pass this check, so my question is can these check re removed?

Thanks,
Martin

      ___________________________________________________________ 

好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html