Hi people,

the patch below the signature makes the touchpad on my new laptop work.
pms(4) didnt' attach previously because the AUX slot on the keyboard was
not enabled.

Since the patch isn't a proper solution, I was wondering whether there's
a quirks mechanism for pckbc, similar to what e.g. some of the USB HID
drivers do for things like joysticks with weird button mappings.

-- 
        Gregor

Index: dev/ic/pckbc.c
===================================================================
RCS file: /mnt/media/cvs/src/sys/dev/ic/pckbc.c,v
retrieving revision 1.49
diff -u -p -r1.49 pckbc.c
--- dev/ic/pckbc.c      24 May 2015 10:57:47 -0000      1.49
+++ dev/ic/pckbc.c      23 Oct 2016 21:19:56 -0000
@@ -378,6 +378,8 @@ pckbc_attach(struct pckbc_softc *sc, int
        bus_space_write_1(iot, ioh_d, 0, 0x5a); /* a random value */
        res = pckbc_poll_data1(iot, ioh_d, ioh_c, PCKBC_AUX_SLOT, 1);

+       t->t_flags |= PCKBC_NEED_AUXWRITE;
+
        if (ISSET(t->t_flags, PCKBC_NEED_AUXWRITE)) {
                /*
                 * The following code is necessary to find the aux port on the

Reply via email to