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

From: Greg Edwards <edwardsg_at_sgi.com>
Date: 2005-05-21 04:50:45
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
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri May 20 14:51:03 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:39 EST