Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3711849ybn; Fri, 27 Sep 2019 10:11:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAZds5xt8hzQyrMPPieLyfWV93dDt7yX6xtfaBcTZNnsLGtORBkOupPcyW9b70Mt2XoFFl X-Received: by 2002:a50:b6a8:: with SMTP id d37mr5782684ede.63.1569604292009; Fri, 27 Sep 2019 10:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569604292; cv=none; d=google.com; s=arc-20160816; b=e21cfnrMV6+oVlhG0Qms0/LrzJ8wBUwVb8IS8clNjIEJufNAMJegdZEawChVToyWwO 7BpaY5iFpsbl3YKDlpuxTGVDr3gGCRYow2srC8MNMGLK4hl0q1zM0DwK/LWmVeZDuFLY jZGEIkrSSbmBABFvQP5JzK4thDH8i9HaREoSZNJKuVvNKYMPxyJ6qqIsIm5KGfVOVDPv CbzWvXjt+bMYs1SzIQWP9sdh6oHqmbYIbDL/YWsUdH2NDDSKRdUW4e4Px6XvxPMRxm5N BV0/RwZdJTAZAlVELmIodXtmQi1wk05uGOYz6GO80jYLbjbK8hRQtlLdicYJ44GlBOlB SMSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:in-reply-to:subject:cc:to:from:date; bh=voC+kRScrB1n8mBXO85/TJrawW2gcdjhOMsIE8JxiaU=; b=R6kuDiaPhKypDDlBsVgHxExONrHCuIRLZOE6LaEQhdrArfsgsDqwrQ7QL87aEkBtjg NT7EKHhMgANijw4X2rKlnRWfvnH/YtXw09mdjodXSzuLkHnenYPojpcHb/jPvtBM8NBF IrxadITl/K4Chp2xMiqJJeb3rqBXnP/T/zSARNMC/10SQy69pRC/MoE9RXm3ye1+iM1X 5LXzEDlOj2SaUp+n7FD9/EmcsZPMmezP+0qpoPpiTDeWoWtnG5Gbbi6drOMGzlBsx35q y1PYM/mJHZI2lyavad6NmJaT73YtQxMENNe7HNZi6kecL1A7P09dPdoDTXnZDUY1aTRk jjRg== 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 y1si2999956ejr.272.2019.09.27.10.11.06; Fri, 27 Sep 2019 10:11:31 -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 S1728104AbfI0RIK (ORCPT + 99 others); Fri, 27 Sep 2019 13:08:10 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:56186 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726251AbfI0RIK (ORCPT ); Fri, 27 Sep 2019 13:08:10 -0400 Received: (qmail 4736 invoked by uid 2102); 27 Sep 2019 13:08:09 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 27 Sep 2019 13:08:09 -0400 Date: Fri, 27 Sep 2019 13:08:09 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Ran Wang cc: Greg Kroah-Hartman , Kai-Heng Feng , Mathias Nyman , Mathias Payer , Dennis Wassenberg , "open list:USB SUBSYSTEM" , open list Subject: RE: [PATCH] usb: hub add filter for device with specific VID&PID In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Sep 2019, Ran Wang wrote: > Hi Greg, > > On Monday, September 23, 2019 19:07, Greg Kroah-Hartman wrote: > > > > On Mon, Sep 23, 2019 at 06:51:02PM +0800, Ran Wang wrote: > > > USB 2.0 Embedded Host PET Automated Test (CH6) 6.7.23 A-UUT > > > "Unsupported Device" Message require to stop enumerating device with > > > VID=0x1a0a PID=0x0201 and pop message to declare this device is not > > supported. > > > > Why is this a requirement? > > This comes from for the On-The-Go& Embedded Host Supplement Revision2.0> How much do we care about our support for USB OTG? Isn't it dying off? > Below is related description I quote from it: > 6.7.23 A-UUT "Unsupported Device" Message > Purpose: This test verifies that an A-UUT produces a device non-supported error message > when a device it doesn't recognize, and does not support HNP, connects to it. > Applies to: All Targeted Hosts > Description: Get VBUS turned on, and connect to the A-UUT. Get enumerated and respond > as an unknown device not supporting HNP. Check that a suitable error message is generated. > Pass Criteria: Message "Unsupported Device"or similar is displayed on UUT > > 6.7.23.1 Test Procedure > 1. Start with cable still attached, PET applying 10?F capacitance and 10k? pull-down > resistance between VBUS and ground, data lines not pulled up. > 2. Get VBUS turned on, using the method described in Section6.7.1. > 3. Wait for almost TB_SVLD_BCON max (1s - 0.1s = 0.9s) from VBUS reaching VOTG_SESS_VLD max. > 4. Connect PET using D+ pull-up. > 5. Allow A-UUT to enumerate PET, responding with a VID / PID combination not on the TPL > of the UUT and also with the OTG descriptor stating that it does not support HNP. > 6. Start 30s timer when Device Descriptor is read. > 7. Display Message "Click OK if 'Unsupported Device' indication displayed on UUT". > 8. If operator clicks OK before 30s timer expires, then UUT passes test. > 9. If 30selapses first, then UUT fails test. > 10. PET disconnects by removing any termination on the data lines, but leaves a capacitance of > 10?F and a pull-down resistance of 10k? connected across VBUS. > 11. Wait 2s to allow disconnection to be detected. > End of Test. In fact, the system should respond the same way to any unrecognized device that doesn't support HNP, right? There's nothing special about these VID/PID values. > > And why those specific vid/pid values? What do they refer to? > > For step 5, we got the VID / PID number from USB IF certified lab(Allion.inc at Taiwang). Looks like > this is a reserved ID pair and will not be allocated to any vendor for their products. So it's hence used for this > case test (like saying: you should be able to pop a not-support message for this reserved VID&PID). Don't we do this already? Alan Stern