shithub: riscv

Download patch

ref: a327175a3c01d18e3e4c061ce4579cc420ee3561
parent: 6d199d6a314d268d10b1e4b4c70c26f0b36a6f75
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Sep 30 13:06:58 EDT 2023

nusb/usbd: attach spam protection for reset loops and flanky devices

When attach happens on a port within Attachdelay (3 seconds),
we count it as a repeated attach and if this happens
Attachcount (5) times in a row, we print an error and
refuse to attach the device.

Ori needs this as he has a usb hid device rgb led controller
in his computer that just gives read errors and causes
a continuous reset loop on the port, spamming the console.