Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3729715ybe; Sun, 8 Sep 2019 20:48:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzPihJ32VEh8zA09GxV1iVkNh8I3t3vvnIqDSzaM53o0KfUIHHgwMQkfzsZcbgNVCTpdKm X-Received: by 2002:a17:906:6dc2:: with SMTP id j2mr4838266ejt.268.1568000902604; Sun, 08 Sep 2019 20:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568000902; cv=none; d=google.com; s=arc-20160816; b=qj82EEHZAAB9mrgPEBed9oCOCJgOodfqom2M31sqHMqBOfLd6QKYBVOsSRN131AaMy UAtnhnIi7iRdq8+nWdjPDxHkK2oTAvfHAf0WM6nDYejqTC7cTxf1HHvNmZBNHTCi13Eq Y8OfK8VaHUMBW+EdG4HSjeIpvIWvAvQPc03I1QflRomV4TrtIOaiYC7MzmuV5PHLvIMO 9jDgMKMxo0O9+tFjxKxnfVT1DW7ugFeBUhbhksvAt09Kg3qJZGBCpZkJw8AwQfdabExf 1GHMb8JPseF+8jCCNKcGZdS8VaowFsoXSb7ZRhddakuB+Q4R/QfHqeigeY8n1Z0eSE8U Pj+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=WoI2DANvdlLNFNs8j1VBG6ovuY5okFFClo7jU/zz6Xg=; b=MaZIheOpkz2XMytaHJYXvfBxbI8RyWNFa/dQN2jzNCIA3jTqIFIAhKdW8xls9VaCun FS4GCjMYQ8vuO5Qt2UuIwIztU1ntiQREjT5JBMjTdYM4akxQTN2rl+wq/g4hRiNadsiO rnjH20Cn0ZIrw6wquH2HXjoUHS36wyvDB8N5OTYcxOsnp+x5/p/1tcXL4rRm0qF/wK6k wPNAJzmJB/bGjgsIx99rxQa/sNXTxy5tORq7U0yIvBr5W5GLdJShQVaUjSqCeWHT/8tS COSwU67wn/T6X14r3MHt2+lQGplVRojFTDTcInkylRnyns3svesH8JgjnSBFGJq/7Q1Z V6Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e48si8174183edd.239.2019.09.08.20.47.59; Sun, 08 Sep 2019 20:48:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404177AbfIGTKN (ORCPT + 99 others); Sat, 7 Sep 2019 15:10:13 -0400 Received: from netrider.rowland.org ([192.131.102.5]:39091 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727014AbfIGTKN (ORCPT ); Sat, 7 Sep 2019 15:10:13 -0400 Received: (qmail 1746 invoked by uid 500); 7 Sep 2019 15:10:11 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Sep 2019 15:10:11 -0400 Date: Sat, 7 Sep 2019 15:10:11 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Julius Werner cc: Greg KH , Oliver Neukum , USB Storage list , Dan Williams , Kernel development list , USB list Subject: Re: [PATCH] usb: storage: Add ums-cros-aoa driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Sep 2019, Julius Werner wrote: > FWIW, I found a suitable workaround now to get my use case working > with existing kernels: I can do the mode switch from userspace, then > after the device reenumerates I can manually disable any interfaces I > don't like by writing 0 to their 'authorized' node, and then I write > the VID/PID to usb-storage/new_id. Okay, very good. > I still think it would be nice in general to be able to force a driver > to bind a specific device (rather than a VID/PID match), but it's not > a pressing need for me anymore. You _can_ do this currently, by writing the name of the interface to /sys/bus/usb/drivers/usb-storage/bind. But as you know, this doesn't work unless the VID & PID already match one of the driver's entries. Alan Stern