From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B28E361954 for ; Sat, 1 Aug 2026 02:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785551013; cv=none; b=AU827Frc0n9z/o2+VlF6EMObTwk5RRt+6sfi+neDvf2K520chro1D7vHe0tulM7BmsTNQPOAb5dmTLxpYAXuYYEQMDNYqiUV9i5qdFafOekqqxyWxbwosxxnkkhFnyraqJkJvxysXWCfax6kYfA6xbAxBGAqrbv439JAzxtd6aQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785551013; c=relaxed/simple; bh=rPf3/79Ct9yT++Fk2GOpTyZMRy9tMo2ywlH0Xw9EJ4E=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=F+2VwkmjwQegbLsT5IqxwbIYqoH9k1BjUb4BbZRnz+lTs47mouPJjX1r+SxpvdDFzydUsLfT5M9OvCTZzD/ymT3yl4zELaSxFbKoXelErcLBGRCYut0jcMQxWC4W7/dLC0/PPFUhwuR8n34uQIVGqh8iPxGHDEuk37ldJp3atOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wyliodrin.com; spf=pass smtp.mailfrom=wyliodrin.com; dkim=pass (1024-bit key) header.d=wyliodrin.com header.i=@wyliodrin.com header.b=ess4JQCO; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wyliodrin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wyliodrin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wyliodrin.com header.i=@wyliodrin.com header.b="ess4JQCO" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-4758bd3731bso1709028f8f.0 for ; Fri, 31 Jul 2026 19:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wyliodrin.com; s=google; t=1785551010; x=1786155810; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=rPf3/79Ct9yT++Fk2GOpTyZMRy9tMo2ywlH0Xw9EJ4E=; b=ess4JQCOPWuJyHzzNFCKEGx2grXyfef7H6f4Pb0Qt3kGPKfFltVEKMGSz0DBakiqgw wuQYcRpATaKBr5eHsfdcuf0Qh2aGYfAqOijHhUHUwAgNJ1+AcI84thJiN7b6W8qiH82F mfUcWL1HevNwb9dBZuKIKOKMs2cys3tOWYYjo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785551010; x=1786155810; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rPf3/79Ct9yT++Fk2GOpTyZMRy9tMo2ywlH0Xw9EJ4E=; b=gAWo/4EjgjrOsSo46h/7woYz3aLZ2UFv+zHU81iP+b+oyT/JgN/V36UEZIROSACo1B ZdG/nNTCW3uJfpzywpuUhj3Ua1lwcaET3D7DJkNT5djZdetmPqkIEKWs4hPt+lLFSQOf M2fxV6mnMNb9bYcZxjR1QXmvuBegiV74jQFJFvNoz90EWfRP6jX/moG1pC3k2xyB1rMI DEiI7mQIPXHQBdvincv8M2Qph6r4eg7rTc8K/RbVgus73ZGyMQk111DR7BDXnF+mH8lJ XAraGfRVALTeiemKNqqeu4WybJ7xpn3LL0iFPkhUZE8Plzs/nRuawtSlZsyrB2YiS/UV 4aww== X-Gm-Message-State: AOJu0YxxGHZOCZ2+UDkYiBhFADZEtXOFFyZ/N2ORQxDmaPWBSmsdv72p i3AEtNkR+9CPf6PBm8b51s20KWDVRJ5sfhOD7lDhBkFV7cQH6QQZs8RVUSbBuS6MEkM= X-Gm-Gg: AR+sD13JmmTyO1Psku8RiS9IsvaYLRDTUsgJC8lYLRa/n3oocgHtLOQYME3iwaR3WkY uZEnV84fbUfPPM1Xbu3lKXmWLe4FlfU2e83fL9V9xvyMIb94fhoZnRxGeIANSI/hmSAbwtJQTX8 tr54yOQcG+63f4kBJaQyX82rnEqIS54/LLmUHbHn1RtuJWM/oOc1b5l6NScgjaU+zbrARP8BBg4 ib/cyL+sGWiPHjMor4VilKWjV885h1/41pahhkj8d5lkuLfFqbVQwviZfrq9+3ffw5lS+fdtZQZ maoSDmzdQjFOKecEuLn3gHJBJkeFlPB8cB672Z8Apje+rfS7OjLzI+V3GYpn4IWRA+mi0ebSWf5 xWENHss6BdK6Ax6yb0ADrrHKd0AqMSWbXP8nGnFkC518z5aUUTQjX//13AFeZrFWYDYhlIeqk09 CpRCgqHkxb2OE6uCBenM6EWs4Xc7WHe6sZbFON6ps71UU846gG8lYlTkci5RWS3vDiBVaPZ2MlL XXM4Fm+Nf8ISSvE4hSyhozb+LT0KyO3UA== X-Received: by 2002:a05:6000:480c:b0:47d:f6a5:1fbb with SMTP id ffacd0b85a97d-47fd7270145mr3362412f8f.13.1785551009970; Fri, 31 Jul 2026 19:23:29 -0700 (PDT) Received: from localhost ([86.122.199.88]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47fd456a6d7sm12176466f8f.19.2026.07.31.19.23.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Jul 2026 19:23:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 01 Aug 2026 05:23:26 +0300 Message-Id: Cc: , , Subject: Re: [PATCH RFC 0/2] rust: usb: abstractions towards the port of usbsevseg.c to Rust From: "Alrexandru Radovici" To: "Alexandru Radovici" , "Greg Kroah-Hartman" , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Danilo Krummrich" , "Daniel Almeida" , "Tamir Duberstein" , "Alexandre Courbot" , =?utf-8?q?Onur_=C3=96zkan?= X-Mailer: aerc 0.21.0 References: <20260801-rust-usb_control_msg-v1-0-124cf21c82ee@wyliodrin.com> In-Reply-To: <20260801-rust-usb_control_msg-v1-0-124cf21c82ee@wyliodrin.com> On Sat Aug 1, 2026 at 2:59 AM EEST, Alexandru Radovici wrote: Fixed some mistakes, will include them in v2: - use `Duration` instead of `i32` for control functions timeout - fix control function 0 value timeout from "for ever" to `USB_MAX_SYNCHRON= OUS_TIMEOUT` - add `#[inline]` to short functions - use `u16::from_le` to read `wMaxPacketSize` - rename `Generic` generic type to `Dir` - impl `max_nak_rate` for `HostEndpoint` - make data `&mut [u8]` for `receive_control_message` Alexandru