]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r303765 and r304571:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Sep 2016 06:51:49 +0000 (06:51 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 9 Sep 2016 06:51:49 +0000 (06:51 +0000)
commit824642c21754d474d2267ba2db7ff3b9f4f8aa90
treefff8fc568085ce8748006a29ddff5bb551105a98
parent5853d3cdbd282e70893425c70e87b7f69c535799
MFC r303765 and r304571:
Keep a reference count on USB keyboard polling to allow recursive
cngrab() during a panic for example, similar to what the AT-keyboard
driver is doing.

Make the UKBD USB transfers double buffered and set them up one by one,
so they are memory independent which allows for handling panics
triggered by the keyboard driver itself, typically via CTRL+ALT+ESC
sequences. Or if the USB keyboard driver was processing a key at the
moment of panic. Allow UKBD to be attached while keyboard polling is active.

git-svn-id: svn://svn.freebsd.org/base/stable/8@305647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/input/ukbd.c