问题
There is a device that is connected to the controller uart port (in Linux 2.6), and which generates an interrupt on gpio. I wrote the driver of the Space user to communicate with the device, but I want to move this driver into the kernel. Does anyone have a similar experience?
There is a driver of uart port from freescale do not really understand how this driver connects to the device through function probe (). Not yet found where the structure of the device is created and at what point and at what time is called probe (). Perhaps the connection occurs during file creation /dev/ttymxc0 ..1 ..2 ..3 (associations on the port) via udev (also not yet know how udev works)?
Another question, if I'll write a driver of the external uart device, then would not it be a conflict when two drivers are connected to the same device? Or the driver who was the first one and managed?
来源:https://stackoverflow.com/questions/29845496/device-and-drivers-connections