Commit 625505b5 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

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: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f989e554
...@@ -181,7 +181,8 @@ static int pnp_dock_thread(void *unused) ...@@ -181,7 +181,8 @@ static int pnp_dock_thread(void *unused)
break; break;
default: default:
pnpbios_print_status("pnp_dock_thread", status); pnpbios_print_status("pnp_dock_thread", status);
continue; printk(KERN_WARNING "PnPBIOS: disabling dock monitoring.\n");
complete_and_exit(&unload_sem, 0);
} }
if (d != docked) { if (d != docked) {
if (pnp_dock_event(d, &now) == 0) { if (pnp_dock_event(d, &now) == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment