From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8D30C4708E for ; Fri, 2 Dec 2022 16:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TWrqm6e/6yrpQ8zP+yJ8GKRh1wc32aDGyVGRN21CRsQ=; b=1F2/tkwKMHZVpf BeW0ltGW9few+pvcvLssngAS6z16+3md0F3nQrOKq3jtBO5/0Fu6emVZMkGujlk/ZFajpulHgRYSM x9fZO7UZEDGCGYkTizAq2EhiGrhyYPYHTn8SH/UyHTHGgL3M1nUSGBjpk6J6Oei5b22QU49+JmaTX YpKIt2q5rX8k54Qc2ki5EOv4y6H5TZXHi8NV+tjkUaxG0059nj9n593nv974/8LHUkYhju7jn8Ldd FdUG4uxFshn8hYmz8glVVeVGKX4OynkVdLAd7AisL8hPTyg+ja8r1WQ/rnIjF1X9xXOgLLiAcFUD8 AfPi62gfVWMgHjxKuzDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p19Ks-0008X1-7h; Fri, 02 Dec 2022 16:56:26 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p19HX-0006hf-QG for linux-arm-kernel@lists.infradead.org; Fri, 02 Dec 2022 16:53:01 +0000 Received: by mail-il1-x12a.google.com with SMTP id x12so2308595ilg.1 for ; Fri, 02 Dec 2022 08:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Pt4n+Bc+eDdCru9ZY4GLZ4Q8PtpiBAtoUiS2Dufe20M=; b=RDLXegfhfNzZVOEiLG3Xs6+uYe8OAYXU1MhaAQWOrsBarzTzN/dPBkKdAMqADWe2BN LwZgOtZEsPva5jY9b0sxLN3yFrNv9HZT5LaXky9DGBme+/+K7aU705E2+llHmX0iIhAj Jn7EY8sIHWNTUGBvJ2wA2W0dzkUc+D8PHjYQw= 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=Pt4n+Bc+eDdCru9ZY4GLZ4Q8PtpiBAtoUiS2Dufe20M=; b=Q7aHFGlKykHD0gpHUWy8jWhfKnCxYqBC9Bp0COPVHj/xWTkV5tVXrJfXgN1SlPa575 N6k0CndXfQp7o6F4+b5ozpXe6GJ1ZwoeSBj8qB/WEBse+lSssJi0bbCEtrX50AHYfBWR c7QSoyDDrXUXOyQSecAOm7jVDx+3gVXkfEV8qwSecp9aS++u2HZm/sEYIpfh+gv4Wu1P DRxwPAoCbR8Ew3nuy8dIa1tssKYZgqd8tc8LEsTdLGqA4itQRt8sDXZAfgSeS2sbfvNw cjiH4Sbn/vjZvnMmXxRiKxL1wt1xYANPVQf6U/pEBvFYq69Tu4EHD3KWWacvUXEbXQYh dqow== X-Gm-Message-State: ANoB5pmEe0imf8otOW2GL2JFghJIe5p4Q++7i3uAmuHCKD4yHF5gu6Zv vPGMITJHA7du9KPtrKVLwBdRdw== X-Google-Smtp-Source: AA0mqf5258QR3nGa5TuixpgHlPAodopMppWne3AWeZO4Dc+3ajcjKPVWFgo23JOBLlXdud+lP5NhhA== X-Received: by 2002:a92:504:0:b0:303:634:b07d with SMTP id q4-20020a920504000000b003030634b07dmr13958276ile.25.1669999977388; Fri, 02 Dec 2022 08:52:57 -0800 (PST) Received: from localhost (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with UTF8SMTPSA id f3-20020a05660215c300b006dfd3599b60sm2326297iow.26.2022.12.02.08.52.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Dec 2022 08:52:56 -0800 (PST) Date: Fri, 2 Dec 2022 16:52:56 +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 v2 3/6] usb: misc: onboard_usb_hub: add Genesys Logic GL850G hub support Message-ID: References: <20221202081647.3183870-1-uwu@icenowy.me> <20221202081647.3183870-4-uwu@icenowy.me> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221202081647.3183870-4-uwu@icenowy.me> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_085259_914965_385EB644 X-CRM114-Status: GOOD ( 23.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 02, 2022 at 04:16:44PM +0800, Icenowy Zheng wrote: > Genesys Logic GL850G is a 4-port USB 2.0 STT hub that has a reset pin to > toggle and a 3.3V core supply exported (although an integrated LDO is > available for powering it with 5V). > > Add the support for this hub, for controlling the reset pin and the core > power supply. > > Signed-off-by: Icenowy Zheng Acked-by: Matthias Kaehlcke > --- > Changes in v2: > - Sort things, by names or vendor IDs. > > 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..94e7966e199d 100644 > --- a/drivers/usb/misc/onboard_usb_hub.c > +++ b/drivers/usb/misc/onboard_usb_hub.c > @@ -331,6 +331,7 @@ static struct platform_driver onboard_hub_driver = { > > /************************** USB driver **************************/ > > +#define VENDOR_ID_GENESYS 0x05e3 > #define VENDOR_ID_MICROCHIP 0x0424 > #define VENDOR_ID_REALTEK 0x0bda > #define VENDOR_ID_TI 0x0451 > @@ -407,6 +408,7 @@ static void onboard_hub_usbdev_disconnect(struct usb_device *udev) > } > > static const struct usb_device_id onboard_hub_id_table[] = { > + { USB_DEVICE(VENDOR_ID_GENESYS, 0x0608) }, /* Genesys Logic GL850G USB 2.0 */ > { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2514) }, /* USB2514B USB 2.0 */ > { USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 */ > { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 */ > diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h > index 34beab8bce3d..62129a6a1ba5 100644 > --- a/drivers/usb/misc/onboard_usb_hub.h > +++ b/drivers/usb/misc/onboard_usb_hub.h > @@ -22,10 +22,15 @@ 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, }, > { .compatible = "usb451,8142", .data = &ti_tusb8041_data, }, > + { .compatible = "usb5e3,608", .data = &genesys_gl850g_data, }, > { .compatible = "usbbda,411", .data = &realtek_rts5411_data, }, > { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, > { .compatible = "usbbda,414", .data = &realtek_rts5411_data, }, > -- > 2.38.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel