OpenBSD cvs log

created 2021-01-30T23:17:52Z
begin 2021-01-29T00:00:00Z
end 2021-01-30T00:00:00Z
path src/sys
commits 9

date 2021-01-29T00:31:41Z
author rob
files src/sys/kern/kern_acct.c log diff annotate
message Whitespace.

date 2021-01-29T08:48:19Z
author jsg
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message recognise Cortex-A78C

date 2021-01-29T10:47:24Z
author claudio
files src/sys/kern/vfs_subr.c log diff annotate
message Use NULL instead of 0 to clear v_socket pointer (which actually clears all
of the v_un pointers).
OK jsg@ mvs@

date 2021-01-29T11:44:06Z
author edd
files src/sys/dev/usb/usbdi.c log diff annotate
message Don't rely on USB interfaces being at compliant indices.

When obtaining an interface handle, we currently rely on the device being
properly USB compliant, and thus the interface being at the correct index in
the interfaces array.

However, some devices present their indices incorrectly. For example, the
following audio device exposes interfaces 0, 1 and 3, in that order (skipping
interface 2 entirely):

uaudio2 at uhub4 port 4 configuration 1 interface 3 "E+ Corp. DAC Audio" rev 1.10/0.01 addr 2
uaudio2: class v1, full-speed, async, channels: 2 play, 0 rec, 3 ctls

This means that that the audio stream interface (number 3) is not found at the
expected index of 2, and this causes looking up the handle to fail.

This change makes usbd_device2interface_handle() search for the right
interface, instead of assuming it will be at the right index. Although this is
a little slower, note that this routine not very frequently called and there
are typically not hundreds of interfaces on a typical USB device.

This fixes the above E+ Corp device, and one other uaudio device reported
broken by a user.

With input from, tested by, and OK ratchov@, mglocker@ and kettenis@.

Many thanks!

date 2021-01-29T16:22:34Z
author deraadt
files src/sys/arch/alpha/stand/boot/boot.c log diff annotate
src/sys/arch/alpha/stand/boot/conf.c log diff annotate
message repair declerations to satisfy -fno-common
ok kettenis

date 2021-01-29T16:22:36Z
author deraadt
files src/sys/arch/alpha/stand/netboot/dev_net.c log diff annotate
message repair declerations to satisfy -fno-common
ok kettenis

date 2021-01-29T16:59:41Z
author sthen
files src/sys/dev/usb/uhid.c log diff annotate
src/sys/dev/usb/uhidev.c log diff annotate
src/sys/dev/usb/ukbd.c log diff annotate
src/sys/dev/usb/ums.c log diff annotate
src/sys/dev/usb/upd.c log diff annotate
src/sys/dev/usb/usb.c log diff annotate
message update some usb.org URLs following reorganisation, add a new one for upd
partly from Alessandro Ricci

date 2021-01-29T17:06:19Z
author sthen
files src/sys/dev/usb/if_umb.c log diff annotate
src/sys/dev/usb/if_umb.h log diff annotate
src/sys/dev/usb/mbim.h log diff annotate
message update usb.org URLs

date 2021-01-29T17:12:19Z
author sthen
files src/sys/dev/usb/if_cdce.c log diff annotate
src/sys/dev/usb/ulpt.c log diff annotate
src/sys/dev/usb/umass.c log diff annotate
src/sys/dev/usb/umodem.c log diff annotate
message update remaining usb.org URLs