From e9be13549fb18d50fee0fd84aafdb71268c2b8dc Mon Sep 17 00:00:00 2001 From: jhibbits Date: Sun, 26 Jan 2014 02:23:16 +0000 Subject: [PATCH] MFC r260872: There's actually no data in the PMU_GET_VERSION command. Don't send any. This change now allows the PMU to be used on PowerBook5,8 git-svn-id: svn://svn.freebsd.org/base/stable/10@261177 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/powerpc/powermac/pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/powermac/pmu.c b/sys/powerpc/powermac/pmu.c index ca979d8c9..c6bd1b053 100644 --- a/sys/powerpc/powermac/pmu.c +++ b/sys/powerpc/powermac/pmu.c @@ -378,7 +378,7 @@ pmu_attach(device_t dev) pmu_write_reg(sc, vIER, 0x94); /* make sure VIA interrupts are on */ pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp); - pmu_send(sc, PMU_GET_VERSION, 1, cmd, 16, resp); + pmu_send(sc, PMU_GET_VERSION, 0, cmd, 16, resp); /* Initialize child buses (ADB) */ node = ofw_bus_get_node(dev); -- 2.45.0