From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 51155403AE6 for ; Mon, 3 Aug 2026 11:39:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785757161; cv=none; b=ZIh9ATacaGOxfIcyYOnAF6uszk5gQ0gtdlSMgoOclQp7N8zSX0s8zU7Q7yP+8NwjiS/LWFhCKreoL0u9CvJB/i3nFI6kyvjql62ezWc8s3pN9w3szIEV78aNfxRtvsY3tpPGBrng1/3JNAQH/NxNS33Z3P5qAd7Tem4lrPueIg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785757161; c=relaxed/simple; bh=CdfWodirFgw1Ed9n5sstSXJyDj8AhHM/oa+p0Cx4vOg=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=nA2pD0xZtp2hBz2a6/9XNUFafTZjllGNX7JjA9nlZUmQg9tv82XeziudHjW3/111+xnSCQ8K58OwVinDmoIJSUw6y7GADOLYLuCbSs3ZmF8/wUA72QRGP0z+yLCz2EVi6yOjJX6JfdakEVuPFqqG6dOAe6+TREmcE9lafgJDKWQ= 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=QI5HPf7U; arc=none smtp.client-ip=209.85.128.50 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="QI5HPf7U" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-493b966dd74so10668705e9.3 for ; Mon, 03 Aug 2026 04:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wyliodrin.com; s=google; t=1785757156; x=1786361956; 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=WJd2b+nAhn+22H9JaMbhByCLa4f0+AZx4UQqq+PPVEI=; b=QI5HPf7UGqkEazzVR+7a97M8hZb+npAuOjr8fsjViJjeSSBTrtqdIY+SyC+PKMXyMj S64Js/QIlFEBXTSTZhTb1lSuwX4tcjJ3U4vJX3tRBkH4PktyWTr7N3mSxhei7w8MneJ2 7i4FdUxdUeDeEXreaSvab5h+Th7uOPlrtgaqc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785757156; x=1786361956; 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=WJd2b+nAhn+22H9JaMbhByCLa4f0+AZx4UQqq+PPVEI=; b=jujuHGSffytDVhmHvxPAV5xo2TY+SWeXsqmCbK4hhPq9pZ2KiNfqhNMXdTVCi6ccZ/ 6YIDcP8Ra8pqLl9hXQ314VnnKQFmANUrVc/OUVrxtfQaBmuMSVb6YiecJbzUIxzoooJD GUkJJEO5A/Z2HOEZu4b6iWZQH/x45Megpg9vVI2PGuC7iwFeEM/VnOxhY4/LIyqzcVUc mT6Pb/8cDkVese69f4N7thsoJSHn8Ox1Fj2gSy/1OWQx7t2oM6Ia1jbs/Eq2GmYUgPjf A26CDP1DqkcrNVn4ROjoU2OxmhE5vlYrrio4CW5bu637JnBkZqdtx5MH4rYd8tsBO2W3 8UnQ== X-Forwarded-Encrypted: i=1; AHgh+RqUMK9iVSH8OpPXG9zjziXGyoB/+xD5AxDhv3x3rVvkjdITXOCPLF55rgS7k0Kt08joyqLkglR7CBzKiHM=@vger.kernel.org X-Gm-Message-State: AOJu0YzGhC/pI8CI0p70j9MqKyoMUV0RzbA4A7WI5XCksZ/NMYiVIJPs Ax4c0EAA4nktbj85LsWeQtLrd8wlnmQz6DmKzfWbOcsMpq2EREm0FXLAHiDuHp/XxGk= X-Gm-Gg: AR+sD13xUL5eMXR8xcRaN2nKyvGKV+xQDH4U4OIUjQ0HHYPqtBIvPwNjQOWTKzcV169 Y40gn9o9jYhRsECs5Jojz2hmL8FDgAftGqF4eCybDgfwHsTrH5zqDUibEzDScllTvLZTEbE6BaM 1QxDiejFdHjYA5qsm2i9U4AdaI01qrXDOPoV/oBL7BzvBfmEQhgfnTWQrMGF8n7YELwtCAvTIst XCmpQFHLAAwdNIfcer6xPPJKPSa+EIRSqsXut34Gsw69GC5E3Wpx2522bIpsWnyPi/kGhyLf21v 55E1PSYQCPt1fz8KLGMTvoedBYFfMJfrEVFJkeagnvtdP35GU5YRuolRpyvvw9LEKAHuHoThih5 HXp8JG58dWVo0Y03jof4wMLgL7SWHcjjJ4WcXk//O1sK9PF9WAvUfmzAWV1rnGBzOHbLACxwMO3 zQBPdOcv7XsfQFkHFoAaIGF2oAbW47BT6ESb0GeAQvZ2+1yDE7Z/IsA3CjNhGJUjC4DSLx6RtMo W2XeFIxKvmE4KThyWNuJ1Ppi9o16iE33A== X-Received: by 2002:a05:600c:c8c:b0:495:4589:707 with SMTP id 5b1f17b1804b1-4980c6452f7mr203906995e9.5.1785757156437; Mon, 03 Aug 2026 04:39:16 -0700 (PDT) Received: from localhost ([217.73.170.83]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47fd41e2961sm35814991f8f.13.2026.08.03.04.39.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Aug 2026 04:39:15 -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: Mon, 03 Aug 2026 14:39:14 +0300 Message-Id: Cc: "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?= , , , Subject: Re: [PATCH RFC 2/2] rust: usb: add control message send and receive From: "Alrexandru Radovici" To: "Greg Kroah-Hartman" , "Alexandru Radovici" X-Mailer: aerc 0.21.0 References: <20260801-rust-usb_control_msg-v1-0-655bb444b52c@wyliodrin.com> <20260801-rust-usb_control_msg-v1-2-655bb444b52c@wyliodrin.com> <2026080244-ability-education-535f@gregkh> In-Reply-To: <2026080244-ability-education-535f@gregkh> On Sun Aug 2, 2026 at 11:32 AM EEST, Greg Kroah-Hartman wrote: > On Sat, Aug 01, 2026 at 03:01:08AM +0300, Alexandru Radovici wrote: >> Add `Device::send_control_message()` and >> `Device::receive_control_message()`, wrapping usb_control_msg_send() >> and usb_control_msg_recv(), plus a `Request` type describing the >> bmRequestType, bRequest, wValue and wIndex fields of a setup packet. > > Why not keep the names as close as possible to the C calls? You have > switched around the noun/verb use here. Sorry, my bad, I will rename them in v2 to `control_message_send` and `control_message_receive`. Thanks for pointing this out. > thanks, > > greg k-h Alexandru