Re: [PATCH 2/2] misc: add real function open/read/write/ioctl/closefor moxa_serial_io driver

From: Greg KH
Date: Mon Apr 25 2011 - 10:14:28 EST



A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top


On Mon, Apr 25, 2011 at 11:44:01AM +0800, Jimmy Chen (éæé) wrote:
> Greg,
> I'm not sure what you mean "Can't you do all of this from userspace
> without any kernel changes needed?". Is there anyway to trigger the
> I/O control from userspace without driver? V2100 boards connect I/O to
> uart chip, tuning the I/O will switch the uart chip into different
> mode. "moxa_serial_io" is not a serial driver; the uart itself is
> droved by another serial driver such as mxser.c or 8250 driver.

What's wrong with using outb() from your userspace program instead of
writing to this random misc device with some random ioctl calls?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/