patch-2.4.20 linux-2.4.20/drivers/macintosh/adb.c
Next file: linux-2.4.20/drivers/macintosh/apm_emu.c
Previous file: linux-2.4.20/drivers/macintosh/Makefile
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu Nov 28 15:53:13 2002
- Orig file:
linux-2.4.19/drivers/macintosh/adb.c
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/macintosh/adb.c linux-2.4.20/drivers/macintosh/adb.c
@@ -311,9 +311,11 @@
#ifdef CONFIG_PMAC_PBOOK
pmu_register_sleep_notifier(&adb_sleep_notifier);
#endif /* CONFIG_PMAC_PBOOK */
+#ifdef CONFIG_PPC
if (machine_is_compatible("AAPL,PowerBook1998") ||
machine_is_compatible("PowerBook1,1"))
sleepy_trackpad = 1;
+#endif /* CONFIG_PPC */
init_completion(&adb_probe_task_comp);
adbdev_init();
adb_reset_bus();
@@ -769,24 +771,24 @@
/* If a probe is in progress or we are sleeping, wait for it to complete */
down(&adb_probe_mutex);
- up(&adb_probe_mutex);
/* Special case for ADB_BUSRESET request, all others are sent to
the controller */
if ((req->data[0] == ADB_PACKET)&&(count > 1)
&&(req->data[1] == ADB_BUSRESET)) {
ret = do_adb_reset_bus();
+ up(&adb_probe_mutex);
atomic_dec(&state->n_pending);
if (ret == 0)
ret = count;
goto out;
} else {
req->reply_expected = ((req->data[1] & 0xc) == 0xc);
-
if (adb_controller && adb_controller->send_request)
ret = adb_controller->send_request(req, 0);
else
ret = -ENXIO;
+ up(&adb_probe_mutex);
}
if (ret != 0) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)