Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15337455rwb; Mon, 28 Nov 2022 10:21:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6C1veEYBDR1csbrn1s1aJqj5CEMCGTg21SEcC6fyQdruz68ZvEB/WPyFi08Joys/P4U2iL X-Received: by 2002:a63:cf14:0:b0:478:22cb:f05d with SMTP id j20-20020a63cf14000000b0047822cbf05dmr4956842pgg.456.1669659697348; Mon, 28 Nov 2022 10:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669659697; cv=none; d=google.com; s=arc-20160816; b=fQgzjS2wfxp7wVPYFyrfZ6ekQaIIOdS8TdKIWZCmgMqSDibV6ytjxDpw9kY0pofQyd X9+nz2f8z/0pPAhDyD9vbGknHOEM27N0JG9E0BEsfHxhiNJmpTzfyBkGgTxCbAdqmt9E DEk+N3/qrbMMJZymN9CZxxrERQeZWRxY2zSIX6wzRiCcQfxYRph9b1a78m5/CnfiZXNe BbwV7usPzPDSdFytsP1s1wN9B2o6dNkqbkHDKc/yPvy04EJwfDwOMEzM7rhya40kIvQc 5vxVfPtPmFCFu3xYs8OgdzPQn5eWxhsRtaurAxioL1Q5XmQjVVoZjwXs5q6dQ1MZAkFP 8ZxA== 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; bh=Xmy4KXaQFNlqj17WY1ADV6bqsA77u7z6qE1PaxwlJXo=; b=G0Xd6GSw/hI0aoSgs3S1/CcExbW8fWys5pu1+4KlZ2/j4Ieln+PeOzatVlQAYu+2zY FqBocF0p28PmXw+eWsYlFN8HhJRNWl53oShCUCCLwnWjCQm5NT7vXDFDxVaACDDyzWnH 4J5Pk7SOr2exU4N2DhUmoEPb8jn1FG2YtOielYhSJ9CRBV3Kc86U9dnJJeNbg8QhTbqB f0ENkaG32vzGk5RSTXoj0IF9vIid8VtG0l2/IXrxkotjuV1hpOLoq3Y32ZM0tSfDjHih c1+qydNz9nE5YPh638lt4pKdLJGnDp6Sx6O9hZeTcpBAkkN6518q562HqZD+oqkTkYZD TiXQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 l8-20020a170903120800b00186e34524besi13890149plh.522.2022.11.28.10.21.24; Mon, 28 Nov 2022 10:21:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232682AbiK1STE (ORCPT + 84 others); Mon, 28 Nov 2022 13:19:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233097AbiK1SSP (ORCPT ); Mon, 28 Nov 2022 13:18:15 -0500 Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E87E2E6BE for ; Mon, 28 Nov 2022 10:01:54 -0800 (PST) Received: by mail-il1-f172.google.com with SMTP id o13so5394251ilc.7 for ; Mon, 28 Nov 2022 10:01:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Xmy4KXaQFNlqj17WY1ADV6bqsA77u7z6qE1PaxwlJXo=; b=UQHJfEv3XwkiDOGc2siUPt7WM/gIkOqdmOO/RQDrrRotu/jTwzwoFhTqZljWdntDY5 iXOzlRhOXRuqrGW2I5spD/pO8n668i4jyQbhKEXlfQ8B4ouhBkznW2ttUYtTrg3eFC99 VoYsm65Q0UPLQ8nkOvJCbTbaOiMokc1EGx/Ah3lo/mCTFI0FodOIIAFlV590k9j/A0pz fDUQOGKvmNp94yyPKyIKJKKct5L1oYOU+I5pe0wV+MsKOLEffHhvohp5B9v4zyt3luzM hGhoMRb54Awpg4CsEX2oG0km1NsT2Ltr0+UVJC84z1v+CY/eY7xAdRVtSL2dE75pg307 hq5w== X-Gm-Message-State: ANoB5pkigR2LDyocIOnqtoVX+/4FnLW6kzpq+ak5sV/XtloUq/FJn1uJ ysxR9ZHUYJ04ocNlrVWCj9t+eg== X-Received: by 2002:a05:6e02:c65:b0:302:f4f5:8691 with SMTP id f5-20020a056e020c6500b00302f4f58691mr9364754ilj.206.1669658513537; Mon, 28 Nov 2022 10:01:53 -0800 (PST) Received: from google.com (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with ESMTPSA id o3-20020a02a1c3000000b0037477c3d04asm4326772jah.130.2022.11.28.10.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 10:01:52 -0800 (PST) Date: Mon, 28 Nov 2022 18:01:50 +0000 From: Matthias Kaehlcke To: Icenowy Zheng Cc: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Andre Przywara , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 3/6] usb: misc: onboard_usb_hub: add Genesys Logic GL850G hub support Message-ID: References: <20221127073140.2093897-1-uwu@icenowy.me> <20221127073140.2093897-4-uwu@icenowy.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221127073140.2093897-4-uwu@icenowy.me> X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=no 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 Sun, Nov 27, 2022 at 03:31:37PM +0800, Icenowy Zheng wrote: > This is a 4-port USB 2.0 STT hub. The commit message is supposed the describe the change, which is almost certainly not a 4-port USB 2.0 STT hub :) It could be something like "Add support for the Genesys Logic GL850G, which is a 4-port USB 2.0 STT hub." > > Signed-off-by: Icenowy Zheng > --- > drivers/usb/misc/onboard_usb_hub.c | 2 ++ > drivers/usb/misc/onboard_usb_hub.h | 5 +++++ > 2 files changed, 7 insertions(+) > > diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c > index d63c63942af1..f5c71d724be6 100644 > --- a/drivers/usb/misc/onboard_usb_hub.c > +++ b/drivers/usb/misc/onboard_usb_hub.c > @@ -334,6 +334,7 @@ static struct platform_driver onboard_hub_driver = { > #define VENDOR_ID_MICROCHIP 0x0424 > #define VENDOR_ID_REALTEK 0x0bda > #define VENDOR_ID_TI 0x0451 > +#define VENDOR_ID_GENESYS 0x05e3 Please insert the new entry in alphabetical order, i.e. before VENDOR_ID_MICROCHIP. > > /* > * Returns the onboard_hub platform device that is associated with the USB > @@ -414,6 +415,7 @@ static const struct usb_device_id onboard_hub_id_table[] = { > { USB_DEVICE(VENDOR_ID_REALTEK, 0x5414) }, /* RTS5414 USB 2.1 */ > { USB_DEVICE(VENDOR_ID_TI, 0x8140) }, /* TI USB8041 3.0 */ > { USB_DEVICE(VENDOR_ID_TI, 0x8142) }, /* TI USB8041 2.0 */ > + { USB_DEVICE(VENDOR_ID_GENESYS, 0x0608) }, /* Genesys Logic GL850G USB 2.0 */ Same here, the table is ordered alphabetically > {} > }; > MODULE_DEVICE_TABLE(usb, onboard_hub_id_table); > diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h > index 34beab8bce3d..1ca188713b1f 100644 > --- a/drivers/usb/misc/onboard_usb_hub.h > +++ b/drivers/usb/misc/onboard_usb_hub.h > @@ -22,6 +22,10 @@ static const struct onboard_hub_pdata ti_tusb8041_data = { > .reset_us = 3000, > }; > > +static const struct onboard_hub_pdata genesys_gl850g_data = { > + .reset_us = 3, > +}; > + > static const struct of_device_id onboard_hub_match[] = { > { .compatible = "usb424,2514", .data = µchip_usb424_data, }, > { .compatible = "usb451,8140", .data = &ti_tusb8041_data, }, > @@ -30,6 +34,7 @@ static const struct of_device_id onboard_hub_match[] = { > { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, > { .compatible = "usbbda,414", .data = &realtek_rts5411_data, }, > { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, }, > + { .compatible = "usb5e3,608", .data = &genesys_gl850g_data, }, These table is ordered by compatible string, the new entry should be inserted after "usb451,8142". Thanks m.