Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13136650rwb; Sat, 26 Nov 2022 23:59:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+6nElfp1EL3+pPgWQNss6EFR94wTZ5q9iagnFte3UiUPVtc1t95lslhvuY+XjyKbtYYvF X-Received: by 2002:a17:902:eb45:b0:186:944d:469 with SMTP id i5-20020a170902eb4500b00186944d0469mr26420888pli.29.1669535960185; Sat, 26 Nov 2022 23:59:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669535960; cv=pass; d=google.com; s=arc-20160816; b=rBTLKfXos1K0xnFvyU8Dl4sZMlL/L+YGb0KUrugD9Ixj3P2ArmPQvYkn1x7sM55vNV 4MeOd8hsMy9dfhDK30XECu4+fuHspI2MVZcl5gahTyHHVeVMJ8YSxSakQ01RRrgaFnEK gtbgJy/qroZTvYElgtlDz2UEIv3MZ1i+rXvbbsDTmD+wjP0yUapalRl4+QBfgHtwjsL4 2nIXC7q0KA4F/yDVC/aMrENI4JXoLQ0ll1+6cSH9OcB6gdKylixvO2GcM4JIu2L9O07m fJG300SkfUjXB/Nl3qa0WMrqmZSQc3fDDXtXiJfTo057fszfuRX4uJRCvp2AZfMMgvlA ccKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=W3L1gxk3bykxDA4m0BaAtEIoLOyC+p+JqRqguKBAXqc=; b=CqhJPoq7FedjHIJ1E42KA1Q7v7PdZ0/TIzhiQVuQZV2zNvITHzQ+FoF0CCd8ph6tBy W04ykY5dZp/da7KTDx3wa8ZdRs24a+Zfa/UtCGW20jkBFiCLrOyH7USQj+bbsdNbV9eA gswUPIqDZx5qODYm0DWjjzlg54NCAKzA2RgGk9pl9thqPtKavq32mZHnkRSa7MWKPV9X WK0i/0OtYg3eIXAcrxEa/z02l0s9gGAJP9re6ZtycFOYQhIrFRJJPX+Rt1HAL1SbnEnA UxIu8qXN8ttjvzP0gLnQoneG0+/ul7gkSkzcSc9yqYVD036e4FBQmbV4Pg/pbbkAbEOI KzNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b="XsKaS/9l"; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a17090aa89000b002191337a904si5553277pjq.81.2022.11.26.23.59.06; Sat, 26 Nov 2022 23:59:20 -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=@icenowy.me header.s=zmail header.b="XsKaS/9l"; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbiK0Hcu (ORCPT + 84 others); Sun, 27 Nov 2022 02:32:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbiK0Hcn (ORCPT ); Sun, 27 Nov 2022 02:32:43 -0500 Received: from sender4-op-o18.zoho.com (sender4-op-o18.zoho.com [136.143.188.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54BC963E7; Sat, 26 Nov 2022 23:32:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669534342; cv=none; d=zohomail.com; s=zohoarc; b=hj7/bFUVYhihM1GikmhedRj09QbrDWBjB0hES5R2Jq2mhZ5oNyOkqnyt6nlhdHQT3qBOz3Bry7OseIlJUk4bIfy6t2JSWKom1bgXzFOgXbCryRSMsQSxVqat4GvqYOdYgqOlcaPoc26Wcqqoqtxd2Ab+dbLJ/k3bU5jW/jhnhP4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669534342; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=W3L1gxk3bykxDA4m0BaAtEIoLOyC+p+JqRqguKBAXqc=; b=I2kBoj40phc4IK6iZhHjewrACylqPTeEE/wKmtnL/e0OAKNnopu342k+nEc8yZmQt+Abm+z0q6WbSxoa5p8xYUCORYKCkpAExDdVbsdWonWxAZzC0EgBKnpLdenbjZgCpW/E3mgqDHX7ot25hXd11a8U1EqxIc3ekTo/L81wwzc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1669534342; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=W3L1gxk3bykxDA4m0BaAtEIoLOyC+p+JqRqguKBAXqc=; b=XsKaS/9l26VWoqXTd662uao5C7vFNvnuRvxdXJGcniV8eDrk8H4vKNWRbi2PZcx9 1+XRtsmn6lRY+BZduFXPmXQzOb3JYUu3J7n6jhwE2IEAvpG57mQhBrPtfnmmKgmMlWF mpf6lTjy7fBOljEqnzI9f8Wqzk99tJXzQYaSFm+c= Received: from edelgard.fodlan.icenowy.me (112.94.100.108 [112.94.100.108]) by mx.zohomail.com with SMTPS id 1669534340551186.66915670319236; Sat, 26 Nov 2022 23:32:20 -0800 (PST) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: 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, Icenowy Zheng Subject: [PATCH 3/6] usb: misc: onboard_usb_hub: add Genesys Logic GL850G hub support Date: Sun, 27 Nov 2022 15:31:37 +0800 Message-Id: <20221127073140.2093897-4-uwu@icenowy.me> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221127073140.2093897-1-uwu@icenowy.me> References: <20221127073140.2093897-1-uwu@icenowy.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLACK 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 This 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 /* * 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 */ {} }; 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, }, {} }; -- 2.37.1