Hi,

On 2020-07-03 11:06, Tomasz CEDRO wrote:
+1 for user enabled actions like usb reset and kernel driver detach:-)
maybe based on a sysctl like usermount, i.e. usb_allow_user_device_reset
and usb_allow_user_kernel_driver_detach..?

One would allow user to reset a usb device. This is sometimes required to
restore device or change its configration.

Second would allow user for example to unload ucom driver that is attached
to a device which does not seem possible right now and causes problem with
i.e. pyOCD / some debug probes.

Currently we use PRIV_DRIVER in the USB stack. Not sure how a user gets PRIV_DRIVER rights.

Tomasz: Feel free to suggest a patch for this after testing.

--HPS
_______________________________________________
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to