Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1443219rwb; Sat, 5 Aug 2023 15:44:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPu7CSiCwjuvsMY7Y8EwHFuaIcVqK94s5Krf+1M5cgIyRbaZHPHKguZIHvHu8jDCdzIvi/ X-Received: by 2002:a05:6a20:5483:b0:123:3f03:68f9 with SMTP id i3-20020a056a20548300b001233f0368f9mr7700612pzk.61.1691275443984; Sat, 05 Aug 2023 15:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691275443; cv=none; d=google.com; s=arc-20160816; b=OnhIz4iCaTk4Kc5WCOQUbHnZIbjco9zyBk+umtht4tgi//w8YTVPNOf+BaQaMWJtSH QnzJ/dk0+PYUcisWs3TPmpBEPJUhz0Dd6qnKBTKoW91QbGQKcmdfZO3ectWJmkxEjndy B+2QWMvpbRGumUTtsP3zHrjNGu+MilczeueCHC9Hi4Ww0vDZaFmCwfCdl+4Y9WzqKoAp 2shkcmpub2G35By4T+zOU8tNFdMCAHlVql4uSehH4wIXnvtB7+TCrMgi6WIPC3+QqxES XxAQjrcuglypdieEatEf7oMH9Ljz9jiCzMJVae/gCpUL0lTrh831ZVYrJ1sC2hcpVYwS MrHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Udedw+f7sx05Q6DqlAhOSPpIuk4HuNrRk0FviM5bJCg=; fh=HlBYwNCh0fGmM/5D+56XTG+lIhLUrq6SQPYhShW+9ek=; b=Ta6tVYolo4CO9pHJD04XjjKyoRUPRHkqIt/UznJt0p3DUA9ZBBZ/Q2BhPFY792HQQv TQJI02Pmon8tGiR9wYXqDG10t7BfeY8k6vOf4GlgdoAuMM7I9vR6aZsXmP5rSqOKY80i 7SzHhwmIQYjUBVQBxWI8ZoAAWkwKHPsNn66ZDHx1BiVvMuUgor01tk/gVL9FX8Qlu2hX XkcZ8epz5ok5wUM/8+QdqA1cnhivH2dnEHBs3JJzVjkSmKgK9RlzDSYGi9VthN02sqeF V1gzXlybcrUojUdixM7hlLWNFucYGCSXKNxjIFx/5cyWNDetvEI3ABFrjvptXdP+f+PB tlDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cu+OQzJC; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t37-20020a056a0013a500b006871178848csi3775152pfg.208.2023.08.05.15.43.46; Sat, 05 Aug 2023 15:44:03 -0700 (PDT) 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=@linaro.org header.s=google header.b=Cu+OQzJC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229653AbjHEVa2 (ORCPT + 99 others); Sat, 5 Aug 2023 17:30:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjHEVa0 (ORCPT ); Sat, 5 Aug 2023 17:30:26 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90342134 for ; Sat, 5 Aug 2023 14:30:25 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4fe5ab64a26so2904192e87.2 for ; Sat, 05 Aug 2023 14:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691271024; x=1691875824; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Udedw+f7sx05Q6DqlAhOSPpIuk4HuNrRk0FviM5bJCg=; b=Cu+OQzJCl9FU2+XLRN5mS+hfTTB/Cwtwf6ChMAsI4j4vULW5wnrmGo+IGNjXVTtElh xQQbMf7r7JckgYGmn5sAA8+Q5CaMfq4bwSg0BOz2bUj3xpNceBbddVaFHkRW9xXprTUC 7+kPWAVEfXiX1kiItHQxc8Atx9BIgOPUP+ExAXASrHvwhFZuEXKAzVTGyZQ9/KFnWsW0 4HKR7Klaoiu8fkrDAsRkSh2pWQl9KoZiwyt5zJr9tcoTeZlbj0W83R2Hk+5OqJUiKDMX prRj/BYVb7a8Bx/0QElXm+tLn3QzSZ8li4qERuI7qTN6fz25vt3veGpZe5O5/m+mFnay 7gDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691271024; x=1691875824; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Udedw+f7sx05Q6DqlAhOSPpIuk4HuNrRk0FviM5bJCg=; b=WSg3n88vVNwGxXGQgRWgzv7BGSz/6tIL8OM4w9BaVa3BA4dke+Ui7nSW5eSWqV14iS Wk2U9D4+cPfXFC5qxHKDAPDmjqIbmFPX3Q3fNioahpWraI9muuNwiada87/JS3IKcYiC DOtNIF0T+zOFZFsTbR0OGD/n1njrqtwk7gI4BZZQtmAiW0kGQFv+HQ7zFKmz5wY2VaS5 dC/M5EP2pnEJueaIIqK+r1g8V+m33mtYEc2xITB22tjVaCaykSxFqFfzLiRcqDHICFuo 9JgMO7l2bkqWU9w0Kkkifd5qq7+GBD7vjZh+/J3u0SBoeLigSOOdYFr3x6lbIbkS9+vt CrEw== X-Gm-Message-State: AOJu0YzKAYdMDszVmgJnwscJC2jVGp1PL3z+0aZ/nrvS9Pygif8H+B1M oWcctEsWGkQxeqnaemHgZybGDA== X-Received: by 2002:ac2:5f98:0:b0:4fd:d481:ff35 with SMTP id r24-20020ac25f98000000b004fdd481ff35mr3526879lfe.42.1691271023831; Sat, 05 Aug 2023 14:30:23 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.245]) by smtp.gmail.com with ESMTPSA id g17-20020a056402115100b005230f2a12b9sm3073310edw.43.2023.08.05.14.30.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Aug 2023 14:30:23 -0700 (PDT) Message-ID: <45d25fd5-465f-347b-448b-ce171626f34e@linaro.org> Date: Sat, 5 Aug 2023 23:30:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v3 3/9] arm64: dts: amlogic: Used onboard usb hub reset on odroid c2 Content-Language: en-US To: Ben Wolsieffer , Anand Moon Cc: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-amlogic@lists.infradead.org, Matthias Kaehlcke , Alexander Stein , Johan Hovold , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230121175639.12818-1-linux.amoon@gmail.com> <20230121175639.12818-4-linux.amoon@gmail.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 02/08/2023 23:06, Ben Wolsieffer wrote: > On Sat, Jan 21, 2023 at 05:56:31PM +0000, Anand Moon wrote: >> On Odroid c2 previously use gpio-hog to reset the usb hub, >> switch to used on-board usb hub reset to enable the usb hub >> and enable power to hub. >> ... >> + hub@1 { >> + /* Genesys Logic GL852G USB 2.0 hub */ >> + compatible = "usb5e3,610"; >> + reg = <1>; >> + vdd-supply = <&p5v0>; >> + reset-gpio = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>; >> + }; >> }; >> -- >> 2.38.1 >> > > Hello, > > This patch breaks USB support on the ODROID-C2. As soon as the > onboard_usb_hub module is loaded, all USB devices disconnect. > Blacklisting onboard_usb_hub makes USB work as expected. > > I tried to reproduce the problem by manually toggling the reset line, > but the problem seems to be specific to this driver. When reset is > asserted manually, the devices disconnect, but they all enumerate again > as soon as reset is released. > > Also, I have been unable to make USB work again (until the next reboot) > even after unloading onboard_usb_hub. Wasn't this patch made exactly to fix USB support, not break it? I might be missing something but maybe this was not tested at all? Best regards, Krzysztof