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.

Reported by:	bz
Tested by:	bz
MFC after:	1 week
This commit is contained in:
Andriy Gapon 2020-06-04 13:18:21 +00:00
parent f95cfecbb2
commit e84d431622
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361788

View File

@ -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);
}