a state PMON doesn't expect, and can't recover from.
-/* $OpenBSD: apm.c,v 1.20 2014/06/16 20:32:29 pirofti Exp $ */
+/* $OpenBSD: apm.c,v 1.21 2014/07/16 17:11:37 miod Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
void
apmattach(struct device *parent, struct device *self, void *aux)
{
- /* Enable PCI Power Management. */
- pci_dopm = 1;
+ /*
+ * Enable PCI Power Management, except on the Gdium, where this
+ * prevents PMON from initializing the USB controller correctly
+ * after a reboot.
+ */
+ if (sys_platform->system_type != LOONGSON_GDIUM)
+ pci_dopm = 1;
printf("\n");
}