Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp424534rdb; Thu, 15 Feb 2024 04:41:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhZU22G6a+f/sBhPYHMH0fw92tkii7wl1evvHokBoCL546xNthPOf7u65C9jzHN6jVcKJ9lWJVIN7C+fBiUlf2Vv6McRDW2M3iejNRlA== X-Google-Smtp-Source: AGHT+IEqhnxpkxhL4S22Yx1As+J4b8kLq8XtcCbKPBR9pe2AZtWrTjN+w9MKqAKhzwr5jatqU5x2 X-Received: by 2002:a17:902:e74d:b0:1d7:17e6:44fb with SMTP id p13-20020a170902e74d00b001d717e644fbmr7123351plf.32.1708000860540; Thu, 15 Feb 2024 04:41:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708000860; cv=pass; d=google.com; s=arc-20160816; b=b+W8n1kftn1hOo8a/S2XXb+2/htL5/kcjJpFb44oN00l/bZo9jABe9bTzZrgDeQxSY qEFoR7r1+DAWNq/KQykz3f8cCNqWCnYnzQN225Xu83EzDFqGSQ1zWT9DiY6Esw3c9HF7 Mkty1imFohNZRrtdTD3te8BHggZ1VjQfYCZksx9Quo4Rzt+/yVOps2oH4awPaEEjYtjb gXqj2n4VPV2Vg9psRrI8X1jZIgc9shLxKfnQNaAZ/dWwzdUgY6yIAjnKCm0Elb/jaw7Z MyvekBK8Hz2b4aeZoinkmaNh+dOXUO/B6xkGndfdQJxJE20FSq68cmnA1Jufo5mUTIfR J83w== 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; bh=v4E0Pv8wLcjXl74/TenfYvRnStg1TkjzwIi1O/MhCOI=; fh=gC/NtYR20+2KbS7vB3Waxg305AlLWnOzUCVxRFbP+dw=; b=f9COAahlduN7rUYGyGeksQZNEbjFOLap1GG0061XP8NCY8TjBV6XI6/3JxR6Ri53Qb oPxLu33Djbw14JTlj/SYLcrVFiKChOPXzSluJPhDnpO0wTxyywTzO/51Ir4aJapDx52l IQKWfKZaqD73dA2FSsAcFXIo8sKTgZ5cKyo0Cvwv4jKRqHOp3+Wtzd/Oip9S4Dk0Zp21 sE6S6VF3OZtzEfQ//8XTiRUAvjr7TnVYimNQM/WSMBHCXDn8v7XbTUsFHuWWoivLilSw sz3qjiO1oKVSALDVdFsW8VEKxcTUwfv+bJh1QfV9lnk6zLC54qgVavYtuZrzdolwB8LQ ofQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=c--e.de); spf=pass (google.com: domain of linux-kernel+bounces-66856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66856-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q17-20020a17090311d100b001db5d0901e0si1114642plh.98.2024.02.15.04.41.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 04:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=c--e.de); spf=pass (google.com: domain of linux-kernel+bounces-66856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66856-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F1BDB2EA9E for ; Thu, 15 Feb 2024 12:03:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEF4C12BF15; Thu, 15 Feb 2024 12:03:09 +0000 (UTC) Received: from cae.in-ulm.de (cae.in-ulm.de [217.10.14.231]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4450F129A73; Thu, 15 Feb 2024 12:03:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.10.14.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707998589; cv=none; b=gOrQJcRuLRqiB2ptxCIthRCBBm+vXTyehR6ZGOzamR4NSgjsz5/E9IDeK5VoxQ5dnkf9qxNOqEUyQbHh4UlQkYnX1qUGLJiElJn3106FbMixUaHfijqMPtpoMxBNIe75sfShwxRUk4mHzTLDQ28x+K1RNLri/UU2A0V2f/sNA1g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707998589; c=relaxed/simple; bh=KLEpcqUuMdy0qHBK987rtK7f0TP+ymsMuh1O6QES8mY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hNAddM4OmhJjVXib5orhNjkEWyOMhcLPP3I6KiHwEwnOudKnD6419dMFwDK1RdHpkr6vi5625vFSOEsE9/kFN8leqBQA4o/E5vprU8fcx9NbJqanmU2cTeNPYO5wQJncCHnlEMWNGp5Gl6rS1S9YmVGS6fyQFNKqpzBlkAlMHW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=c--e.de; spf=pass smtp.mailfrom=c--e.de; arc=none smtp.client-ip=217.10.14.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=c--e.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=c--e.de Received: by cae.in-ulm.de (Postfix, from userid 1000) id C91441403D1; Thu, 15 Feb 2024 13:03:03 +0100 (CET) Date: Thu, 15 Feb 2024 13:03:03 +0100 From: "Christian A. Ehrhardt" To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Heikki Krogerus , Andy Shevchenko , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Sing-Han Chen , Haotien Hsu , Utkarsh Patel , Jonathan Hunter , Wayne Chang , WK Tsai Subject: Re: [PATCH CFT] usb: ucsi_ccg: Fix command completion handling Message-ID: References: <20240215101024.764444-1-lk@c--e.de> <2024021504-oven-worst-5c15@gregkh> 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: <2024021504-oven-worst-5c15@gregkh> Hi Greg, On Thu, Feb 15, 2024 at 12:07:20PM +0100, Greg Kroah-Hartman wrote: > On Thu, Feb 15, 2024 at 11:10:24AM +0100, Christian A. Ehrhardt wrote: > > In case of a spurious or otherwise delayed interrupt > > it is possible that CCI still reports the previous completion. > > For this reason the UCSI spec provides different completion > > bits for normal commands and for UCSI_ACK_CC_CI. > > > > Only complete a sync command if the correct completion bit > > is set. > > > > This should avoid the need to clear out CCI before starting > > a command. Thus remove this code. > > > > Signed-off-by: Christian A. Ehrhardt > > Fixes: e32fd989ac1c ("usb: typec: ucsi: ccg: Move to the new API") > > What does "CFT" in your subject line mean? It's supposed to mean "Call For Testers". More info in the "Additional Information" section of the original mail. I think the change is necessary and good but I do not have the HW to test it. I did test a similar change for ucsi_acpi.c that got merged and this is the ping for ucsi_ccg.c people that they probably need this, too. regards Christian