Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5513302ybn; Sat, 28 Sep 2019 23:36:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ9Gs3BX9qSxpHKvqCudXrx+sqwYJMffbQCErKQ1z0ARb7My3yDHTCyK7Sn7YRJ5c7xJdd X-Received: by 2002:a17:907:2118:: with SMTP id qn24mr14153972ejb.81.1569739014821; Sat, 28 Sep 2019 23:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569739014; cv=none; d=google.com; s=arc-20160816; b=cBIio5wudsY3nBnbLoC4L2Y4hlJvHSQtwo8MsGbfU+5w2Pj9tkd/EidavzOMSgRwZz uBWG5yJ4GmL1TjzmpbdFIfleodVkIbrmMvm/ooHM5WYK/o8bW5wnFplOqkJyeRgXiwP9 8/8wMOVqRraKP63LGSuPd1MbsBItMPiHwFpngtMW+O6UMRBFZ9SddfUSEpyZeLiRD9C+ ZpXXTsWydam4R4rvyek3UHNBGOLl+aRCS+d+LimRVxdvigWXvnRO/GQWh1YQx0IDnRKs rkCb24Cbr/WTbJ26fTf7ibfcJs++JX0klA9YE49hZmUe99Qc0FiIaw8k8GcZFNkfk0Xv WdyQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iDVkqOh00Gu1t88eatQYlGFJCHixlykrMMQFxTtFYFg=; b=k7QzcjHvRG0hE0iYfbejGccZU/eEZEUOW1BEVPYFrrw+zd7lBxj2+K0R8zaftCzTAL ubxoNZJ3UMfwn9w07IpvjVGsaFUMimTrrs5dbniWfUVbf7MDQW99KzNj8FZH20P1ULul GI2AFVEVP2mfkeg7dhyDtTNrHHhbAAc/xh6hs7VZ+oRmlC9hCFEcxLDrJl4GWTaabfMi r4qidoEiG7KeT1ned7o5KccjjiOCvE7F4R7K3prJhFp2fb/UvoWAnS3iHkxOQrPX2U5j mwg2Q6keQNuQmQFZVc0+BhqOgobwGPN7ZhWXwPs6Eh1DtW6ylcKdIihgjzC55qtC1yRz 980A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzCgYFPK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si5119663edb.89.2019.09.28.23.36.28; Sat, 28 Sep 2019 23:36:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzCgYFPK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726579AbfI2GgY (ORCPT + 99 others); Sun, 29 Sep 2019 02:36:24 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:42514 "EHLO mail-io1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbfI2GgX (ORCPT ); Sun, 29 Sep 2019 02:36:23 -0400 Received: by mail-io1-f52.google.com with SMTP id n197so28948232iod.9; Sat, 28 Sep 2019 23:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iDVkqOh00Gu1t88eatQYlGFJCHixlykrMMQFxTtFYFg=; b=hzCgYFPKvBEobLhYvXZR5S1mo8QeleXmppOkCtehseCbc1OlH7MJ03a2NG7gZMQiN/ k+0oHQ8qtK/S/G3k1a/S5cbVjbc8ygpOBurC4y6GP60ZIHBxTavZes1LRG6HPj5PVv/b RscP/OyvKVsgerpFXMhWsAxDS+TOOJuWssBoV19c64Yi9XyD0zkNCBRQVSC5D0+maYnc f8U7XSWQBbwGp6OVgHw7KuDiEtDkTu9wFVQiHilO0dYQcs+w/8hFDXRawiBGbJWMNg27 oWdmAIu2VSzA8IfCkb9jWbWHV/G6ND3PIvVpCDwhe8kH2cmsHtWxi6UmFvNZVHdZm/HA vf3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iDVkqOh00Gu1t88eatQYlGFJCHixlykrMMQFxTtFYFg=; b=UA9NjPhtBap6zIMZwIHxAEnI8aAbYye/GF5A0Ed7UN+nSuWiepNc69im58e6Hmmxb4 zlDVYekh0CG+Psx3LkhShT6psUegSGt1G03JqEvBoBAM/R8k0rPG/Voj46yviza1PInG f+mggPr5VXTzDJUR9oLZGZO9q0SAd9qPGEr5MTbYcZdjGRww9WX13UZ/kFreRJ2ZCXvG AwUTlqlqt4zweb83irBEh39mhRy/9tsKDENoDMLr15/fOgrXhLHml28ogEQ29JCf8zji 0s7kO3a1etMA5foCxxKl9brpmKjpgwpecJdemStZ/P57CVg5sDoPtV4D/Mx0zjyFMD7u cZVg== X-Gm-Message-State: APjAAAWMbLPw0snwSq5aygVfzrd3x0qFUgWVC06Ikv3qE6QqNxnoZ4C7 W8dYh5zmlxQ6hNfulN7yMFgpIJHbmS4b9cngmv8= X-Received: by 2002:a5d:91d1:: with SMTP id k17mr8907186ior.237.1569738982780; Sat, 28 Sep 2019 23:36:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Chen Date: Sun, 29 Sep 2019 14:36:10 +0800 Message-ID: Subject: Re: [PATCH] usb: hub add filter for device with specific VID&PID To: Alan Stern Cc: Ran Wang , Greg Kroah-Hartman , Kai-Heng Feng , Mathias Nyman , Mathias Payer , Dennis Wassenberg , "open list:USB SUBSYSTEM" , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 28, 2019 at 1:11 AM Alan Stern wrot= e: > > 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 wit= h > > > > VID=3D0x1a0a PID=3D0x0201 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? > Hi Alan, The OTG Compliance is really dead, but for non-PC host product, if we would like to pass USB certification, it needs to pass EH compliance test. Before going to Lab, the vendor will fill Compliance Checklist, it could declare HNP, SRP and ADP are not supported, then the PET test will bypass related test items. Peter > > 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-support= ed error message > > when a device it doesn't recognize, and does not support HNP, con= nects to it. > > Applies to: All Targeted Hosts > > Description: Get VBUS turned on, and connect to the A-UUT. Get enumerat= ed and respond > > as an unknown device not supporting HNP. Check that a suitable er= ror message is generated. > > Pass Criteria: Message "Unsupported Device"or similar is displayed on U= UT > > > > 6.7.23.1 Test Procedure > > 1. Start with cable still attached, PET applying 10=C3=ACF capacitance = and 10k=C3=99 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 =3D 0.9s) from VBUS reac= hing VOTG_SESS_VLD max. > > 4. Connect PET using D+ pull-up. > > 5. Allow A-UUT to enumerate PET, responding with a VID / PID combinatio= n not on the TPL > > of the UUT and also with the OTG descriptor stating that it does no= t support HNP. > > 6. Start 30s timer when Device Descriptor is read. > > 7. Display Message "Click OK if 'Unsupported Device' indication display= ed 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=C3=ACF and a pull-down resistance of 10k=C3=99 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(Allio= n.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 >