aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2015-01-20 07:54:50 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-25 12:17:59 -0500
commit625505b509b38b3a389cb3f4fd6520a46763bf45 (patch)
treee5bcf278e5c4a18a84e31064340eb3822f4a5706 /drivers/pnp
parentf989e55452c74b4f7b22c889b8ec9f1192aaeec4 (diff)
pnpbios: bail out on strange errors
A small number of systems respond to PnP dock queries with bogus values. This causes us to keep logging an error every 2 seconds. Instead of trying again just assume the BIOS is crapware and doesn't actually have dock functionality. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pnp')
-rw-r--r--drivers/pnp/pnpbios/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
index 074569e77d22..facd43b8516c 100644
--- a/drivers/pnp/pnpbios/core.c
+++ b/drivers/pnp/pnpbios/core.c
@@ -181,7 +181,8 @@ static int pnp_dock_thread(void *unused)
181 break; 181 break;
182 default: 182 default:
183 pnpbios_print_status("pnp_dock_thread", status); 183 pnpbios_print_status("pnp_dock_thread", status);
184 continue; 184 printk(KERN_WARNING "PnPBIOS: disabling dock monitoring.\n");
185 complete_and_exit(&unload_sem, 0);
185 } 186 }
186 if (d != docked) { 187 if (d != docked) {
187 if (pnp_dock_event(d, &now) == 0) { 188 if (pnp_dock_event(d, &now) == 0) {