Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp100232pxm; Tue, 22 Feb 2022 17:49:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXzYc4PSvsjAs002uulAzEC+AFRwQTZxj2fZ/0Xm6svqnlPQ4OXkE/ya1cJQfHfJOJ+cb9 X-Received: by 2002:a05:6402:510a:b0:413:1a1a:6f5c with SMTP id m10-20020a056402510a00b004131a1a6f5cmr8966489edd.430.1645580978048; Tue, 22 Feb 2022 17:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645580978; cv=none; d=google.com; s=arc-20160816; b=gUqUNLIAeBUx5adqkmp5Upd/7h5qFzDKQ9i8/U8EpQseiOPqD+STE1MoRgjJdJyN6J roptmM10PJqKUABFsRdrKILUnK5Ii43U/Fk6qgQF45JyDjrN8gh6H/bRmZlgVkDyGU+4 ++FNlARNQK1AJsnTolmYpOTBbTNY35PSS1k01iQzYaCgfK5sSsOsz5KCedMYePL4PBm/ 00EeXVpviQKKBdEHS/Ld7LcZE784CLcQbEKq498ZahALJ7+BckT9o3nWjecdw2X5JdEJ pG34foRppZi1KvFEcdAG49nLDA4Hl9a4qDccrHI/yxGOp/EsasURtG413BnQ1AZWROva NiZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zJKFw8FqLa0/MDr6tt9GMe0RBKT3PW0n39OIwZ0O4uo=; b=qyuUalPDykZ8Me13e6+SlHNUS3EEsBAl++axhMDU0ht/G7uHojzGWaJg/n5KEkh+TM XLyJ38NNYdCV0wS4bDHDsYWLwXJWUU20HqhThKqXKSauIIZaJsvJ3BHH1cxJk9kSnGDB vpOs+yq1zHvyeIZgYlFh15zMMQbDWf4PN8uIiqST3+82Yg9nTu0/JlkBB5YLunYKaxgJ YfZc7/3U4QN88w0oex2ZU6Mhp1ZL1tuWCaC6bYP7+/SvOn22OSkn+NnUJgdoZwu82YUG UtHfip92E/LZvDSMU1+C4fMJsjE53WcEcUgQvdcRlGKvtwgo3Tf2efzLnPJiUsX1Obme yAbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="HSv/LWTB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cz5si14031826edb.15.2022.02.22.17.48.51; Tue, 22 Feb 2022 17:49:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="HSv/LWTB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234130AbiBVQhu (ORCPT + 99 others); Tue, 22 Feb 2022 11:37:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232241AbiBVQht (ORCPT ); Tue, 22 Feb 2022 11:37:49 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ED7DB562C for ; Tue, 22 Feb 2022 08:37:23 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id q11so6277292pln.11 for ; Tue, 22 Feb 2022 08:37:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zJKFw8FqLa0/MDr6tt9GMe0RBKT3PW0n39OIwZ0O4uo=; b=HSv/LWTBxB/IblslEsOA5ur3tfXkJDxwQtRJaY5h7HjhMQiJhvdYboT9wp6E0bCH4I 8DdvwAWi1QjDva5VUeH94r4awfv/mFIWAppR0qDT7qJhNf+p4mYlyZ2ywi2fQGitbv3m XYrCEqe9iOl5PTURBouiqxUOa/Y50iyXgsnXk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zJKFw8FqLa0/MDr6tt9GMe0RBKT3PW0n39OIwZ0O4uo=; b=Ti7ULg7Frub6q0oEdaRjpykcWmYVkeLYS98yMLnzU778YoZC34wC5Ic5rVUO2Q3r8k loO37+aY99tuikOChSh8IhIh5+GfcBtCE1NfAAQpYyZhU/HVI0jOK2H1c3fFJYTZK4td xZ/zu41WLi+Vmgd6DkKj+/LoWA/GCV4v9uU7AwLh/YgdlwMjXzxGpb+UyPNrx8DyaI4Y i3snNJIN7OSNAn24V55wo+JxcN/hnlCLfxRhIDo8rXb7x8AHxYrROU2kqgbBy8KQDIVG NV6Ig1LSgN1l8NC2nTGeOzzQi/2dCBMnwbpcmU+UUsy+RggIrxApPkYgqubtjaBKb6dR 0YPA== X-Gm-Message-State: AOAM532hP0tZOcwZCUxU7XBc8/6SFDQ3M2p+EvtnwaJRhR1FdalRWh9P EzuMTVU69jbHW3VxAH75WawrJw== X-Received: by 2002:a17:902:bf07:b0:14f:a3a7:97a0 with SMTP id bi7-20020a170902bf0700b0014fa3a797a0mr12887998plb.105.1645547842764; Tue, 22 Feb 2022 08:37:22 -0800 (PST) Received: from localhost ([2620:15c:202:201:8ac3:6f5f:e299:2e9b]) by smtp.gmail.com with UTF8SMTPSA id f8sm14392364pfv.100.2022.02.22.08.37.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Feb 2022 08:37:22 -0800 (PST) Date: Tue, 22 Feb 2022 08:37:20 -0800 From: "mka@chromium.org" To: "Tao Wang (Consultant) (QUIC)" Cc: "balbi@kernel.org" , "devicetree@vger.kernel.org" , "dianders@chromium.org" , "frowand.list@gmail.com" , "gregkh@linuxfoundation.org" , "hadess@hadess.net" , "krzk@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "mathias.nyman@intel.com" , "michal.simek@xilinx.com" , "peter.chen@kernel.org" , "ravisadineni@chromium.org" , "robh+dt@kernel.org" , "rogerq@kernel.org" , "stern@rowland.harvard.edu" , "swboyd@chromium.org" , "Linyu Yuan (QUIC)" Subject: Re: =?utf-8?B?5Zue5aSN?= =?utf-8?Q?=3A?= Re: [PATCH v20 3/5] usb: misc: Add onboard_usb_hub driver Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 21, 2022 at 06:20:00AM +0000, Tao Wang (Consultant) (QUIC) wrote: > Hi, > > > > Regarding on board hub driver, > > [1]https://lore.kernel.org/linux-usb/20220119124327.v20.3.I7c9a1f1d6ced > 41dd8310e8a03da666a32364e790@changeid/#R > > > I have one comment below, > > > +static const struct usb_device_id onboard_hub_id_table[] = { > > + { USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 > */ > > + { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 > */ > > + { USB_DEVICE(VENDOR_ID_REALTEK, 0x0414) }, /* RTS5414 USB 3.2 > */ > > + { USB_DEVICE(VENDOR_ID_REALTEK, 0x5414) }, /* RTS5414 USB 2.1 > */ > > + {} > > +}; > > +MODULE_DEVICE_TABLE(usb, onboard_hub_id_table); > > > Can we support read VID/PID from device tree which provide platfrom > device info? As far as I understand the kernel exclusively uses the VID/PID reported by the USB device, the compatible string in the device tree is purely informational (though this driver uses it for the platform device).