Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3051438pxm; Mon, 28 Feb 2022 11:01:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzV+t+EZXHyZ4yTIPbNGEIvh/IwLCsq6VbEbJqSOZfYvg/8XGXsgm7mOqkGQeApI0vrHUtr X-Received: by 2002:a9d:6007:0:b0:5af:641b:26bd with SMTP id h7-20020a9d6007000000b005af641b26bdmr9852861otj.32.1646074896763; Mon, 28 Feb 2022 11:01:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646074896; cv=none; d=google.com; s=arc-20160816; b=XSg6ZJmJDK5K6IjNdOoy0eU143+KZ+rBjxitYMjqxjfaSiLHET6f1KvzSeYvwXO4L5 UtI/3VwjC2+HCoFMCfUT2AEnSyOx8k17gy3mU/yz6cXF/TE1d3HJP6SqBIJGm6i9B7eA Mp0fybkINkrX5TiiKdpxwL6W4LTlOR5uJNvVBVNYCKlZy8YsdLvAbz6ZXbnGGXmspjCB YCY3WVOjXFRcrzhisYFBJmsPATA2s+a2r+u9OAklehMKuHe0p6tIMiAagfYCZCwEpfkz YrEKKbjTHWWwHks5qLHDy0zA1dN67Xmq70OxBGgASRtIQPcL2sxA3Moi+NlvB10fKnit k97Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=953U8rJ4XL9BO0MAZAoSvNfxJjSMk/eYFo8dV60tgFc=; b=Wx4Y6ZPROMj6xF296+tr0MSZh0BFwXhlKOMmXWl02Wt7PbKMff16iZ8IugNmTkXS5m /9DfvuMUditzxeyiUO12CqEEq5GeISoL3OIt718/5vbcS6fU5RC1dqNfzHEFhiXaT3K3 mwxZQ+tMDMDMeyvGysDMiTeNjUozKepcceC3qrQLhGA4v3T+5pj6K3ZtG8+oWB3nq7Nc yyUxpQBczPMhfqTKhIwpBrITDFZSWIj4ZU5EM0fkpJD0zmO859ahrTWdYxREbBuhPr1U iEm46EwyUBIbdyP8rGseEMGi88rKDgOw9G4C4gpHcBZOdUmE39NAen/cW9WM/fJS7wVm LTpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FpK1nged; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w21-20020a056830145500b005afc4be3fd0si5674209otp.220.2022.02.28.11.01.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:01:36 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FpK1nged; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4526480202; Mon, 28 Feb 2022 10:59:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238594AbiB1Skk (ORCPT + 99 others); Mon, 28 Feb 2022 13:40:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240782AbiB1Sjv (ORCPT ); Mon, 28 Feb 2022 13:39:51 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEFED45040 for ; Mon, 28 Feb 2022 10:28:56 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id z2so11472968plg.8 for ; Mon, 28 Feb 2022 10:28:56 -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:content-transfer-encoding:in-reply-to; bh=953U8rJ4XL9BO0MAZAoSvNfxJjSMk/eYFo8dV60tgFc=; b=FpK1ngedQX3i3ivR3W3a6s9CDUpEcLJ7+K72A8HWuIj+TG9fFxdNTS8IxACdRptz5O VJNsv0VTwQYiTNicWanwklaKPytRcWWcHmq0OX9OJRvN6X7P2PKdM58VR1MdzviHqS6h NnRbxHH8agrt2Ew2iEAOGcbFr3lrxgtJSG0lw= 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:content-transfer-encoding :in-reply-to; bh=953U8rJ4XL9BO0MAZAoSvNfxJjSMk/eYFo8dV60tgFc=; b=J44Ay6FoEz9ZxzAmxnBsDN1e5whg3+L9telj51FxmVBithMny+jOr306p7T/i29MhN TUOK6FjKXS8jHn5FlfXWXLzxtKVNCrYtsITVfa6+cdvQAHEEpfrs+LTnuIswLZuqmYDX SxeXkxt1HDmuZa6nSTd/87e7utTMl5ZCUyu+nmHShkQNUfJwYBcuV9f9oz9uac+AqUV1 trOJWQCUtpbErgx8CJqZEj7AgDfemarNkFVGsSCX+jWmg01zti5MNeEJZR77O/H315b2 roeGaK1jcXObgXgFSjIij++k9TmdxQKDo8thpky9EM2LrdmSpvvVn1Usm+klDwShEt80 HErw== X-Gm-Message-State: AOAM531Nt9YFsyuuLdtWqDAbgv+rgtiW7yj7SCmuyjMnTlrCcnn+kPba LaQxtNlFxY+f/6iiRl4kTcZC3w== X-Received: by 2002:a17:903:2041:b0:14f:b0a6:18f5 with SMTP id q1-20020a170903204100b0014fb0a618f5mr22231706pla.50.1646072936309; Mon, 28 Feb 2022 10:28:56 -0800 (PST) Received: from localhost ([2620:15c:202:201:f16d:303:27ee:ee6a]) by smtp.gmail.com with UTF8SMTPSA id a8-20020a17090a740800b001bc691c79fcsm64964pjg.49.2022.02.28.10.28.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Feb 2022 10:28:55 -0800 (PST) Date: Mon, 28 Feb 2022 10:28:53 -0800 From: "mka@chromium.org" To: "Linyu Yuan (QUIC)" Cc: "gregkh@linuxfoundation.org" , "Tao Wang (Consultant) (QUIC)" , "balbi@kernel.org" , "devicetree@vger.kernel.org" , "dianders@chromium.org" , "frowand.list@gmail.com" , "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" Subject: Re: =?utf-8?B?5Zue5aSNOiDlm57lpI0=?= =?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 Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 28, 2022 at 03:08:34AM +0000, Linyu Yuan (QUIC) wrote: > > From: gregkh@linuxfoundation.org > > Sent: Wednesday, February 23, 2022 3:56 PM > > To: Tao Wang (Consultant) (QUIC) > > Cc: mka@chromium.org; balbi@kernel.org; devicetree@vger.kernel.org; > > dianders@chromium.org; frowand.list@gmail.com; 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: 回复: 回复: Re: [PATCH v20 3/5] usb: misc: Add > > onboard_usb_hub driver > > > > On Wed, Feb 23, 2022 at 07:40:31AM +0000, Tao Wang (Consultant) (QUIC) > > wrote: > > > Ok, thanks your reply. > > > > > > Here is my question, we must modify the driver "onboard_usb_hub.c" if > > we want to use it. But it's hard to complete because it's an opensource code. > > > > I do not understand. We do not deal with code that is not in the kernel > > source tree, as we have no idea what is out there. Please just submit > > your changes to be merged into the tree and all will be fine. > > Hi Greg and mka, > > Let's make it clear that we are talking about once this driver is approved into usb tree, > If we use different USB HUB which have VID/PID not defined in this driver, > We need to update this driver. > > But if we defined VID/PID in device tree(for a specific board, manufacture should know VID/PID from HUB it used), > dynamic parsed by the driver, then we don't need to change this driver (increase VID/PID table). As per my earlier reply, the kernel/USB core uses the VID:PID reported by the USB device, the compatible string in the device tree is purely informational. That's not something that could be changed by this driver. And even if the VID:PID from the device tree was used: how is the kernel supposed to know that the onboard_hub driver should be probed for a given VID:PID from the device tree, without listing the VID:PID (or compatible string) in the driver (which is what you seem to seek to avoid)?