Re: startup/request_port functions not being called

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 05, 2016 at 06:23:12PM +0000, Andy Falanga (afalanga) wrote:
> I'm writing my first serial driver for a UART (AXI UART Lite from 
> Xilinx).  Yes, I know there's one in the kernel but the hardware in this 
> case isn't embedded.
> 
> Using the documentation in <kernel_src>/Documentation/serial/driver and 
> the existing code for references, I've implemented my driver.  However, 
> I cannot validate the my startup or request_port functions are being 
> called.
> 
> I'm calling uart_register_driver() and then uart_register_port() and I'm 
> sure these functions are passing.  I'm seeing my device handles show in 
> /dev.  The documentation states that the startup() function, "... will 
> only be called when the port is initially opened."  Yet, I'm not seeing 
> pr_info() messages that I should be.  What should I look for in order to 
> determine why the setup functions aren't being called?

Are you sure that some other driver isn't being called instead of yours?

Without seeing the code, it's impossible to debug, please just send a
patch.

thanks,

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



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux