svn commit: r362041 - stable/12/sys/dev/superio

Andriy Gapon avg at FreeBSD.org
Thu Jun 11 05:28:09 UTC 2020


Author: avg
Date: Thu Jun 11 05:28:08 2020
New Revision: 362041
URL: https://svnweb.freebsd.org/changeset/base/362041

Log:
  MFC r361788: superio: do not assume that current LDN cannot change after config exit
  
  That assumption should be true when superio(4) uses the hardware
  exlusively.  But it turns out to not hold on some real systems.
  So, err on the side of correctness rather than performance.
  Clear current_ldn in sio_conf_exit.

Modified:
  stable/12/sys/dev/superio/superio.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/superio/superio.c
==============================================================================
--- stable/12/sys/dev/superio/superio.c	Thu Jun 11 05:26:23 2020	(r362040)
+++ stable/12/sys/dev/superio/superio.c	Thu Jun 11 05:28:08 2020	(r362041)
@@ -190,6 +190,7 @@ static void
 sio_conf_exit(struct siosc *sc)
 {
 	sc->methods->exit(sc->io_res, sc->io_port);
+	sc->current_ldn = 0xff;
 	mtx_unlock(&sc->conf_lock);
 }
 


More information about the svn-src-all mailing list