Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp380648rdb; Thu, 15 Feb 2024 03:09:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVtcdPMOF+Hq/4BHsnFmMOdxG2N20PgD+Wo4DN9llLr9FiKdVotMc11RUbUr++TuPUm5pd83jWAxKO24YJGYMMp5hITufUmR9qu+7ThvQ== X-Google-Smtp-Source: AGHT+IF/zcsIY5TftrhkyeMSpmEfG7SUVd/A0cJOg3WTB5TQ4rGz2yra/xFj9rYGHjOuXwhbv7vR X-Received: by 2002:a17:906:aaca:b0:a38:24dd:f44f with SMTP id kt10-20020a170906aaca00b00a3824ddf44fmr896366ejb.65.1707995367807; Thu, 15 Feb 2024 03:09:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707995367; cv=pass; d=google.com; s=arc-20160816; b=GJm5nQF0MdoCK/eWcxyh/Cy0z8FPqWXlKbdL2TuaOTRML9XT6BDzy9Rrj9LwvjHWNF TWiOHyE0T+RAVEb32YpiFTAh2kJ9JuHkI7smjQ9P4OFy97TtbSODKyA+6TGQ725T4pQZ BZhhgxHrnFKyRI3YNjtLegDFpsleoWrt9zCgCvD9SBBnJ6UzIcM75Wuk3A2vAblm/x3I gGE+niqnVUiKAnethRMKCV0pY5iGiNGWxTVgjJjwOMHHYeoAzgop6HamoUU2kn8P2wAE URW4Qk8usD29/hgD2bO1IKNbzEiHDy5839A7Y37GdD/Zs4bf/SuvQPr+I8Ud2QcG2MaW PWZw== 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=4o/lAg+Vu0fevSeJBYN0OX3gswBB89zzCIeqYlb+hDE=; fh=mPDQ/IVF2jYarhrOeFzEe2DV5ShU+2mBvI8IGDvRI1M=; b=rQQQuek9qFH91RhNPfo7yvLVekoZB07T1RgXxx6IWCkcwq4lk5rln5yKEQIrOKq2bq o/3O1RKR+dFYxMsvYkQ6dW1Vi18Pd6w4j9iJp5LqTgJHt2TWJrbckg4b0J6bEmmy/hHF lX+GSlRefeuwpZgCJAmpqQF9buqQ3bX7+0Ao8lmKFA7g/C3eWESTlvHbmkct1A9OzMTX xVLOiQAvh+tRPxWmbUbxJBjrc/Ddu7v3XXYgP1FROoOztj5IwnOzXC5Q3peh8A8hEM5i y6bHoGjbMufjQh/0MRjEnttFJKFlUdlX4NiodbMJoS+KXbM4BOi8kM/nSdPbkQdelVCO AMbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Zef6unym; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-66742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lf29-20020a170907175d00b00a3d5be137e7si501725ejc.787.2024.02.15.03.09.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:09:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Zef6unym; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-66742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66742-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8AE6B1F213B5 for ; Thu, 15 Feb 2024 11:09:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D03D12BEB5; Thu, 15 Feb 2024 11:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Zef6unym" 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 A810D12A142; Thu, 15 Feb 2024 11:07:23 +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=1707995244; cv=none; b=YYLG3LlfvPwHLjES6+BR/FhNE/ywGSO43oqGMO/rL79PTm+ZZLiy0TW2WzZV2PJ/fLIo78TPcGT1DzqYP/Pjxz1THv94pAjLY/wpGRgDnP2y0hp1f/LWbHhsCYi+2ULc24aiQ0LlHduIIspJNAOkoOSDrySrLgrvefh/VRvavdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707995244; c=relaxed/simple; bh=ipndqY9nxNMul3gLMF2c2rmj5102VFlC9qbLx+KDy1A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OHdy9m33z4oX6GnhJFdu3pMqLDl69IBl1WYw0ZXySlaBZhAYw42RblTTQzkq3pQb2SabrCJig1N1NlzFBWLnfH5wG5aJhUGsuE0s74iZCO+jWf3NoTU/BG+MEZkUCAYlFUxubJb3KjirTEntL4JyjHICzf+1d6Id8mrnoQAGG/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zef6unym; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D735C433F1; Thu, 15 Feb 2024 11:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707995243; bh=ipndqY9nxNMul3gLMF2c2rmj5102VFlC9qbLx+KDy1A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zef6unymmtg2xVd8EVCwZRlYMiB9Se8NDapY1MlfKXQbufriMTfEJz6POwaKTma2L whytBk4ezUboR0thm0CqCh+WMbnKKmXOp3B7YXqnZ1MduMnncazOOipB3ai5vQYXda zDjzudIqwca5ct7xDSpqMkjxU0my2EYf7QxEuOUk= Date: Thu, 15 Feb 2024 12:07:20 +0100 From: Greg Kroah-Hartman To: "Christian A. Ehrhardt" 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: <2024021504-oven-worst-5c15@gregkh> References: <20240215101024.764444-1-lk@c--e.de> 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: <20240215101024.764444-1-lk@c--e.de> 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? thanks, greg k-h