]> git.sur5r.net Git - groeck-it87/commitdiff
Provide blacklist module parameter to override blacklist.
authorGuenter Roeck <linux@roeck-us.net>
Tue, 23 May 2017 13:05:29 +0000 (06:05 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 23 May 2017 13:05:29 +0000 (06:05 -0700)
Load module with blacklist=0 to override blacklist.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
it87.c

diff --git a/it87.c b/it87.c
index 207e84d16744556c96347b62b286a66559035043..930b81ed77163036de6627228807a6a4c780b08f 100644 (file)
--- a/it87.c
+++ b/it87.c
@@ -89,6 +89,11 @@ static unsigned short force_id;
 module_param(force_id, ushort, 0);
 MODULE_PARM_DESC(force_id, "Override the detected device ID");
 
+static unsigned short blacklist = 1;
+module_param(blacklist, ushort, 0);
+MODULE_PARM_DESC(blacklist,
+                "Enable/disable blacklist (1=enable, 0=disable, default 1)");
+
 static struct platform_device *it87_pdev[2];
 static bool it87_sio4e_broken;
 #ifdef __IT87_USE_ACPI_MUTEX
@@ -3923,10 +3928,10 @@ static int __init sm_it87_init(void)
 
        for (i = 0; i < ARRAY_SIZE(sioaddr); i++) {
                /*
-                * Accessing the second Super-IO chi can result in board
+                * Accessing the second Super-IO chip can result in board
                 * hangs. Disable until we figure out what is going on.
                 */
-               if (it87_sio4e_broken && sioaddr[i] == 0x4e)
+               if (blacklist && it87_sio4e_broken && sioaddr[i] == 0x4e)
                        continue;
                memset(&sio_data, 0, sizeof(struct it87_sio_data));
                isa_address = 0;