NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/52070: Keyboard freeze after using touchpad
Date: Tue, 14 Mar 2017 16:30:25 +0100
From: Marc Baudoin <babafou%babafou.eu.org@localhost>
Message-ID: <20170314153025.GK954%shuttle.babafou.eu.org@localhost>
| Patch:
Sorry, that didn't get applied as I intended, I should have sent a diff,
not just words...
Try the following patch instead, this applies to the original file,
and includes Martin's patch, as modified the way I intended you to
modify it.
No guarantee that this will make anything work, but it might supply
some more info.
You can use this with, or without, the acpi config of the pckbc
(which seems to make no difference) - or both ways...
kre
--- /local/netbsd/src/sys/dev/ic/pckbc.c 2016-07-30 13:54:12.000000000 +0700
+++ pckbc.c 2017-03-15 06:48:34.000000000 +0700
@@ -278,13 +278,13 @@
{
struct pckbc_internal *t;
bus_space_tag_t iot;
- bus_space_handle_t ioh_d, ioh_c;
- int res;
+ bus_space_handle_t /* ioh_d, */ ioh_c;
+ // int res;
u_char cmdbits = 0;
t = sc->id;
iot = t->t_iot;
- ioh_d = t->t_ioh_d;
+ // ioh_d = t->t_ioh_d;
ioh_c = t->t_ioh_c;
t->t_pt = pckbport_attach(t, &pckbc_ops);
@@ -348,6 +348,8 @@
goto nomouse;
}
t->t_haveaux = 1;
+
+#if 0
bus_space_write_1(iot, ioh_d, 0, 0x5a); /* a random value */
res = pckbc_poll_data1(t, PCKBC_AUX_SLOT);
@@ -372,8 +374,10 @@
* We are satisfied if there is anything in the
* aux output buffer.
*/
+#endif
if (pckbc_attach_slot(sc, PCKBC_AUX_SLOT))
cmdbits |= KC8_MENABLE;
+#if 0
} else {
#ifdef PCKBCDEBUG
@@ -381,6 +385,7 @@
#endif
t->t_haveaux = 0;
}
+#endif
nomouse:
/* enable needed interrupts */
Home |
Main Index |
Thread Index |
Old Index