Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5508633ybn; Sat, 28 Sep 2019 23:29:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbnpXyD7BmPQg/mI7tpby9scknsagIRk0rZ2eIz97wOElAwXcoaanCO+Q1NStzuljn2i5s X-Received: by 2002:a05:6402:1426:: with SMTP id c6mr13520811edx.53.1569738599111; Sat, 28 Sep 2019 23:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569738599; cv=none; d=google.com; s=arc-20160816; b=TqT3wUxd56r6HJMDKbu16leNaDKaHBK9BwBqL9C2/fhgU95adRU3/L9POeo5/ogvd+ zu42jkwkWoSBRA2WT0322oKDq1L5Ep1v3thxQ489HLrCs3bCwbnQbfIq0stzobYPHYRP yYiu8I+rEqtT5ngzj4gdm8hopiCxbACkFjg2I7/4DhEfK0UHYg05p/hXA0h3UuhJSDpC 2cCauh/7iYdfQrVLfr2c9hVMOp3ijApEWnwmuZwQp9cN7/Xh7BvdjxNukjphP5E3XyQp mSKsfPPjbnLYyRSvwtM6qmAbwxVffLAucoLIZl4HU9vGDGyypm5jDXWIF69YkylrBMRu jGXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4RDzM2OI8ZvEo8Fafv3HNsPBRly1dAxntip8HAHtNNA=; b=vKulfYXT3kdh2NLKymUTZb3+ZFGTY+wOSEOYNIUgdwy1x6W9ItHOM/hmTk7+DoweB7 QQBvdN5p9H+mHabV+W53NAbUO8EeGkhxbkGDGWzPpqG2eb133JePeZRrQ7bxHEGIh57z CpU4FSr9DDCCc0eGrO90PQLC6sPK6D8YKsvY5ZlWNz9RKnkS0tce8rE21oWDoJ9cFS6L d75C6TsKR2FV5nEaG9+C4WZHZfWgS9GIhmgpmJ1fp4goqnS01GYZ5iyMKlkI3TVODkM6 WbOMbQDJhiYj4KXRApXMC2/TGoTvsWI2N39VkrL7WqkP38FGK9a05pypicRsm0lyQxu1 tR4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FCoyVpS3; 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 e4si5093146ejd.32.2019.09.28.23.29.34; Sat, 28 Sep 2019 23:29:59 -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=FCoyVpS3; 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 S1726579AbfI2G3S (ORCPT + 99 others); Sun, 29 Sep 2019 02:29:18 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:36666 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfI2G3S (ORCPT ); Sun, 29 Sep 2019 02:29:18 -0400 Received: by mail-io1-f65.google.com with SMTP id b136so29000210iof.3; Sat, 28 Sep 2019 23:29:17 -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; bh=4RDzM2OI8ZvEo8Fafv3HNsPBRly1dAxntip8HAHtNNA=; b=FCoyVpS3+z/N4O8wWgUaJKvTgVqsNnhsa6QaPGQ+zr2+py2vnR5LElNbGPiA6CWIhD f2LK4jsBAaIyTq3Y4Up1vBKi5J6nobnR+5z1rOFj4EqKRBVla4m788Jr7+Mq1GQkFFzc fIV2Bw5NLQTgD+DKcokiLvOpQAkmRebJdZaPh3sw8cu3llvMwZF3llRM4vquF+RGXZiQ bk8zK96weHsgNb08Wgfwrtt4q3lt5YDyRVAFuPN2NWzISRlpsehE5WI1VWwnaN1ZLle6 Yts489lT39wohimuYRevSEOE7CCsdyP2Q5F+8/GxIOfOsWEIMNLsNIo+KX4KQCsF+vcY bp8w== 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; bh=4RDzM2OI8ZvEo8Fafv3HNsPBRly1dAxntip8HAHtNNA=; b=VAcxcsEa8EMtaOZtGuux/KaDJL78u1wZkKmNSeIpzxtJ1aMmMQdpQoTjRslEw9m9gT 0kEz4KqJd31PUDcgt5VhKl2qG0/fjx19ubrNXOBjSn0vwyMdON/RE8PEbtin7IJ9ONbM PahaknZxJ5M+9FonRCouizyCUb6ONpPm947LNl/UG2T8p5D9eZLq+nfnd3WE2Ua7WhhH a4aDlj6R7N+maU66DgK7J3n3e299khL9H8ELsw7WhudOu/uz/ccQ6bF2k/NVNe4huTRR U4T4qMsZlET+GzpmmF/Wv4LW5FHbiojPKuc+BZvQfg+8+PDkhrDMO2mVV00p1cqWMsGY P1Ng== X-Gm-Message-State: APjAAAX0MHFLCoKFEdc0e6liI0+ZhYoP6ZqPb/nPfxXWfqXHj22Nx7zs 7DiSd6YdrTyQtsvTZc5naM937eknnfofSj3E+gKT5Uy6RP8= X-Received: by 2002:a92:d148:: with SMTP id t8mr14498553ilg.287.1569738557374; Sat, 28 Sep 2019 23:29:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Chen Date: Sun, 29 Sep 2019 14:29:04 +0800 Message-ID: Subject: Re: [PATCH] usb: hub add filter for device with specific VID&PID To: Ran Wang Cc: Alan Stern , 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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > > > 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. > > > > Yes, but I saw there are already some implementation in upstream kernel for this > > purpose, just PID different: drivers/usb/core/otg_whitelist.h function > > is_targeted() > > > > > > > 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? > > > > Yes, but in function is_stargeted(), I found it's a little be different: > > Current upstream: VID = 0x1a0a, PID = 0x0200 > > Info from USB-IF certified lab: VID = 0x1a0a, PID = 0x0201 > > > > Sorry that I mis-understood the logic of is_stargeted() and it's caller. > > So the proper way to resolve my problem is: > 1. Select CONFIG_USB_OTG in .config > 2. Add property 'tpl-support' to device tree > 3. Customize whitelist_table[] according to my Target-Peripheral-List > requirement. > Yan, this is the correct way, we (NXP i.MX Series) have followed this way for USB EH certification several years. Peter > Am I right? :) > > Regards, > Ran