Re: [RFC PATCH v2 11/11] rust: usb: let drivers choose the transfer allocation flags
From: Oliver Neukum
Date: Mon Jul 06 2026 - 06:30:48 EST
On 03.07.26 05:00, Mike Lothian wrote:
Oliver Neukum review of the synchronous transfer bindings: a USB driver must be able to
specify GFP_KERNEL vs GFP_NOIO/GFP_NOFS (USB shares error handling and power management
across a device's interfaces, so allocations on reset/resume/error paths must not recurse
into I/O). Thread a `gfp: Flags` parameter through bulk_send/bulk_recv/interrupt_recv/
control_send/control_recv (both the Interface wrappers and the Device impls) instead of
hardcoding GFP_KERNEL.
Sorry, I did not read this befor replying to teh first patch.
REgards
Oliver