Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1013295ybl; Wed, 8 Jan 2020 09:30:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxoa7tLpxI/UCja6zHCEq0TjfktA7oupNtbBXXpV/Jg5Xdg/3gjvEAQQzzXTVMVCrzSFulh X-Received: by 2002:a05:6830:1289:: with SMTP id z9mr5181685otp.317.1578504601223; Wed, 08 Jan 2020 09:30:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578504601; cv=none; d=google.com; s=arc-20160816; b=xZ21FhgJkIWXA6qoMQkXSgQcnmbOSHwASD6c9Y/fflO3ftZME0G7DgkcIKRyW01VAk VD5YhSupgZvmNj7CRFP8oFnD0V70W1OAQhk/nbrO9cFvp+Tvzr3RTCa+nH3BCRKwhzNO we/at33agd4t1j+hqDjbCVBGxXJUp/uwf9BXYzRdWja5/N+NhtEpKeZEfJMZnDA3lvKv mkvi5jsLNiKPGGpe2Fp2UevjYTvAJmGFXM+LfyS/Jq1rEIzBchPLB2MVaQPBiIl2R+6W yXbCOPzTv4OgM7/rVMTwZBLKqF2maZKSs4WLMgOVb96RuUVdKPNLRVKmPXgWZZsez6ct tddQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=H6jMF3RdLQNxZceA/DsMFkwViyWNUCusyaIINrrG7Bc=; b=aT2s/Wm1y4t6Omai20VZ9i+8hknx/qJ1vV5FPQsjHIUlnFXr0mCs6kgJgYGfPymkvT nzOO6RV++shyCNJkoTyHDF0avJqJWMg0z0AW3XpcKWmGwVkCzp32XqXe/PyPcCXWmcsa 4BHUFFVQUpSH6g7JsGAT+CENPRwNDVOkbW+e0d3ri9LGjpKJC9UPxLZ7ALUdaeMQe7Pm scWNk9DSiq0xI+Sp27omEx2cNRRqUCPbhzqTpquwzCItfTqKLVLrXvvLwXSuHXIS/ULE r4zQwFfGzTJaQ050NNp3jwSDi8JWOU3BaAgccLBt6AoLgT04+D7LQ5jITbeFUpiLOkRz UIGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si2079028oic.116.2020.01.08.09.29.49; Wed, 08 Jan 2020 09:30:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728590AbgAHOCV convert rfc822-to-8bit (ORCPT + 99 others); Wed, 8 Jan 2020 09:02:21 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.164]:16720 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726699AbgAHOCV (ORCPT ); Wed, 8 Jan 2020 09:02:21 -0500 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Qpw97WFDleVXA0PuFc=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 46.1.3 DYNA|AUTH) with ESMTPSA id a09dafw08E2AfoE (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 8 Jan 2020 15:02:10 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [BUG]: usb: dwc3: gadget: broken on OMAP5432 From: "H. Nikolaus Schaller" In-Reply-To: <7daf64ba-7efb-e2f1-a449-f5f3791a3c8e@synopsys.com> Date: Wed, 8 Jan 2020 15:02:09 +0100 Cc: Felipe Balbi , Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , Linux Kernel Mailing List , Discussions about the Letux Kernel , "kernel@pyra-handheld.com" , Linux-OMAP Content-Transfer-Encoding: 8BIT Message-Id: <8E70227F-28DB-4C38-9EA4-FB5B0260C88F@goldelico.com> References: <703DD239-8E3B-405C-A531-FF7DEEED38DC@goldelico.com> <7daf64ba-7efb-e2f1-a449-f5f3791a3c8e@synopsys.com> To: Tejas Joglekar X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Am 08.01.2020 um 10:06 schrieb Tejas Joglekar : > > Hi, > On 1/8/2020 2:29 PM, H. Nikolaus Schaller wrote: >> Hi, >> I noticed that the usb ethernet gadget driver is broken since v5.5-rc2 >> and 5.4.4, but only for our OMAP5 board. Our OMAP3 boards work with >> the same tree, kernel binary and user-space (Debian Stretch). >> >> The symptom is that I can see the interface on the host PC being >> enumerated and IP addresses etc. are set up. But a ping in either >> direction fails/times out. >> >> After inspecting diffs I found some changes in dwc3:gadget >> and indeed omap3/twl4030 uses musb and omap5 uses dwc3. >> >> Reverting >> >> a7f7e61270f1 ("usb: dwc3: gadget: Fix logical condition"); >> >> on v5.5-rc makes it work again. >> >> BTW: v4.19.90 works although it includes this logical condition fix. >> So the real difference between v4.19 and v5.5 may be elsewhere in >> newer kernels and only be revealed by the patch. >> >> If important: my setup is running with USB2 cable and speed >> only. >> >> So please check this and other recent dwc3 patches for introducing >> a stall of communication. >> > Another gadget driver issue was reported by Thinh after my fix, and he has submitted a patch for the same. You can refer the discussion https://patchwork.kernel.org/patch/11292087/. > Can you check if that patch works for you ? Yes, it does! So you can add my Tested-By: H. Nikolaus Schaller if possible (I can't reply to the original discussion). Would be nice if you can get it into 5.5-rc series and 5.4.y asap. BR and thanks for the quick response and solution, Nikolaus Schaller