History log of /openbsd-src/sys/dev/usb/ums.c (Results 1 – 25 of 53)
Revision Date Author Comments
# e5fe1651 26-May-2024 mglocker <mglocker@openbsd.org>

Fix suspend/resume for ums(4) and umt(4); Calling hidm*_attach not at the
end of the device driver attach function can cause accessops functions to
be called by wscons(4) *before* the device has com

Fix suspend/resume for ums(4) and umt(4); Calling hidm*_attach not at the
end of the device driver attach function can cause accessops functions to
be called by wscons(4) *before* the device has completed its attach
procedure. In this case this has led the device driver to ignore
interrupts after resume, because during resume ums_disable/umt_disable
were called last, *after* ums_enable/umt_enable.

OK phessler@

show more ...


# 81508fe3 23-May-2024 jsg <jsg@openbsd.org>

remove unneeded includes; ok mpi@


# 36b6d2a9 22-Nov-2021 anton <anton@openbsd.org>

Add missing claim multiple report ids conditionals to uhidev drivers.


# 6cdbbe9b 12-Sep-2021 anton <anton@openbsd.org>

Revert recent uhidev report size changes. It's reported to break fido devices
for as of now unknown reasons.


# adb06565 10-Sep-2021 anton <anton@openbsd.org>

Instead of letting uhidev drivers get the report sizes, do it once in
uhidev and pass the same sizes as part of the attach arguments. Makes
the uhidev drivers a bit less repetitive.

It might look te

Instead of letting uhidev drivers get the report sizes, do it once in
uhidev and pass the same sizes as part of the attach arguments. Makes
the uhidev drivers a bit less repetitive.

It might look tempting to let uhidev assign the sizes after a driver has
attached, removing the need to repeat this logic in each driver. This
does however not work since the input size must be known while calling
uhidev_open() in order to open the interrupt pipe; and uhidev_open() is
called from several attach routines.

Note that this change only works and applies to when attaching to a
single report ID.

ok jcs@

show more ...


# 8565b6d4 24-Mar-2021 jcs <jcs@openbsd.org>

Define a USB quirk for devices that need to keep their pipes open at
all times, before the device is enabled and after the device is
disabled by wscons.

This was originally needed by umt for the Mic

Define a USB quirk for devices that need to keep their pipes open at
all times, before the device is enabled and after the device is
disabled by wscons.

This was originally needed by umt for the Microsoft Surface Type
Cover to avoid it resetting (or at least detaching and reattaching)
when the touchpad was touched while at the console.

A similar problem occurs with the Pinebook Pro's keyboard when
switching from X to the console due to the touchpad getting
disabled, so add it to ums as well.

with and ok kurt

show more ...


# a007768d 29-Jan-2021 sthen <sthen@openbsd.org>

update some usb.org URLs following reorganisation, add a new one for upd
partly from Alessandro Ricci


# 3eae1d33 10-Jan-2021 thfr <thfr@openbsd.org>

add quirks for Kensington Slimblade trackball via new vendor buttons
quirks.
Original diff from Sven M. Hallberg < pesco () khjk ! org >
Diff updated and tested by Timo Myyra
ok phessler@


# 0eaeb466 23-Aug-2020 mglocker <mglocker@openbsd.org>

uhidev(4) does apply the SET_IDLE request to all its child drivers
today. This doesn't seem to be right, since SET_IDLE limits the
reporting frequency for interrupt IN endpoints, normally only requi

uhidev(4) does apply the SET_IDLE request to all its child drivers
today. This doesn't seem to be right, since SET_IDLE limits the
reporting frequency for interrupt IN endpoints, normally only required
on keyboard and mouse-like input devices. We noticed recently that
other device types, like e.g. the Cyrus soundKey uaudio(4), will stall
after the SET_IDLE request has been issued.

Therefore we move the SET_IDLE request only to the uhidev(4) child
drivers which seem to require this request. Those we have identified
to be; ukbd(4), ums(4), umstc(4), umt(4), utpms(4), and uwacom(4).

Suggested and ok mpi@

show more ...


# 6ada4dc5 17-Jun-2020 bru <bru@openbsd.org>

Fix broken HID descriptors of Elecom trackballs.

The report descriptors specify an invalid button count for models
with 6 or 8 buttons.

Thanks to Sivaram Gowkanapal, who provided the core of this p

Fix broken HID descriptors of Elecom trackballs.

The report descriptors specify an invalid button count for models
with 6 or 8 buttons.

Thanks to Sivaram Gowkanapal, who provided the core of this patch.

ok mpi@

show more ...


# caf59bf3 12-Jan-2016 jcs <jcs@openbsd.org>

properly initialize quirks before sending them to hid layer, broken
during hid abstraction

problem noticed and fix tested by abieber


# 6238f091 09-Jan-2016 jcs <jcs@openbsd.org>

revert manual additions of hid.h now that usbhid.h brings it in


# 8a83145e 08-Jan-2016 jcs <jcs@openbsd.org>

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi

show more ...


# ce776e0e 28-Dec-2014 matthieu <matthieu@openbsd.org>

Attach USB HID devices from the Generic Destop page, usage pointer to
ums. This is how the USB Tablet from Qemu in libvirt/kvm shows up and
it works with ums(4). ok mpi@


# 4aea176b 21-Aug-2014 mpi <mpi@openbsd.org>

Now that DVACT_DEACTIVATE is propagated to the children of a device when
a driver does not implement a specific *_activate() handler and that our
USB stack sets the dying flag before detaching a devi

Now that DVACT_DEACTIVATE is propagated to the children of a device when
a driver does not implement a specific *_activate() handler and that our
USB stack sets the dying flag before detaching a device, these specific
handlers can die.

show more ...


# 893bbb9b 15-Nov-2013 pirofti <pirofti@openbsd.org>

Clean-up the HID environment.


This set of drivers were very very dirty.

i/ Clean-up the match/attach multi-casting hackjob
- stop casting aux to every attach arg in existance
- be consistent abo

Clean-up the HID environment.


This set of drivers were very very dirty.

i/ Clean-up the match/attach multi-casting hackjob
- stop casting aux to every attach arg in existance
- be consistent about casting it only to uhidev_attach_arg
- fetch the usb_attach_arg from above where needed

ii/ Sort out the activate routines
- leave the deactivation to the parent (uhidev(4))
- ditch the sc_dying flag in favour of usbd_is_dying()

iii/ Get closer to keeping all the usb hid information in the uhidev
structure (one uhidev per reportID)
- store the usbd_device in the uhidev
- use it consistently instead of always peaking at the parent's
soft state

Okay mpi@

show more ...


# ea51e53d 15-Aug-2013 edd <edd@openbsd.org>

Blast uhts(4). This code was merged into ums(4) last week.

OK mpi@


# 5a046de6 09-Aug-2013 edd <edd@openbsd.org>

Merge uhts(1) into ums(1). The code is amost the same, so no need to duplicate.

A part of ongoing work to improve touchscreen/digitiser support.

A diff will follow shortly to remove uhts(1).

OK ma

Merge uhts(1) into ums(1). The code is amost the same, so no need to duplicate.

A part of ongoing work to improve touchscreen/digitiser support.

A diff will follow shortly to remove uhts(1).

OK matthieu@, with input from mpi@

show more ...


# 0b1c7607 03-Jul-2011 matthew <matthew@openbsd.org>

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ al

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago

show more ...


# 68e6edf7 04-Mar-2011 kettenis <kettenis@openbsd.org>

Add TouchScreen support. Makes newer Gunze USB TouchScreen devices work.

ok deraadt@


# 8530dcc6 02-Aug-2010 miod <miod@openbsd.org>

Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID and
USB_SET_REPORT ioctls in ukbd and ums.
This allows usbhidctl to be used on these devices e.g. to dump the report
descriptor of troubl

Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID and
USB_SET_REPORT ioctls in ukbd and ums.
This allows usbhidctl to be used on these devices e.g. to dump the report
descriptor of troublesome models.
ok deraadt@

show more ...


# f77164e9 31-Jul-2010 miod <miod@openbsd.org>

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


# e78728c7 13-Oct-2009 pirofti <pirofti@openbsd.org>

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


# 18228f2b 26-Jul-2009 miod <miod@openbsd.org>

If we recognize a specific mouse model where we need to override locator
information, do this after the locator information has been obtained.


# d874cce4 26-Jun-2008 ray <ray@openbsd.org>

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code t

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

show more ...


123