]> git.dujemihanovic.xyz Git - nameless-os.git/commit
Fix device initialization
authorDuje Mihanović <duje.mihanovic@skole.hr>
Fri, 13 May 2022 14:30:18 +0000 (16:30 +0200)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 22 Jun 2022 16:06:17 +0000 (18:06 +0200)
commitcb9e7e764ed6b14d0b90c27a276193a2011bf399
tree43adb29e7d0a4d2a565c8fe1b17f7b4f0b86788b
parentcbb0204cd5f26375290d72bd4027e42832786f22
Fix device initialization

Before doing a ps2_input_wait(), the code now first reads from the data
port once (for port 1 device) or twice (for port 2 device). This makes
the PS/2 initialization work.
kernel/drivers/input/ps2.c