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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71B71C2BB85 for ; Fri, 10 Apr 2020 18:45:55 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2D69620801 for ; Fri, 10 Apr 2020 18:45:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kg2cd+wB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D69620801 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=55mnNlUxTmssy+ha5SsI6PeZN6HzqNYootbT1fztXxM=; b=kg2cd+wBtL2blz gBZTvlGgQISF9zMxdn98NU2W+tV/N1cxatQxcd73WXjiakd7ZPAXrTHSRNnzsUzXlIIIUP1D8UBHI Y3mOpWheI8RLZsQ+CURlGdelupjz08SEUxDaFi7HiVDgyt7d5wFBvns9NakKQ4VTnqMeJsl9x/X8R O3IqR26iDnQhC9o8/q2QZe7+7FrfK+NJpED/aBsLBg902szeqUsEHD89usUkU6nO1GCrBAzD1kevC ZxCpEdIt9U+rhtprGjYSR8WtEjP01ZbPshjPmseiq4H0tCqu6yfvszHZDay4hbMlbLfvUYxsZgeVZ pao/nafQEQSpH+H3aFyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jMyf0-0008SQ-8d; Fri, 10 Apr 2020 18:45:50 +0000 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jMyew-0008Rn-HA for linux-arm-kernel@lists.infradead.org; Fri, 10 Apr 2020 18:45:48 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48zRm74CBzz1rlht; Fri, 10 Apr 2020 20:45:43 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48zRm73Yhxz1qqkg; Fri, 10 Apr 2020 20:45:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id CvpEXqUiB5DE; Fri, 10 Apr 2020 20:45:42 +0200 (CEST) X-Auth-Info: PycoTVsxF67b2Bx6t8DCkYO3IO4/iLAeaRmK2mLR3fA= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 10 Apr 2020 20:45:42 +0200 (CEST) Subject: Re: [PATCH V4 21/22] ARM: dts: stm32: Add bindings for USB on AV96 To: Manivannan Sadhasivam References: <20200401132237.60880-1-marex@denx.de> <20200401132237.60880-22-marex@denx.de> <20200406072242.GG2937@Mani-XPS-13-9360> <59d1cc85-a65e-d2bf-4591-0828cf7b8390@denx.de> <20200410090828.GC5723@Mani-XPS-13-9360> <9d3b3a76-9711-6fd9-cb1b-af412c2babcd@denx.de> <20200410113429.GB27211@Mani-XPS-13-9360> From: Marek Vasut Message-ID: <3c342261-eb66-4c03-6981-65b4463e09cf@denx.de> Date: Fri, 10 Apr 2020 20:02:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200410113429.GB27211@Mani-XPS-13-9360> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200410_114546_861173_BBC611E3 X-CRM114-Status: GOOD ( 22.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Torgue , Patrice Chotard , Patrick Delaunay , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4/10/20 1:34 PM, Manivannan Sadhasivam wrote: > On Fri, Apr 10, 2020 at 11:16:53AM +0200, Marek Vasut wrote: >> On 4/10/20 11:08 AM, Manivannan Sadhasivam wrote: >>> Hi, >> >> Hi, >> >>> On Tue, Apr 07, 2020 at 08:37:50PM +0200, Marek Vasut wrote: >>>> On 4/6/20 1:08 PM, Marek Vasut wrote: >>>>> On 4/6/20 9:22 AM, Manivannan Sadhasivam wrote: >>>>>> On Wed, Apr 01, 2020 at 03:22:36PM +0200, Marek Vasut wrote: >>>>>>> Fill in the bindings for USB host and gadget on AV96. >>>>>>> >>>>>>> Signed-off-by: Marek Vasut >>>>>> >>>>>> I can't get the USB B-Micro OTG port to work with this patch. Do I need to >>>>>> enable any configs other than PHY and USB DWC2 drivers? >>>>> >>>>> Only the DWC2 GADGET (and possibly host, for dual-role) and some gadget >>>>> implementation (e.g. gadget zero). >>>> >>>> I think I see what doesn't work for you. >>>> >>>> It seems the following works on next: >>>> power on -> plug in USB stick (or any other USB device) -> unplug -> >>>> plug in usb host (e.g. PC) >>>> >>>> But this does not: >>>> power on -> plug in usb host (e.g. PC) >>>> - the PC is not detected >>>> >>> >>> Both doesn't work. I have the rndis gadget configured in userspace but plugging >>> in the micro-b cable doesn't do anything. >>> >>>> Did that ^ ever work for you before ? I suspect this is a bug in the >>>> DWC2 driver. The OTG operation there is known to be flaky at best. >>> >>> Not on this board. I don't recall what happended with vendor image. But I do >>> have another STM32MP1 based 96Board (which will be submitted soon), there I can >>> get OTG port working. >>> >>> But in that board a BG96 modem is connected to USB2 port on the board itself >>> which gets enumerated during probe. >> >> But it's not configured as OTG on this other board, right ? > > It is configured as a OTG port. But that board has a different issue which > resets the board when we connect any OTG cable to act as a host. That's not > related to DWC2 or this issue btw. Do I misunderstand the part where you claim there is a modem connected to the DWC2 ? That would mean it's in Host mode, no ? > Anyway, I can't get OTG (device/host) to work on both old and new boards. Do you have 588-200 now too ? I think there is some fix in current linux-next which partly fixes the DWC2 role switching, so rebase this patchset on current linux-next and see what happens. But it's still not perfect. I also think that ST managed to side-step this issue by using the STUSB1600 chip, but I might be wrong. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel