From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 74D6F311C35 for ; Tue, 14 Jul 2026 17:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784051845; cv=none; b=V3VlLw4mBHVpp6cP5LSmuWqUibKFcrrQpD7ouy8Sb0JVfbDvyLi1v6o5rTx/j3pufIvPBkaI7kUyV5e2QnYgb9kUKyXtLB9EUI9zGNgZN8SIG/+g4fjOoWdI5iAzLOtE9DvT6ETf7XSY39OL6A8E62ZuSJvTVjz98/2v3CYbvCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784051845; c=relaxed/simple; bh=YIcGNvcrqDqllfRXZXrmfjiv0xD1BjskNqrpMQiEHUU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=j+nGxLkUI+uBPHmZpQ9cNU4bdmIbOR9NbgV/H2WkQ1YU4g7u3LTDdwDfGV9cy4EQgFdYEPwtT/J8+kqhAdMhMznVeaRbYTf5xUGeu3XT7k/BpRKayM4aB56Luf5bUi/2nhCU4jzBLLqrg4uOrAfyAwIwmExEjVOqzQG14D1kFZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=DlYidAIS; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="DlYidAIS" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-493f4638f4aso10849265e9.3 for ; Tue, 14 Jul 2026 10:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1784051843; x=1784656643; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xINMORSf53UnWHp8kZa+pVImCWvM4ZrsqhIVQM5QmXM=; b=DlYidAISm+G8ebqxJedQE260AfTrcR0GPIa83a+cXxADzn3ZDL1DHUZOajvaAxLeP0 CRhUWrwnpf6dZsyyt78MQvfqFaurBU7boHaqY98iI5ubz05ZXcCdPJIYCTnJKwGAlMSk Qq9qguauzv19rN5hGftbA+LVgkPp9vSpwD2dvFOsM6TgK7USFfb/QLNTjWkDDvWd6y7i SdB2Dxu8wl7gerYQdgxpUXeuUvA6/eQ5JiUxJfdxIUNFXAqDi3IqTinAQG1KjNGUoIoJ ejlerbOwcYjmx2GxTt5YWjVY2P91SAxs1gjqNniOBviFYHGtKEcgfXJBjN9Nj/SICz71 cSvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784051843; x=1784656643; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xINMORSf53UnWHp8kZa+pVImCWvM4ZrsqhIVQM5QmXM=; b=ByLNqNNw5+rYWEtqX5IkNqiyXUMJEXkv/3nDDGJWGkQigBdfTwmACcQJOYNWW3URI/ ETkcvjst/RkA6Bz41qWvZyiJr0w60YdCs8sejoQ6BWyD0eC96mB2urcN/NAfr2c7jwDy CfTSXlEBzADggJqlJlTRDPnHDkK9Cf61N90yxTG+a7VEGDc37s8Hp1NtIK8CjYvrfWiE XI5hIQnxL8Rf0oVD0M+NbrUkac0r257Zok7/GGs0G7mV4NrUgEK5F7ldT+67/zl1AoAa tpjeNWcLXvyWjPlQ/mzod0+p8VzO+FvUqIZp7bgRUS5X2HC5hJIblLRCGafDTyUmcNns pXWA== X-Forwarded-Encrypted: i=1; AHgh+RqHbL1pKm9fWb8KAZqA46ImakZ2rEG0UeD852wDj2hnoWTbVb/t3v8jzysugnx/NsZMQSdWiZyMkaL/f7E=@vger.kernel.org X-Gm-Message-State: AOJu0Yx5fmllNdaRTx3xm/K4gS3wE9lXElmgoar7zI20LlGSsavJKlA8 N2MkqANqx75A/e3a+NuWfHUqQCVWuNIe+4MF1ZO183LLGFHwAm+7N0P0eSswo4BEmoE= X-Gm-Gg: AfdE7cnU2kcwTIl++pqpdTm3osWR4vlidtPLvfiP/dLmgWpGP9bRt+fKJXLPI4dcH1I btXjXpCZlQWl/edSNjdo/7CFiGruhWVLbV5wpaV+nSZYy3/rLL+cEyM9beIg6EIPfzB/p73Im9B xm+e1pqAsh5ahNohaviPB9N940el5b1ZejYQXAB5yizCpUw3GwVxunORTJ+w9cBnwpcm9wHU/ok ZcQ6tTvRzxHXn7CR/tg/9JyhFP0o2yYYFBw+kFSIXZbNiRWcOm+WCq0iI1zGx3S2UuCFICk6UDw lTG1uSwgImwNC5PQRyLfNc4x5g8TuVhRQcerzQ6JW6494CKDISAnyg9EnVr+Qprp1jKPHsQ9khS mbO/zFSYjmEAEGzMNZVtq60uiloU2eyHL/TSdnVl9rVpw7SBKJjKaDL5Cd+EZxbgaYL18vjaFgw xQo31XtMinyAzzHwo708xd97WvFr4CpgPxc36vKCTxKAXogyc/yBQlN0o= X-Received: by 2002:a05:600c:6692:b0:493:bf84:53d8 with SMTP id 5b1f17b1804b1-493f87e472cmr148524275e9.9.1784051842728; Tue, 14 Jul 2026 10:57:22 -0700 (PDT) Received: from ?IPV6:2001:a61:13c3:1c01:3157:c849:4aaa:fa65? ([2001:a61:13c3:1c01:3157:c849:4aaa:fa65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49508728019sm90481645e9.5.2026.07.14.10.57.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jul 2026 10:57:22 -0700 (PDT) Message-ID: <8d39b5df-1b85-4cb6-88c5-7478d6f4bbed@suse.com> Date: Tue, 14 Jul 2026 19:57:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 2/4] rust: usb: add usb host interface and endpoint abstractions To: Alan Stern , Danilo Krummrich Cc: Oliver Neukum , Colin Braun , Miguel Ojeda , Greg Kroah-Hartman , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?UTF-8?Q?Onur_=C3=96zkan?= , Mauro Carvalho Chehab , Mathias Nyman , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-usb@vger.kernel.org, linux-media@vger.kernel.org, Colin Braun References: <20260712-urb-abstraction-v1-v1-0-9fa011634ead@gmail.com> <20260712-urb-abstraction-v1-v1-2-9fa011634ead@gmail.com> <7e6ebb5b-8ce0-4114-85d6-98cd11a3ad81@suse.com> Content-Language: en-US From: Oliver Neukum In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14.07.26 18:26, Alan Stern wrote: > At first I thought that we ought to have such a guarantee. But in fact > we don't, because the user can at any time write to a USB device's > bConfigurationValue sysfs attribute even if the device isn't bound to a > driver. This can create interfaces which may then be bound to drivers. > I just tried it and it worked. > > This wasn't the original intent, but I don't see any good reason to > prevent people from doing it. I hardly dare ask, but what happens if you unplug the device? Regards Oliver