Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp270188rdb; Sat, 17 Feb 2024 07:40:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPWlsrRku4g12oJ1UqfXtg4B+BoJm7JMm5faOph/5HV7JivDGJvTf485qioMKvagFGGLfiCANkhdwRSiHxQYjNeH7YfkE4JdVJ6HmmmA== X-Google-Smtp-Source: AGHT+IG0obd0jOlocErDzze0YNkPe910XHatR75H1ILMDJ31I+O1wZ2nysD5qxBdAQAwueegbIB5 X-Received: by 2002:a17:903:1205:b0:1d9:6091:6f3b with SMTP id l5-20020a170903120500b001d960916f3bmr9142152plh.47.1708184444872; Sat, 17 Feb 2024 07:40:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708184444; cv=pass; d=google.com; s=arc-20160816; b=gUPPM8KMIiVEA5P/zzhE03w+LCLHVfi32aLN11VAUEBR120dvZpVJnbINL+MR07TMH EOnbdO4rfdzYhbhuQ3tEmfz4TN1HmRvLdrfYt2f0N18NkAdSKkcr64Eos8ggOWvk1s6r TLOnU8VDEpqcZ4xXyPHkip2Qqiqhz0lHfBwrem9/k6c3OdcihOh6Xi2NxbNrc9c7xgfO 3EEGnbXODrJyxR8wfuXpOKZMUtc/6WyjTMWB5wDQJfhjPYPOYkTbJy/i4sFyiYmoPy17 UvNEM5NutWIsQL0Pzc/Sa/zyXkpSpk4ePclroxx/kFEntVs7+sIwmicWCVKFpZQoyb9D CmUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=o6x67sEljOzY8c1anm7AHiqMf6ov/d1LVK/dO2LX91o=; fh=iMfIEMbq4ODKrwLeAm+MXQkr3c+9Ya7X2or7ZBo2/T0=; b=cb/HvNEevkaHxhlyauZ21P563kSpLf3kNIcg0knu2w4PkGW8yo0QazytTwSyRqFjH1 sn1ed9AXxbfrF9YS4LQQPgVC6AFu3wTK2d7YUWaU/Q8hUwR4V769BluvQrXeKb671kBZ fX9jmZMY1uMkcGriHvTYJ18iYNrp/QtxwNKA73V7Qf2LyvTmic9QTLEq1+ykSHH4R71U hUEP1hbAk6hxqM6dU6Hv/xh43uNMoXu5GcxSlYLof5CgBQXvePAvzFMqzYHPBEkcBxiW pN8YgdseBDN07Qn/zpZvsVmdrZA4scRWBAkXryyB72KAiE6euMZ6bvSrlT62H7xcvlgt N6Lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=c8zhbCIQ; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-69940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b15-20020a170902d50f00b001db7e461d91si1606940plg.545.2024.02.17.07.40.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 07:40:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=c8zhbCIQ; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-69940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8DDAE282D92 for ; Sat, 17 Feb 2024 15:40:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E93F7C6DD; Sat, 17 Feb 2024 15:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="c8zhbCIQ" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 506147CF09; Sat, 17 Feb 2024 15:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708184435; cv=none; b=jqfE3pmimnKkgVovrrB0Ymr6d1hAiTZlFUP3JHrRzl17cNRMTNX0/Fold6efyok2sKsyo8nEd2yWC8XxQczR7XMUQ+CxCa+PYiErjgoidUataWYmblPOnijNbC8QrFTgxiOJbHChjPCcxzC+TMyb6IVNcceT6UilX+wQKNEyI9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708184435; c=relaxed/simple; bh=7TO0o92Ga8ESXmzM9toUqaahOhxbAM7ETu+ddZ/IHu8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dkXssfLIaPipfht583Mex/iIotpLdkSIeacuGqE68bt+MnCPmtRBICshk+NHUT/QqfepSWSQxDXimam0As3JCvy+wB3GJpmYJD66d1JHylOAxxtI8FWRq5VSOjz+yQrtCmu7oPG3FXfziFmi6CDTaMQ/0gcnOx11KeUWLO1JRAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=c8zhbCIQ; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1708184421; bh=7TO0o92Ga8ESXmzM9toUqaahOhxbAM7ETu+ddZ/IHu8=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=c8zhbCIQmEAlYlfZryIDbVnOrvVE5qQTvKvzp79t50tnCHR9oegobZcaN2U+tTTeg 2NzqC+amgujhFcqLXCnAAPKsU2/rcgk+4OzmKn1+SCxRCbnL50VeJLHhCEWnIAQOfw ZaEH1fUS2VOTJnckIlyPE5VcoY51YmAOLYWnpndI= Date: Sat, 17 Feb 2024 16:40:21 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, Guenter Roeck , Heikki Krogerus , open list Subject: Re: [PATCH] Revert "usb: typec: tcpm: reset counter when enter into unattached state after try role" Message-ID: Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Greg Kroah-Hartman , linux-usb@vger.kernel.org, Guenter Roeck , Heikki Krogerus , open list X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED References: <20240215193352.1026707-1-megi@xff.cz> <2024021739-self-pencil-b932@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2024021739-self-pencil-b932@gregkh> On Sat, Feb 17, 2024 at 04:32:54PM +0100, Greg Kroah-Hartman wrote: > On Thu, Feb 15, 2024 at 08:33:50PM +0100, Ondřej Jirman wrote: > > From: Ondrej Jirman > > > > The reverted commit makes the state machine only ever go from SRC_ATTACH_WAIT > > to SNK_TRY in endless loop when toggling. After revert it goes to SRC_ATTACHED > > after initially trying SNK_TRY earlier, as it should for toggling to ever detect > > the power source mode and the port is again able to provide power to attached > > power sinks. > > > > This reverts commit 2d6d80127006ae3da26b1f21a65eccf957f2d1e5. > > --- > > drivers/usb/typec/tcpm/tcpm.c | 3 --- > > 1 file changed, 3 deletions(-) > > > > See https://lore.kernel.org/all/odggrbbgjpardze76qiv57mw6tllisyu5sbrta37iadjzwamcv@qr3ubwnlzqqt/ > > for more. > > > > diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c > > index f7d7daa60c8d..295ae7eb912c 100644 > > --- a/drivers/usb/typec/tcpm/tcpm.c > > +++ b/drivers/usb/typec/tcpm/tcpm.c > > @@ -3743,9 +3743,6 @@ static void tcpm_detach(struct tcpm_port *port) > > if (tcpm_port_is_disconnected(port)) > > port->hard_reset_count = 0; > > > > - port->try_src_count = 0; > > - port->try_snk_count = 0; > > - > > if (!port->attached) > > return; > > > > -- > > 2.43.0 > > > > > > Hi, > > This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him > a patch that has triggered this response. He used to manually respond > to these common problems, but in order to save his sanity (he kept > writing the same thing over and over, yet to different people), I was > created. Hopefully you will not take offence and will fix the problem > in your patch and resubmit it so that it can be accepted into the Linux > kernel tree. > > You are receiving this message because of the following common error(s) > as indicated below: > > - Your patch does not have a Signed-off-by: line. Please read the > kernel file, Documentation/process/submitting-patches.rst and resend > it after adding that line. Note, the line needs to be in the body of > the email, before the patch, not at the bottom of the patch or in the > email signature. > > > If you wish to discuss this problem further, or you have questions about > how to resolve this issue, please feel free to respond to this email and > Greg will reply once he has dug out from the pending patches received > from other developers. It's a mechanically generated revert of upstream patch. It has no authorship. I did not write it, machine did. :) But I can add a sign off for the commit message I made: Signed-of-by: Ondrej Jirman kind regards, o. > thanks, > > greg k-h's patch email bot