Re: [PATCH]: TIOCX: Do not autoload TIOCX & FPGA drivers

Greg Edwards
2005-05-20T18:50:45Z

On Fri, May 20, 2005 at 09:12:29AM -0400, Prarit Bhargava wrote:
| [PATCH]: ia64/sn : Do not autoload TIOCX & FPGA driver
|
| When built-in the TIOCX driver has functions exposed to the FPGA driver
| in the kernel. If a TIOCX is not found, this can lead to an oops when the
| FPGA attempts to register against the TIOCX driver.
|
| This fix makes found_tiocx_device a static int which is queried when FPGA
| driver(s) attempt to register against the TIOCX driver. The functions
| cx_driver_register and cx_driver_unregister now return -ENODEV and NULL
| respectively if nr_tiocx_found = 0, preventing the FPGA driver from loading.

Let's hold off on this until we understand the problem a little better.
This seems to be dependent on config settings. For example, it works fine
to have TIOCX and MBCS compiled statically if the kernel is compiled
CONFIG_IA64_SGI_SN2.

Greg