Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Josuah Demangeon
"Theo de Raadt" wrote: > Josuah Demangeon wrote: > > > > The author majbthrd also says all CMSIS-DAP adapters should provide > > "CMSIS-DAP" somewhere in the product string as a way to detect them > > if wanted. > > Devices are not detected by the string. The vendor/product is used > instead.

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Theo de Raadt
Josuah Demangeon wrote: > Jonathan Gray wrote: > > Index: usbdevs > > === > > RCS file: /cvs/src/sys/dev/usb/usbdevs,v > > retrieving revision 1.747 > > diff -u -p -r1.747 usbdevs > > --- usbdevs 23 Jun 2022 00:31:37 -

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Mark Kettenis
> Date: Wed, 24 Aug 2022 00:57:40 +1000 > From: Jonathan Gray > > On Tue, Aug 23, 2022 at 08:24:24AM -0600, Theo de Raadt wrote: > > Jonathan Gray wrote: > > > > > > > > > > I could recompile and see the device listed as ugen(4): > > > > > > > > $ dmesg | grep pico-debug > > > > ugen1 at

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Josuah Demangeon
Jonathan Gray wrote: > Index: usbdevs > === > RCS file: /cvs/src/sys/dev/usb/usbdevs,v > retrieving revision 1.747 > diff -u -p -r1.747 usbdevs > --- usbdevs 23 Jun 2022 00:31:37 - 1.747 > +++ usbdevs 23 Aug 2022

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Jonathan Gray
On Tue, Aug 23, 2022 at 09:01:08AM -0600, Theo de Raadt wrote: > Jonathan Gray wrote: > > > Index: usbdevs > > === > > RCS file: /cvs/src/sys/dev/usb/usbdevs,v > > retrieving revision 1.747 > > diff -u -p -r1.747 usbdevs > > ---

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Theo de Raadt
Jonathan Gray wrote: > Index: usbdevs > === > RCS file: /cvs/src/sys/dev/usb/usbdevs,v > retrieving revision 1.747 > diff -u -p -r1.747 usbdevs > --- usbdevs 23 Jun 2022 00:31:37 - 1.747 > +++ usbdevs 23 Aug 2022

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Jonathan Gray
On Tue, Aug 23, 2022 at 08:24:24AM -0600, Theo de Raadt wrote: > Jonathan Gray wrote: > > > > > > > I could recompile and see the device listed as ugen(4): > > > > > > $ dmesg | grep pico-debug > > > ugen1 at uhub4 port 2 "pico-debug CMSIS-DAP" rev 1.10/10.05 addr 2 > > > > "Peter

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Theo de Raadt
Jonathan Gray wrote: > > > > I could recompile and see the device listed as ugen(4): > > > > $ dmesg | grep pico-debug > > ugen1 at uhub4 port 2 "pico-debug CMSIS-DAP" rev 1.10/10.05 addr 2 > > "Peter Lawrence CMSIS-DAP Dapper Miser" is a rather large string > especially as the device

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-23 Thread Jonathan Gray
On Mon, Aug 22, 2022 at 08:33:45PM +0200, Josuah Demangeon wrote: > The pico-debug [1] is a debug firmware, loaded on a Raspberry Pi RP2040 > microcontroller to provide a standard debug interface. > The host support tool OpenOCD already upstreamed it [2]. > > But it does not work with OpenBSD

Re: [PATCH] Exclude pico-debug from the uhid driver

2022-08-22 Thread Stuart Henderson
On 2022/08/22 20:33, Josuah Demangeon wrote: > The pico-debug [1] is a debug firmware, loaded on a Raspberry Pi RP2040 > microcontroller to provide a standard debug interface. > The host support tool OpenOCD already upstreamed it [2]. > > But it does not work with OpenBSD yet, as uhid(4) takes

[PATCH] Exclude pico-debug from the uhid driver

2022-08-22 Thread Josuah Demangeon
The pico-debug [1] is a debug firmware, loaded on a Raspberry Pi RP2040 microcontroller to provide a standard debug interface. The host support tool OpenOCD already upstreamed it [2]. But it does not work with OpenBSD yet, as uhid(4) takes over the RP2040 once plugged, blocking full libusb access