Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -181,7 +181,8 @@ static int pnp_dock_thread(void *unused)
			break;
		default:
			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 (pnp_dock_event(d, &now) == 0) {