Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3176213lqp; Tue, 26 Mar 2024 01:30:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXb3pENC7AMvehnmi1fB4mrThuYOm9fswulMiUCYNIEkqli3hLggM0Vfu2AnRnMfeAZRllnH1L8XO0b/D/7zWB80MEtX6B/NTt8TD8q6g== X-Google-Smtp-Source: AGHT+IHXScJJ3CA42JC6J5SJJ14gLxYBgwqljvEYS4tiolEldFlspGvDfdQJTvYyecE1zN3kuka1 X-Received: by 2002:a67:e454:0:b0:472:e778:5831 with SMTP id n20-20020a67e454000000b00472e7785831mr465571vsm.23.1711441841613; Tue, 26 Mar 2024 01:30:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711441841; cv=pass; d=google.com; s=arc-20160816; b=TESi9YV45uvnJbJwXtwTuJU6a8YXSuBv2u3UJKbd+RpMeHZUSfuBrgNzHWP4IUIskF yhoVD9dQ6SU/xVgAIurN4MYBOIMphuAbG0xtvkIakWx7vTeGyG2+6fhgShJli5ZREIZC wRbsmRdWlXbTifafi76CrzLWK1P9swFEqskyE60fvOsXeaO1HcUYsz9bv5ITVHCv9IvK CA3IMHnV/8wvThf0LfJrDwPCIZwHb6oMMaVXqbHWt7VHodgaVKAadUu0C5BK9RuQfx/b sVM5zgV81q2zZKzGcWCbWheyFmiAYuXR4/NKNsgKZEilvEHE3OVMuSSKQS0eaFOw5wMK O1Iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QogR6ey0EkK7q3cOT+2mX4AxJMDFtL1q5LQw9XjGldg=; fh=D61lPcrHWMAFuWsTlKwEvYyQQjUQusBaaHJUcTqdc+I=; b=mb3r+FmxByt/JPkyz1WPJes74Awi2iqorZ7AfjdK1lcRvjxGBQFC7/FT00wmv7Mqcn idgxucXS8ZPuOQXVvk+225ESdTbbUxSGYl6eQkYaMbMUw3h+wJGLLQiFbI2Po24nvRJT lXhRxcvMH4pr/4zjcAlbdheLHiq1i4pr8HdfsI/EG2ktUBsZ30wivcF5XL1TaZ8z/dyx qwwMVrq/nIILG06VBohzJeQydstR05I5C3B55PWPCqW16DtmBwtRyVmzURLHrvRp6CRD IF2D/lZm2B3kqnLYKmU4xtso2zL7A1JtrM8wPnZ1wU6iA8vvvRCiUDjAFYSXURufSD4S r48g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yiw52Iex; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-118543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h5-20020a05620a21c500b0078a2fdb9e14si7006188qka.125.2024.03.26.01.30.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:30:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yiw52Iex; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-118543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 55D731C30E01 for ; Tue, 26 Mar 2024 08:30:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 416F9137752; Tue, 26 Mar 2024 08:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Yiw52Iex" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 644F1128392; Tue, 26 Mar 2024 08:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711441771; cv=none; b=s3P4zlvPPx2u/LPHy9pdJjYOUseANqWxxRTx+Y1+zhzIa0/Om7kRNl706myqYvwVibUNEy1Uer7rCuZj9wcY53SPq2Lh7aYI69PtPmq8xlxA6uHwXwYSR3TQXWcYbgBwH4hXcMOhQsslYc54Y4UYW11cFdVM1DJ7+Tvr+QVPFUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711441771; c=relaxed/simple; bh=vc6aHwbmE8151ViOOvewkuy6wUpc4nRDbj3fGQOqXjk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ahUvdsOSKa2qhj5WCHasdHN4JUQ87qGUU40A8x2ujYqGWUHKK7LjMEdSf+9mJsWG8YktDQceq3YEnmzfvLCzYm+Y199D2a6KIRMXSKqJ2HSCV+KbDJDmTQ0/BWdH47DZKKgq56MRD7fqysfTUc80J4RtTLgDcxx2JEksng40LBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yiw52Iex; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4A20C43390; Tue, 26 Mar 2024 08:29:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711441770; bh=vc6aHwbmE8151ViOOvewkuy6wUpc4nRDbj3fGQOqXjk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yiw52Iex+DY8QVYZBLDZNupvVNNxIO8UwjXZQSs5aUlErpuObEkNzjng5zswV2+0N HBQLQxLmby2tKrf0aNryUXGbUwGTj48gMTaW5ZLytaYvBFUb7g1gQdZaPphm5wVjNo cxx5K/JTyUAAGb59Yeam7+lKOxMLqgio6xM92pus= Date: Tue, 26 Mar 2024 09:29:27 +0100 From: Greg Kroah-Hartman To: Pavan Holla Cc: Heikki Krogerus , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Abhishek Pandit-Subedi Subject: Re: [PATCH] usb: typec: ucsi: Wait 20ms before retrying reset Message-ID: <2024032624-subtitle-crisped-f4f1@gregkh> References: <20240325-ucsi-reset-delay-v1-1-d9e183e0f1e6@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240325-ucsi-reset-delay-v1-1-d9e183e0f1e6@chromium.org> On Mon, Mar 25, 2024 at 09:19:43PM +0000, Pavan Holla wrote: > The PPM might take time to process reset. Allow 20ms for the reset to > complete before issuing another reset. > > Signed-off-by: Pavan Holla What commit id does this fix? Does it need to go to older kernels? > --- > There is a 20ms delay for a reset retry to complete. However, the first > reset attempt is expected to complete immediately after an async write > of the reset command. This patch adds 20ms between the async write and > the CCI read that expects the reset to be complete. The additional delay > also allows the PPM to settle after the first reset, which seems to be > the intention behind the original 20ms delay ( kernel v4.14 has a comment > regarding the same ) Why was the comment removed in newer kernels? Where does the magic 20ms number come from? What about systems that do not need that time delay, did things just slow down for them? thanks, greg k-h