Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7872700pxb; Fri, 19 Feb 2021 01:14:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMARJiyo+A4uhoticpdW7GMoVCSnaQcG1xq4hc/A6l7vCq1qBOn2Rhc/b3hVtmZkmksS9o X-Received: by 2002:a05:6402:1247:: with SMTP id l7mr1746934edw.327.1613726043748; Fri, 19 Feb 2021 01:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613726043; cv=none; d=google.com; s=arc-20160816; b=f6MQgda59e3Jr5UGdK0mFCy64eI4zCuKrVBhjHq8mqYiwNXcFOQVb6akw33Tm/RkmM XrRL1ZAT9aYnv5PqtqotpM3pFTtjCxWgUbi1U461wAe8TgTfvZOToKfqUAo1jkuqEEEt 4Z95N24TJCABElaT2OOlCpz2WSefpDDXhlbOjU/6fafjljn0MssDMVxq8wId/CXEMUAr kMpto8QbgyZ/AIhU7HH4MjUMl9xOvcNSu1yma3qI8bR1jrCBXJGpGZUOAeNlXV74ST7m LA+Xuni7eU54FsuVTt6WklloxNvIkpYp8cqHafs6hEy/Jjg2rgjSrH8L8eQjZs+KHfQ5 GjWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yN01wuFruNiwvlR4nWVGFgREmWX9yHFllXRmh8fxIwU=; b=AYmwm7aaR32jtsa1kubWjPsYR6KZ2AozHPkOdjt1X7sJ1elL+zCbjOy9shldZXFdtJ E/GBr79aYLuyjZSkix3pFhasqxxsbl1HT3JXkEFkW+9Pii16EwIYTdl7HioKqiL+3er7 a1YV9LbHS9bRcMBFLU2S1xgm6PVcNQeAh73Cml7k0MiYIByP9Ldi7ZdSbqMAtS+6ccDS EWCg4FO5vkKxcrNEe8p+UyM7gYJPt/QvrYKaT/mcufmxCjgDHPmQc9iYqi/RDWWCN5wH u4KNPCasjeC/YncGKgvuwHTaIp44v8/ol+hxF8q0rII+7Tq4SHEXgPNXiccqWUs7FtLc IPKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="n3/Lrxps"; 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 j16si6621165edw.334.2021.02.19.01.13.40; Fri, 19 Feb 2021 01:14:03 -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; dkim=pass header.i=@google.com header.s=20161025 header.b="n3/Lrxps"; 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 S230171AbhBSJM6 (ORCPT + 99 others); Fri, 19 Feb 2021 04:12:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbhBSJHn (ORCPT ); Fri, 19 Feb 2021 04:07:43 -0500 Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B310C061786 for ; Fri, 19 Feb 2021 01:07:02 -0800 (PST) Received: by mail-vk1-xa34.google.com with SMTP id v66so1055628vkd.10 for ; Fri, 19 Feb 2021 01:07:02 -0800 (PST) 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=yN01wuFruNiwvlR4nWVGFgREmWX9yHFllXRmh8fxIwU=; b=n3/LrxpsC2OkD6fPu/ezlq1VjEsvFGYJCOYMZ5J88dLnqxxoYyPe/rKQNxUSuLuIln TboExNJt5RX7XuGOjmi+CHKe6KOg5bie9RLclwxE3Q4HU2pBjN5yUBxmLXGv/qXtdTzy MpfapeRfJRJbCHj8diZP+lGSH91/hn+uqS+3gVGv1FxG9HaqX6VQT4tcqbtNGe2oSXdq /KgFhgNC5V/3RY7KAh9QYiCZX8bS/0YHl2cmxmEPnH7oKP6zWE97Q+kH976uyz5/bjbc QUbRHoubY6M68u+Sa/nKnoblkNOdmXGg+F/r/yZ7D7RTHrhoHZWxurwm3JvN7AUYAJiQ tJXw== 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=yN01wuFruNiwvlR4nWVGFgREmWX9yHFllXRmh8fxIwU=; b=JqvT4cdI06mHN61UHwrK/F6rfgwHo64watYqrVSgE3N6dX+RKw8Fs/4Gkrbh8bfDJy OhCt+qwzkTPsYjw7Q2h8ZnGAtPgrIQ970U46YMOczIBcwouRQCKO/mxpUU9innI7BePy fJ7zXVSl99MuMzRnP/DNp+gDui5m54Bl7GnN0l9KhsXoYuOpJSB8f7r0psQ11rfnp0O4 Ob9XI/rzYxwSvS+scwE94SDw2cSWSpByqvShJ6yswp+VbX64Fk6ub1CQThmhJRei+Lbw ssFn8BeMxRJ6sYzLzfHPeKIcXI4yOAMEt6nBHkTtvBBLPuzOR8YKV281d12ZngDbP2WH gbCA== X-Gm-Message-State: AOAM530rC+kddjEwm8fxb283+6VOHxFLAYq5AyI5kSNQZy3Cvjyk6r1N IdtcrgUUoxyxh+vV1/XoK99kCzK3WQ2nFCiTJKQvYg== X-Received: by 2002:a1f:9c55:: with SMTP id f82mr235371vke.22.1613725621204; Fri, 19 Feb 2021 01:07:01 -0800 (PST) MIME-Version: 1.0 References: <20210218100243.32187-1-badhri@google.com> In-Reply-To: From: Badhri Jagan Sridharan Date: Fri, 19 Feb 2021 01:06:24 -0800 Message-ID: Subject: Re: [PATCH v1] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling To: Greg Kroah-Hartman Cc: Guenter Roeck , Heikki Krogerus , Kyle Tso , USB , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Done. Just sent out the following patch and CCed stable@vger.kernel.org as well. [PATCH v2] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling Thanks, Badhri On Thu, Feb 18, 2021 at 2:42 AM Greg Kroah-Hartman wrote: > > On Thu, Feb 18, 2021 at 02:38:45AM -0800, Badhri Jagan Sridharan wrote: > > Hi Greg, > > > > This patch is a bug fix for the following patch which was introduced in 5.11. > > > > commit f321a02caebdd0c56e167610cda2fa148cd96e8b > > Author: Badhri Jagan Sridharan > > Date: Wed Oct 28 23:31:35 2020 -0700 > > > > usb: typec: tcpm: Implement enabling Auto Discharge disconnect support > > > > TCPCI spec allows TCPC hardware to autonomously discharge the vbus > > capacitance upon disconnect. The expectation is that the TCPM enables > > AutoDischargeDisconnect while entering SNK/SRC_ATTACHED states. Hardware > > then automously discharges vbus when the vbus falls below a certain > > threshold i.e. VBUS_SINK_DISCONNECT_THRESHOLD. > > > > Apart from enabling the vbus discharge circuit, AutoDischargeDisconnect > > is also used a flag to move TCPCI based TCPC implementations into > > Attached.Snk/Attached.Src state as mentioned in > > Figure 4-15. TCPC State Diagram before a Connection of the > > USB Type-C Port Controller Interface Specification. > > In such TCPC implementations, setting AutoDischargeDisconnect would > > prevent TCPC into entering "Connection_Invalid" state as well. > > > > Signed-off-by: Badhri Jagan Sridharan > > Reviewed-by: Heikki Krogerus > > Link: https://lore.kernel.org/r/20201029063138.1429760-8-badhri@google.com > > Signed-off-by: Greg Kroah-Hartman > > Great, then can you resend the patch and add a proper Fixes: tag, along > with a cc: stable as well? > > thanks, > > greg k-h