<feed xmlns='http://www.w3.org/2005/Atom'>
<title>starfive-tech/u-boot.git/common/usb_kbd.c, branch master</title>
<subtitle>StarFive Tech U-Boot for VisionFive (JH7110) boards (mirror)</subtitle>
<id>https://git.radix-linux.su/starfive-tech/u-boot.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/starfive-tech/u-boot.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/'/>
<updated>2021-02-26T14:30:55+00:00</updated>
<entry>
<title>usb: kbd: Also accept keyboards with Interrupt OUT endpoint</title>
<updated>2021-02-26T14:30:55+00:00</updated>
<author>
<name>Stefan Brüns</name>
<email>stefan.bruens@rwth-aachen.de</email>
</author>
<published>2021-02-20T16:26:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=ba0b984bb0246b5ceea29fd0ac9d8b011a30f77b'/>
<id>urn:sha1:ba0b984bb0246b5ceea29fd0ac9d8b011a30f77b</id>
<content type='text'>
The OUT endpoint can just be ignored as it is not used, just as the
corresponding Set_Report request for IN-only interfaces. E.g. the
Linux gadget hid keyboard also provides an interrupt endpoint.

Also cleanup confusing debug messages like "found set protocol", which
is printed when a keyboard device is found, while the Set_Protocol request
is issued quite some time later.

Signed-off-by: Stefan Brüns &lt;stefan.bruens@rwth-aachen.de&gt;
</content>
</entry>
<entry>
<title>usb: kbd: destroy device after console is stopped</title>
<updated>2021-02-16T16:16:08+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2021-02-11T15:09:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=eb5fd9e46c11ea41430d9c5bcc81d4583424216e'/>
<id>urn:sha1:eb5fd9e46c11ea41430d9c5bcc81d4583424216e</id>
<content type='text'>
In case of IOMUX enabled it assumes that console devices in the list
are available to get them stopped properly via -&gt;stop() callback.
However, the USB keyboard driver violates this assumption and tries
to play tricks so the device get destroyed while being listed as
an active console.

Swap the order of device deregistration and IOMUX update along with
converting to use iomux_replace_device() jelper to avoid the use-after-free.

Fixes: 3cbcb2892809 ("usb: Fix usb_kbd_deregister when console-muxing is used")
Fixes: 8a8348703081 ("dm: usb: Add a remove() method for USB keyboards")
Reported-by: Nicolas Saenz Julienne &lt;nsaenzjulienne@suse.de&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>common: Drop log.h from common header</title>
<updated>2020-05-19T01:19:18+00:00</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2020-05-10T17:40:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=f7ae49fc4f363a803dab3be078e93ead8e75a8e9'/>
<id>urn:sha1:f7ae49fc4f363a803dab3be078e93ead8e75a8e9</id>
<content type='text'>
Move this header out of the common header.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>usb: kbd: move USB_KBD_BOOT_REPORT_SIZE to usb.h</title>
<updated>2019-11-25T12:28:53+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2019-11-23T17:15:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=e91a411938afcbdf191df52448216e41bbcbd288'/>
<id>urn:sha1:e91a411938afcbdf191df52448216e41bbcbd288</id>
<content type='text'>
Move constant USB_KBD_BOOT_REPORT_SIZE. This allows us to reuse it.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>usb: kbd: implement special keys</title>
<updated>2019-11-25T12:28:53+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2019-11-23T17:15:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=87e91bccaee63d70fd3ada0bee5e861edf8967a5'/>
<id>urn:sha1:87e91bccaee63d70fd3ada0bee5e861edf8967a5</id>
<content type='text'>
Provide support for F1-F12, Insert, Delete, Home, End, Page Up, Page Down.

As this leads to a size increase provide a customizing setting
CONFIG_USB_KEYBOARD_FN_KEYS.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
</content>
</entry>
<entry>
<title>usb: kbd: simplify coding for arrow keys</title>
<updated>2019-11-25T12:28:53+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2019-11-23T17:15:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=3352c2114b69aeadf54feb8140071a55fb580c30'/>
<id>urn:sha1:3352c2114b69aeadf54feb8140071a55fb580c30</id>
<content type='text'>
Avoid duplicate translation of arrow key codes.

Reduce code size by avoiding strings and eliminating
usb_kbd_put_sequence().

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
</content>
</entry>
<entry>
<title>usb: kbd: signature of usb_kbd_put_queue()</title>
<updated>2019-11-25T12:28:53+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2019-11-23T17:15:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=28dfa7d80d8ddf7ef795f518230964d2c393b25b'/>
<id>urn:sha1:28dfa7d80d8ddf7ef795f518230964d2c393b25b</id>
<content type='text'>
usb_kbd_buffer is defined as u8[]. So let usb_kbd_put_queue() use u8 as
type of the parameter for the new byte.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
</content>
</entry>
<entry>
<title>usb: kbd: fix typo</title>
<updated>2019-11-25T12:28:53+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2019-11-23T17:15:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=216db3af2c31303ba2388b51fa064693b8c47ac2'/>
<id>urn:sha1:216db3af2c31303ba2388b51fa064693b8c47ac2</id>
<content type='text'>
%s/a interrupt/an interrupt/

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>usb: Add nonblock argument to submit_int_msg</title>
<updated>2019-09-11T08:11:29+00:00</updated>
<author>
<name>Michal Suchanek</name>
<email>msuchanek@suse.de</email>
</author>
<published>2019-08-18T08:55:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=3437121c037f502a3b0faaec97059777034a1ead'/>
<id>urn:sha1:3437121c037f502a3b0faaec97059777034a1ead</id>
<content type='text'>
This will be used to implement non-blocking keyboard polling in case of
errors.

Signed-off-by: Michal Suchanek &lt;msuchanek@suse.de&gt;
</content>
</entry>
<entry>
<title>usb: usb_submit_int_msg -&gt; usb_int_msg</title>
<updated>2019-09-11T08:11:29+00:00</updated>
<author>
<name>Michal Suchanek</name>
<email>msuchanek@suse.de</email>
</author>
<published>2019-08-18T08:55:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=fdd135bf8ea475b61f3e771cf67e840544c415ee'/>
<id>urn:sha1:fdd135bf8ea475b61f3e771cf67e840544c415ee</id>
<content type='text'>
This aligns naming with usb_bulk_msg and usb_control_msg.

Signed-off-by: Michal Suchanek &lt;msuchanek@suse.de&gt;
</content>
</entry>
</feed>
