Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1617138pxa; Thu, 13 Aug 2020 12:43:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhRW9sR1cm+IlWpU11c1RrhUB5PeVgh4U8J6CxDcZuJIsSv7M3EhrjGCjTnh0e3K8DTHio X-Received: by 2002:a50:cf46:: with SMTP id d6mr6301297edk.339.1597347802167; Thu, 13 Aug 2020 12:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597347802; cv=none; d=google.com; s=arc-20160816; b=CdImmN7ZjNgWlfFWjmnourXK6tmALhqPh5Eu7r2EPs6GkAEXnaAXCi0eXS5Fj64BA3 nOIYExugO3S373e+W+PNhQo0IoR1fG+JjR2+cucszufK7uJpj/0qu0mWXt6UNkiYueDs wyRP97dOQdROVfVIrqasN9f9nBamIoIEXIv0plasLAcHUdmVd5lLWs5xqgp/dCdvZgJn W9UmtULI6PcrwgVz5C0abJ827SoBbk0GzlN8kmhn2lK7sv+zpEbhbTn4eI9mBWVWKsg7 8Ie1w/OksuwTA00XY3MbZVPOu1k8CPyYXF93kbM73h8iWPmVAwVLELEzpcjbKiywffGI 7sMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fYIbVh3/szn+XzzaL9yiDzfDpyZxulF6xv5AQpsf1tY=; b=lsoULdyNPFcqNDG4OC4JS9cPIxOHX8cVjxQeNXcOhNB1i4KfMwxqNTAeeHRc1Nna7E vASldEMyICvFEnJVaDGXxJZ7yqWzCb679GDCgixQ/6CBRx4TznvEPOn3fagceRWludKp aq3XlvjK5yp0ZtK92BKzzwez1EXwkh/N7zhWwS9gMFlaLZXwRY2SE8kwPOcwmoZMAk5X hQWjIVJl97qb0wFpJCJauLIrTaSmxkK1LU7fW9f7Ikm5gJ3/XtBWj19bWgLiIn4bkmb8 pXaMT5cq4U9Wum3ziqTE8zsYt8ZNDEf8pXTvtPAWHO9Ys4aTrw9z0j0f9vxKvBPxyPs1 PofQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IfWJSMRB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh17si3565124ejb.256.2020.08.13.12.42.58; Thu, 13 Aug 2020 12:43:22 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=IfWJSMRB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726253AbgHMTkn (ORCPT + 99 others); Thu, 13 Aug 2020 15:40:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbgHMTkm (ORCPT ); Thu, 13 Aug 2020 15:40:42 -0400 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75447C061383 for ; Thu, 13 Aug 2020 12:40:42 -0700 (PDT) Received: by mail-ua1-x943.google.com with SMTP id e20so1996804uav.3 for ; Thu, 13 Aug 2020 12:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fYIbVh3/szn+XzzaL9yiDzfDpyZxulF6xv5AQpsf1tY=; b=IfWJSMRBSPVM6hOXnA7qZrjX5syp4z2F5c/a0ybY32nxgmyWYvJC3PnC//hObz1GIq JCX1cS1T0JzkjuTXRwlu8hgGdfyv+RMeJMcn8VkVtke7FGmUXeFeXUyJCes9uF/nxuWM aEWDJQKHXJ5zKrxqIqRsl8RiNiNsfYYnvlya0qKajyxOLIpkfeU9uY6vphwL1JojH8VB AKaMCvPfk3ERZRTPZKATnMCdjy7K+dousuKogn9nD7BZZkZsaC6yBTC1vUr0Tp2j4EQr K5NVgdb3+3V4NH8dPRnmPq2nDbprDE/GdDEDsxgKpWaRuIC8aT/X98QeERIsZv0FjEyo t6bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fYIbVh3/szn+XzzaL9yiDzfDpyZxulF6xv5AQpsf1tY=; b=eQ+AKJOPPz1T1RIlHM4O44hju/foI0At+WNVLKqSQWW2etgi7xWnzT3JZwEybCGCmJ KmRWdAGOAp+13o1oreGLXkEq9lFp3TFUaG3KZ64KMam4xILSKPK1XIhAJ4UMZL922YiT 0oWlXzgVojFwy/Eqne3xut/E+krgCgrsA7OjUOfG64FvK2dvQy5j+9BD00s9TrAAJaPy SrHT54zorkszUvRubaaTMALQz7tLkkVlYIbeBY5FnpUukwnejVKjwFgvsFz5IQzBzy3I 1bVjFxpWAzOzUS4zCmttFBaZ6T7LuXiuHtr1ZfYDoRmH18xNl9B7Bz5t3nRVFWd3O9h6 ZrFA== X-Gm-Message-State: AOAM533ZnuzDviS7T+itQ4eiHFIGJichG8EJsn6Wnsgw3b15At2Gk5Ls Ckf675T/07y1lvBukKRmCWsR8FRS9pfHQ04tsv6ALQ== X-Received: by 2002:ab0:69d6:: with SMTP id u22mr4804520uaq.65.1597347640377; Thu, 13 Aug 2020 12:40:40 -0700 (PDT) MIME-Version: 1.0 References: <20200812022934.568134-1-badhri@google.com> <20200813082507.GE1169992@kuha.fi.intel.com> In-Reply-To: <20200813082507.GE1169992@kuha.fi.intel.com> From: Badhri Jagan Sridharan Date: Thu, 13 Aug 2020 12:40:04 -0700 Message-ID: Subject: Re: [PATCH 1/2 v3] tcpm: During PR_SWAP, source caps should be sent only after tSwapSourceStart To: Heikki Krogerus Cc: Greg Kroah-Hartman , Guenter Roeck , USB , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heikki, Sure. Same as the other patch I will try to address your question here and will update the commit description once you are satisfied with the description. Subject: During PR_SWAP, source caps should be sent only after tSwapSourceStart Commit description: The patch addresses the compliance test failures while running TD.PD.CP.E3, TD.PD.CP.E4, TD.PD.CP.E5 of the "Deterministic PD Compliance MOI" test plan published in https://www.usb.org/usbc. For a product to be Type-C compliant, it's expected that these tests are run on usb.org certified Type-C compliance tester as mentioned in https://www.usb.org/usbc. The purpose of the tests TD.PD.CP.E3, TD.PD.CP.E4, TD.PD.CP.E5 is to verify the PR_SWAP response of the device. While doing so, the test asserts that Source Capabilities message is NOT received from the test device within tSwapSourceStart min (20 ms) from the time the last bit of GoodCRC corresponding to the RS_RDY message sent by the UUT was sent. If it does then the test fails. This is in line with the requirements from the USB Power Delivery Specification Revision 3.0, Version 1.2: "6.6.8.1 SwapSourceStartTimer The SwapSourceStartTimer Shall be used by the new Source, after a Power Role Swap or Fast Role Swap, to ensure that it does not send Source_Capabilities Message before the new Sink is ready to receive the Source_Capabilities Message. The new Source Shall Not send the Source_Capabilities Message earlier than tSwapSourceStart after the last bit of the EOP of GoodCRC Message sent in response to the PS_RDY Message sent by the new Source indicating that its power supply is ready." The patch makes sure that TCPM does not send the Source_Capabilities Message within tSwapSourceStart(20ms) by transitioning into SRC_STARTUP only after tSwapSourceStart(20ms). Thanks, Badhri On Thu, Aug 13, 2020 at 1:25 AM Heikki Krogerus wrote: > > Hi, > > > This fixes TD.PD.CP.E3, TD.PD.CP.E4, TD.PD.CP.E5 failures > > I'm sorry, but that statement is way too cryptic. You really need to > explain what those are. > > thanks, > > -- > heikki