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



The following reply was made to PR kern/52070; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: Marc Baudoin <babafou%babafou.eu.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/52070: Keyboard freeze after using touchpad
Date: Tue, 14 Mar 2017 14:25:43 +0100

 Just to see if this gets us any further, could you try the patch below
 (and PMSDEBUG, ...)
 
 Martin
 
 Index: pckbc.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/ic/pckbc.c,v
 retrieving revision 1.59
 diff -u -p -r1.59 pckbc.c
 --- pckbc.c	14 Jul 2016 10:19:06 -0000	1.59
 +++ pckbc.c	14 Mar 2017 13:24:22 -0000
 @@ -278,13 +278,13 @@ pckbc_attach(struct pckbc_softc *sc)
  {
  	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 @@ pckbc_attach(struct pckbc_softc *sc)
  		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);
  
 @@ -381,6 +383,7 @@ pckbc_attach(struct pckbc_softc *sc)
  #endif
  		t->t_haveaux = 0;
  	}
 +#endif
  
  nomouse:
  	/* enable needed interrupts */
 


Home | Main Index | Thread Index | Old Index