Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3087108pxb; Tue, 12 Jan 2021 06:09:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9ugsxb7BxIU3GE676t9td1/qTdMqmTrk8gZpsEPEeGz5lcXZEaeZxpVJPQkA1/xbl4QkZ X-Received: by 2002:aa7:d6c9:: with SMTP id x9mr3493076edr.96.1610460544525; Tue, 12 Jan 2021 06:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610460544; cv=none; d=google.com; s=arc-20160816; b=dTCKRTpi+jGAkScpspD9v3cDYRXyo5tQvR+TFwor59rLcDv/c0U2uaLvIR7O2gHzC0 adOwFrAz8PYqobqx6ExUkHisKaghEMm6iX14fn1i2FCbo5eKbBYo8+PAc3iPiZbPxGFu RFNO89pDzaShUahYFXnmzkZ2wNdWSLYE66UnyucX+vh2usAE13yvyvRVOM/v3papz7Tm 0802kv3SKUSGdZ6ynb4JZGGwB1KrhLIILOBNXLAf3qbFIt5VwagHBzAfP5OBmAD1aDoS TROc9l2gWJAO6nhcdnH2nJlfkTcArVCF/ezff8yzZ4VfpMQm3ZzmAuwsYjFWkQYuFTtD 03oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=QJKoJlxTu3v+5Q4ujtcYi7OMYKffanliaBcQrXIenBo=; b=QKf7+cBdBtoTNKRrTePoiw1ImyOEizUfrNIsrEtUr0+TJH2i6RNdqgSNIwpqKavgmg o9JoDZHNWidKDJ006JQpvewW5I6hrS7jGwASI6SEm8lzbZ0Zm3oVfNlVyQpBGx0w9BJB vo3Zyw6J3ILiWTxo5/zF2uD7D3J5h5Mzr2UhXN6pp65/byOdTmOsQKWJN/BfsnZz9yWy D0BKUQ0TbPF/yk9mmCTdr5AAx70VlyTuq3JgthWwXs7taiUJl1a56z+cAJAqAopuMQUm 6g3U9w5PU0qt/znsQMBH5PfI7jA5rhbsGq9YmG9hNfqDjZWbIeD4+td3CPGJsQJa42a3 Zrjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si526070ejy.38.2021.01.12.06.08.32; Tue, 12 Jan 2021 06:09:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730958AbhALOGR (ORCPT + 99 others); Tue, 12 Jan 2021 09:06:17 -0500 Received: from mga17.intel.com ([192.55.52.151]:17894 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbhALOGR (ORCPT ); Tue, 12 Jan 2021 09:06:17 -0500 IronPort-SDR: KPs+p94FnryyHSlb+O3gI7AJNWePi4gII+z9RBcD9UAOY8SV8UlWHTEYQ/SV/1Pku+lrKjAjLP OSfP0/WQqinQ== X-IronPort-AV: E=McAfee;i="6000,8403,9861"; a="157820138" X-IronPort-AV: E=Sophos;i="5.79,341,1602572400"; d="scan'208";a="157820138" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2021 06:04:30 -0800 IronPort-SDR: 8Dd/RSc3xp6wapTxT4+kF6eCM2PnnkCGvOUlE2GeZC01qpNKszGMLreGrml+bLzxIguQ/MUn3i 5sR8KX83q2Sg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,341,1602572400"; d="scan'208";a="464533456" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 12 Jan 2021 06:04:27 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 12 Jan 2021 16:04:26 +0200 Date: Tue, 12 Jan 2021 16:04:26 +0200 From: Heikki Krogerus To: Kyle Tso Cc: linux@roeck-us.net, gregkh@linuxfoundation.org, hdegoede@redhat.com, badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/3] AMS, Collision Avoidance, and Protocol Error Message-ID: <20210112140426.GE2020859@kuha.fi.intel.com> References: <20210105163927.1376770-1-kyletso@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210105163927.1376770-1-kyletso@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2021 at 12:39:24AM +0800, Kyle Tso wrote: > This series include previous patch "[v4] AMS and Collision Avoidance" > https://lore.kernel.org/r/20201217030632.903718-1-kyletso@google.com > and two more patches "Protocol Error handling" and "Respond Wait if...". > > The patch "AMS and Collision Avoidance" in [v5] is the same as the one > in [v4] (only rebased to ToT). > > The patch "Protocol Error handling" is based on PD3 6.8.1 to fix the > wrong handling. > > The patch "Respond Wait if..." is to fix a conflict when > DR/PR/VCONN_SWAP occurs just after the state machine enters Ready State. > > Kyle Tso (3): > usb: typec: tcpm: AMS and Collision Avoidance > usb: typec: tcpm: Protocol Error handling > usb: typec: tcpm: Respond Wait if VDM state machine is running > > drivers/usb/typec/tcpm/tcpm.c | 925 +++++++++++++++++++++++++++++----- > include/linux/usb/pd.h | 2 + > include/linux/usb/tcpm.h | 4 + > 3 files changed, 792 insertions(+), 139 deletions(-) These are OK by me. The few comments I had were all minor nitpicks, but I would appreciate if you could fix them in any case. After that, FWIW: Reviewed-by: Heikki Krogerus thanks, -- heikki