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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 72C46CCD1AB for ; Tue, 21 Oct 2025 12:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To:From:Subject: Cc:Message-Id:Date:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uWlVYTKsEmjGgtk+H/yuvA8glFFjyELqkfotBgaSTos=; b=TUZrj5Oebl3WXH G/D6L9xVJrFAZ6RNC85MJ2ALs2yrhVX18SbQfjm/czv3OErxe2RHTD8fPcuZlmAnxmVptrFcYTLsY /PoOYfX2+RR/6gu87VhP0ZKaoEj/LwxaBQlWSOFeqnzS67hFHS0ILgSeiT1Gy1LmRsRKn3ggo6gWK ZA39Arlkb2lGskyB7OiV6aTMBIV4CQ4AeN5Y98yGIHV02dUB3eIJvCHV0RDzoMLyYH1Fm72pytG/0 nC00a8ZfY1tqQuxU5A1Wa6xukLIGRrxkUP4oPkTiHOLP/Rhab0HYKaUM6NO8YP9U0lTtyoWQ61Stx MgWM7Fj9dbxWWe4bI8uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vBBBh-0000000GuLY-0L5T; Tue, 21 Oct 2025 12:10:01 +0000 Received: from smtpout-02.galae.net ([185.246.84.56]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vBBBd-0000000GuJ9-1SKj for linux-phy@lists.infradead.org; Tue, 21 Oct 2025 12:10:00 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 626ED1A1586; Tue, 21 Oct 2025 12:09:54 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3731360680; Tue, 21 Oct 2025 12:09:54 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9E336102F23E9; Tue, 21 Oct 2025 14:09:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1761048593; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=jYftyPWe3cSDHOa3crBNXagLfu5+YLZP87koZDXEKHE=; b=AZ06nvrfdkt65l4E235uJTkuujLAFE0Xkr8yMlv8YGs+4Wjxl3cDNrgnC2wekfhdFKRJbx p978H1NRdxMUpJOiFKTjCdI2um+XRjTW5kiMLUBqR8J0FIKF/0630noMdkQ5tTxG2+A3iG 5z+SYTF9YQI2Kqf5cFY5J7mxrPj7RJGbY7dzFj2hWOIjY+oL8pIl7gsj2ke1a4Gbrc/VfF jlZMh+iIoacYmLgyB4ovjesL8k3qgXAxwHguAQanDz0WhDnNO7IDoGaAnG34IFTBjEpU0W sAoLDPQEgCpOCHULSukUf3kb/HqaPCJuyQye8KRi/jTHKU1fRYNuNPbOB6YXLg== Mime-Version: 1.0 Date: Tue, 21 Oct 2025 14:09:39 +0200 Message-Id: Cc: "Kever Yang" , "Minas Harutyunyan" , "Alan Stern" , "Louis Chauvet" , =?utf-8?q?Herv=C3=A9_Codina?= , "Thomas Petazzoni" , , , , , , "linux-phy" Subject: Re: [PATCH 0/2] phy: rockchip: inno-usb2: fix gadget mode disconnection after 6 seconds From: "Luca Ceresoli" To: "Luca Ceresoli" , "Vinod Koul" , "Kishon Vijay Abraham I" , "Heiko Stuebner" , "William Wu" X-Mailer: aerc 0.20.1 References: <20250722-rk3308-fix-usb-gadget-phy-disconnect-v1-0-239872f05f17@bootlin.com> In-Reply-To: <20250722-rk3308-fix-usb-gadget-phy-disconnect-v1-0-239872f05f17@bootlin.com> X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251021_050957_536889_C2025D57 X-CRM114-Status: GOOD ( 13.61 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Hello, On Tue Jul 22, 2025 at 10:43 AM CEST, Luca Ceresoli wrote: > The USB OTG port of the RK3308 exibits a bug when: > > - configured as peripheral, and > - used in gadget mode, and > - the USB cable is connected since before booting > > The symptom is: about 6 seconds after configuring gadget mode the device is > disconnected and then re-enumerated. This happens only once per boot. > > Investigation showed that in this configuration the charger detection code > turns off the PHY after 6 seconds. Patch 1 avoids this when a cable is > connected (VBUS present). > > After patch 1 the connection is stable but communication stops after 6 > seconds. this is addressed by patch 2. > > The topic had been discussed in [0]. Thanks Alan and Minas for the > discussion and Louis for having found the 1st issue, leading to patch 1. > > [0] https://lore.kernel.org/lkml/20250414185458.7767aabc@booty/ > > Luca > > Signed-off-by: Luca Ceresoli Anything I should do to move forward with this work? These two few-liner patches solve real-world bugs, there is no complaint about them, and both the bug and the solution is explained as clearly as the public documentation allows. FWIW, this series applied cleany on current master (v6.18-rc2-8-g6548d364a3e8). Best regards, Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy