Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1602835rwn; Fri, 9 Sep 2022 00:37:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xkIbB2SK0dslT0uOcT+1y0Hbol/un+0v65C3bbf2/B9FbaIOm5wtzY2X+R80vrDMx7rfb X-Received: by 2002:a17:90b:30d0:b0:200:22a4:bfcf with SMTP id hi16-20020a17090b30d000b0020022a4bfcfmr8110354pjb.181.1662709054986; Fri, 09 Sep 2022 00:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662709054; cv=none; d=google.com; s=arc-20160816; b=qmuBaZBdwkZfmn6cRJ1L++SkXLysLMjkpAOfhq//jpA+Ty1KlFVJFRzepyY4Y78ZYH fMqOJewvBbY4zx5Lo0aXRSwoDFI3CPyilnYjxW6VPE57cyUDlW3QQTTdA5i45auJAgYL m/dIeqBHrEfsM6KggpcKmepmLLPFdYxaS/JiSRJ+yCdb4sqTYZ1y56+A4qRdlTadztMT iJ+IiPY9uHd9gLlZSKwbeLPqfykUa/IEtQG092qZfYnpRnrftsQ1hlCVdUtg+wq14pri jZdXeLxA2mbgIPjkLhhPCSWPHsUG+faQOf7xIFERdO8UX40uUd1Op98MJAUjaLbUKmcX eG5A== 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:dkim-signature; bh=R9jqDWJKOSPa7skRdLiLEvmaH3Oje202nmu6B5CaGX0=; b=0A7Rw9bTsvftvooMTDLt/u9ftfkFF8YmJCJFvYVwWgtnrWaaClGkVgIMUxWvdV2YRE uC3bVF0szhmqx3uYmPlKZT/YXKYr5g993jUjZBDw6YbqalvJXydMwi7p2O+KuJjRPhqV Jz5MWKlAcqbqkYIywRCEWkI9KrSQFE/2Rxlr9YwzjibgQ+H7kZhnCzCAcjNLm0OupJSy rSOtpfj6BQucCb2XsR4tT1y6y3XUqeXtMGOWorpfpbcEdQb9/cROfCus9o7jAIFWIVKy PXjsa1LPjqQPUtT7dC2BR16jTOoZr3lZBZwrvPZWI1bw9QHg916owhyHQ9xSyT2/LpHT kcOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1zjYMpdf; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a188-20020a624dc5000000b0052e802c48c3si1350963pfb.107.2022.09.09.00.37.21; Fri, 09 Sep 2022 00:37:34 -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=@linuxfoundation.org header.s=korg header.b=1zjYMpdf; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231345AbiIIH2D (ORCPT + 99 others); Fri, 9 Sep 2022 03:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbiIIH16 (ORCPT ); Fri, 9 Sep 2022 03:27:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3225117780; Fri, 9 Sep 2022 00:27:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 450C8B81AD8; Fri, 9 Sep 2022 07:27:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C35AC433D6; Fri, 9 Sep 2022 07:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662708474; bh=mnzTTxDh8PH0IXMo6zEj1N+2BnrD3K/mqm5cDR3dKA0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1zjYMpdfhCXPCSPrYli9XUVpiqogqzjwfL+8WJpBrKEuThmS7fK/WqLUmLWJ5SbG+ exvx2T/uu6bjPhd2UqSKL2fp6wJQ/1gbW5xdAv7HO1VHrmkMDXIpLSe67a1CFN1UFB HlC98PmAOchOqVMaiN3rES6BapDYt7W68elSp428= Date: Fri, 9 Sep 2022 09:27:51 +0200 From: Greg Kroah-Hartman To: Jun Li Cc: Alexander Stein , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 0/4] USB host support for TQMa8MPxL + MBa8MPxL Message-ID: References: <20220907144624.2810117-1-alexander.stein@ew.tq-group.com> <3126965.5fSG56mABF@steina-w> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Sep 08, 2022 at 09:07:06AM +0000, Jun Li wrote: > Hi, > > > -----Original Message----- > > From: Alexander Stein > > Sent: Thursday, September 8, 2022 1:50 PM > > To: Greg Kroah-Hartman ; Rob Herring > > ; Krzysztof Kozlowski > > ; Shawn Guo ; > > Sascha Hauer ; Pengutronix Kernel Team > > ; Fabio Estevam ; dl-linux-imx > > ; Jun Li > > Cc: linux-usb@vger.kernel.org; devicetree@vger.kernel.org; > > linux-kernel@vger.kernel.org > > Subject: RE: [PATCH 0/4] USB host support for TQMa8MPxL + MBa8MPxL > > > > Hi, > > > > Am Mittwoch, 7. September 2022, 18:08:25 CEST schrieb Jun Li: > > > Hi > > > > > > > -----Original Message----- > > > > From: Alexander Stein > > > > Sent: Wednesday, September 7, 2022 10:46 PM > > > > To: Greg Kroah-Hartman ; Rob Herring > > > > ; Krzysztof Kozlowski > > > > ; Shawn Guo > > > > ; Sascha Hauer ; > > > > Pengutronix Kernel Team ; Fabio Estevam > > > > ; dl-linux-imx ; Jun Li > > > > > > > > Cc: Alexander Stein ; > > > > linux-usb@vger.kernel.org; devicetree@vger.kernel.org; > > > > linux-kernel@vger.kernel.org > > > > Subject: [PATCH 0/4] USB host support for TQMa8MPxL + MBa8MPxL > > > > > > > > Hi everybody, > > > > > > > > this is a series based on the RFC at [1] for USB host support on > > > > TQMa8MPxL > > > > + MBa8MPxL. The main difference is that USB DR support has already > > > > + been > > > > added and has been removed from this series. > > > > > > > > The DT configuration itself (patch 4) is rather straight forward, > > > > but leads > > > > > > > > to the following dmesg errors regarding superspeed ports: > > > > > [ 8.549243] hub 2-1:1.0: hub_ext_port_status failed (err = -110) > > > > > [ 22.885263] usb 2-1: Failed to suspend device, error -110 > > > > > > > > This hardware works fine using the downstream kernel, because for > > > > imx8mp this ITP sync feature is enabled conditionally [2] & [3]. > > > > Hacking this into mainline resulted in a working superspeed setup as > > well. > > > > I also noticed that on some android kernel [4] depending in IP core > > > > version either GCTL.SOFTITPSYNC or GFLADJ.GFLADJ_REFCLK_LPM_SEL is > > > > enabled unconditionally. > > > > So I opted for the latter one using some quirk (patch 1-3). > > > > > > > > I have to admit I do not know what this is actually about, nor why > > > > my setup does not work without this change or why this fixed my > > > > problem. So maybe someone with more knowledge can say if this is the > > > > way to go or what this is about. > > > > > > This can be updated:) > > > > > > > I also added snps,dis_u3_susphy_quirk to the board level as for some > > > > reason USB Superspeed U3 does not work. Detecting the onboard hub > > > > takes much longer and once all devices are diconnected from the hub > > > > it is put into runtime suspend (U3) and new attached devices are not > > > > detected at all. > > > > Until the cause is known and fixed runtime suspend has to be disabled. > > > > > > For this issue you are reporting, I am not sure if this is caused by a > > > USB clock change merged on v5.19, if you use latest kernel, can you > > > try with below patches applied to see if U3 can work for you? > > > > Awesome, This does the trick! > > I was already running with patches [1] & [2], but was missing patch [3]. > > With all of them applied, USB detects a newly attached superspeed device > > when the HUB is in runtime suspend (U3). > > Yes, patch[3] needs to apply with patches [1]&[2], I am applying the > same tag to make sure the 3 patches land on the same target release > as they will go through diff maintainer's trees. What "tag"? And I'm confused as to the status of all of these, please resend the series once you have a new version with the proper acked and reviewed-by added. thanks, greg k-h