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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07925C678D5 for ; Wed, 8 Mar 2023 17:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbjCHRZ1 (ORCPT ); Wed, 8 Mar 2023 12:25:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbjCHRZZ (ORCPT ); Wed, 8 Mar 2023 12:25:25 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43D9F60A8A for ; Wed, 8 Mar 2023 09:25:23 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 1C7EC6187A for ; Wed, 8 Mar 2023 17:25:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 060CBC433D2; Wed, 8 Mar 2023 17:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678296322; bh=Cs6CK+or4xNFoDW6vhZwHmtvm+/j2BOTqoa17wP4Rzg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MfeCwUb5FZi4oThFfQyLskMKiQMqoSGLC0XDM2zilb5UIDCYEnSmzQoeTNEN0o0Cr FTM/I410iJhhm+UJXxYOM39ytZ9eRV16JmPBcMbLm4MXlkXKPtRhzoCgI1q6GvS0OI ivux0CUlWmdmJqarYqjDj6099CFPRUbbwm/r2i+U= Date: Wed, 8 Mar 2023 18:25:14 +0100 From: Greg KH To: Joakim Tjernlund Cc: "linux-usb@vger.kernel.org" , "balbi@kernel.org" , "ran.wang_1@nxp.com" Subject: Re: dwc3 gadget and USB3 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Wed, Mar 08, 2023 at 05:10:17PM +0000, Joakim Tjernlund wrote: > we are using fsl-ls1043a-rdb based design but with a ls1023a SOC and > use USB0 in gadget mode running either NCM or RNDIS ethernet on top. > > When we connect the gadget to a PC(Linux of Windows) over an USB2 hub, > networking(NCM or RNDIS) works well. > > However, when we connect the gadget directly to the PC/laptop which uses USB3 > we see something odd: > Ping from PC to gadget works. > Ping from gadget to laptop does not. However if we also ping from PC at the same time we > see gadget to PC start working. > Seems like ping from the PC tiggers the gadget to see incoming pkgs somehow. > > Any idea what might be wrong or how to debug this? > Kernel 5.15.87 5.15.y is very old, does this also happen on 6.2? thanks, greg k-h