From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33EF213635E for ; Wed, 24 Dec 2025 11:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766574418; cv=none; b=Q3CpPaMhUPXc/ccATQ0uwNpJDodQLk4dQ7K3c2mPT8u1mTAkNkpCdVcUTn0MPX1Ss7nLGlcUOb8kXIAUAB0D/by9tGtN/bH3sqR9rswF4A67eEGNoL673ZAHavsc/LYl5B3tyIPuLuxkm1fL1+1UNV7l9T1V19TM2Zz/WeVeqQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766574418; c=relaxed/simple; bh=rNFO7MD+BgEvWfEzhHmD2NN0+Ksk7IDHuVrqB5FIZPA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TKL5K6J8hsNELlTIYj+xeydT8+xOQNUVmDtuC6+cjFTWkDMZRLhSDOM+TxGNdogevuHrJjcLufNoonEE4axulPJH69y6Fn2Jz+9bnh80KxSmMI2T2C7EVLsn0PVxrd0RWEnUenmaQpMycCFsA/Z5QDcgT2ymETShS0U0uj82Yig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BFIHaniS; arc=none smtp.client-ip=209.85.214.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BFIHaniS" Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-2a0b4320665so88635535ad.1 for ; Wed, 24 Dec 2025 03:06:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1766574416; x=1767179216; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rNFO7MD+BgEvWfEzhHmD2NN0+Ksk7IDHuVrqB5FIZPA=; b=BFIHaniSjyXlRM6JLOIInnU25nf4pJRiJApJIK6oyLAUWbyziTRWBPZlT+TQ5G/6/d tIfY+k30HooeGBgArhZkK/OeRMu4it8cTrvlFwesq/1SUkgBjInQ9zyruntjVc69ZhWA INBfeSv+EQ1DM+cBKg9hux9bhIpw4D9JiDLW2cKqnFWuNlsvYEv2Od6MO40OByVm5jeB jbISEdaBOnjIlIhJ1j/wFJpz4c/jZBaeQzI5vvrUVMIrotalymhhj/8NVTovndzrvg7d fFXaYlsJLwjn8nvOn1/ojBoMnqJwIocwuC5A9KJUsZ/UG4ak8gSDTYEeGu18FbB4Qv1y b2rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766574416; x=1767179216; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=rNFO7MD+BgEvWfEzhHmD2NN0+Ksk7IDHuVrqB5FIZPA=; b=KaeMK8PVkwqmdWFlFK9C/1+3PLO/H/ctdAu+SnXnO21QUYNfJA5IHTisfU/XvCIAsD HfKTFzLu0GQZknYPbRi8iBFhqKQt/bG87Bz49nG98HR8s3TzuB6Qq2f5Q9yyJexAageg aB30FcI58CwwXNwSlSMFM4GWeqQZ/71/a01KudeYRDW85RVQw0zcel7xm9gWWjE4gAtQ b1OXxuV/yC5F2GDOLwRVLBoLOdujmRIIlrxRjbekvOQtnCXxigE8ZasPM+2VK7T4E0LZ uj96U6ZmMOPVh+zAP+BUvgUUPN6s3CHJXNI9BsIk8y0VWFqqOziroxvNThBPmYcn8Hb0 wMnQ== X-Forwarded-Encrypted: i=1; AJvYcCXu4moEIGbvUDr/mIAD1QEW9suJwBsdDJDvRKK87sfVgY38Omd6iJFx/pyK7iTgqvz0dTeuUqM7KbOVd4I=@vger.kernel.org X-Gm-Message-State: AOJu0YwP7fqVAsJQgRjihlJngC/5rIont+nUxOTGccQXGbq5RjzvZPef k5mSS9tVYkw793cW5LpT4UtnEO+uKVKOXOHUaNGiDhSChbpKh9vNEmqc X-Gm-Gg: AY/fxX47ciweKrUySh9+9DMc2hYEhMTmITVlEDUDapx5WqB5A4OUlHODRX4z+UKcpxz 6lXhAS+XeMGT4pZ1w5XMgGEjPIQQ6RU1edGn+FgjuI1CSsbzn4pKHKLonDZgM69ehbVNZY9MZ8A C4+BdspplikOL+Wpwg82o0Xz0KfWNUfp0c0HUHLT2b8WTc8eoq4VRYAshxckI1wtKw/Me+StYgu G7ROqbGhNOkMWbkkBDuclcW2MypBx/SVr+a9/bTCI7S/43dpxq0xAD72X0wvOT4vJiQnqYc02c2 XyRwErz4+LBX1ZAXNI8pfh5pXnH9MBqhe+W3mAUsVQd5UUIIGgmL1fp4ad6BIbDFhGs/DD2kuHV nmxEiUaWr4QMb5hT0S1xD/utfQTU2889RaHHVC4L9wREYxX4H8pF5VOpzWAiGnIHk3GSWbB2cNu TVUGzlQhnQAAVLj76t2viSGxXKJA== X-Google-Smtp-Source: AGHT+IHalcFAL7eYVSFewhJXIKyoAgwZscQPTM18/h4IZaYPkpXM4y2F5kLJpcBt69ANa86EkH8HDg== X-Received: by 2002:a17:902:c403:b0:29f:29ae:8733 with SMTP id d9443c01a7336-2a2f2c4dafemr163139825ad.53.1766574416375; Wed, 24 Dec 2025 03:06:56 -0800 (PST) Received: from localhost.localdomain ([113.98.62.227]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a2f3c82a9asm155409205ad.30.2025.12.24.03.06.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Dec 2025 03:06:55 -0800 (PST) From: Jason Sun To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, sunqian@senarytech.com, jason.sun689@gmail.com Subject: Re: [PATCH v2] dwc2: Delay resume until device connection is stable Date: Wed, 24 Dec 2025 19:06:06 +0800 Message-Id: <20251224110606.87610-1-jason.sun689@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <2025122444-handcraft-hammock-c020@gregkh> References: <2025122444-handcraft-hammock-c020@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Greg, Thanks for the feedback. At the moment I only have access to this board on a 5.15-based BSP, so I can only run-time test on v5.15.140. I don't currently have a working mainline (v6.x) boot chain for this hardware. The patch applies cleanly and builds on the current usb.git tree (v6.15-based, build-tested only). The change is based on reviewing the resume path around VBUS enable, which still proceeds after a fixed usleep_range(3000, 5000) delay and can observe an unstable CONNSTS window on our setup. Please let me know if build-tested on usb.git is acceptable for now, or if you'd prefer the change to be conditional (e.g. via DT or a module parameter). Thanks, Jason Sun