Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp280097rdb; Sat, 17 Feb 2024 08:04:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUuVpf4b3xEsUHi8MRi1yFMNCapso7FbEyF5ZaYCuk50H2LNfRJfx2ozO1j9OEJ7yYJwHB3V9PcRk1S4VY5dmDBjwQzdDAA8NTObf6XdA== X-Google-Smtp-Source: AGHT+IERbMPd7v+y6idGeSv+bMTgN3UzpWvWRNwEAdJuX5E2apgQxYjE1+HI/RyeNelY8lXqmm4v X-Received: by 2002:a05:6a00:ccb:b0:6e1:2556:b17b with SMTP id b11-20020a056a000ccb00b006e12556b17bmr9391881pfv.2.1708185846698; Sat, 17 Feb 2024 08:04:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708185846; cv=pass; d=google.com; s=arc-20160816; b=UlRZmxKPYP7AiEt/5nND7KMuPNqrTpF4foYEVk34qigIRRzUlXPIdioUNp3FXOC4oW tgr4bmBAvPg5wVPUfCA95jXS22ODwtPgxrIdhMu41KKMW2l8nPNpJwUOH72P4e1CgmkL dn/m96B2CgC2TtS2RQHLKF0seqOCbAgX8Y4rY9QFChIEsA5lXtZ3Su9AG6w5YG2v8TIX qs/t8PqfxhXkEBUXd/9mBjvHWdCZbLOqd5MXoAIXnncEMdEQPtvhxPjaKQqHXUtp9Dnm xhlrCWrgtA9TWt4+UTVBWznHDjlMr5bs7GFJd9dyPWNQNo7NnwvptQtySmfUIsu3hak/ L4vw== 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:message-id:subject:to:from:date:dkim-signature; bh=q44xuAxA1RdLKqVImUPYXXkMvE/5sVMgRQ56Y2kTLzs=; fh=9KAjEd9kISbd2GA1EFD/+hnhS43i70CoKlvL5A1l7s4=; b=fyuwGuO0qz00/0Fpc+QTD+oB2OpwpT7YzEQspINNKOQdGpslgIyQkovyQbhHAhPR3s JFlVpbCkRCnCZzWzxuyAySTgSWkUNQrXwFKWK47jW70uTiw9Ih0rMEYk2TVG1lvfdCX2 PN1zfssi48g3QMGBf6LZB9OmHjvCxWWQp5T0ciWZE7THwlvJyeC5jgj7Kib6AYrUY2MP qymxbn/4ob/IAFn31ARLZh1F6WGp2vYTJvN9NnVy8UZk5Vl9heJ0Dy5QD/5R47BwgwLa a5qF9ijg7X7l+H2VQ++adnpNQRq08F92MoHzocrWTrRDXMzPuAlKCAXuGQ75eSe4z4eX /1pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FMR++vwp; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69955-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m26-20020a62941a000000b006ddc7bd5547si1689729pfe.83.2024.02.17.08.04.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 08:04:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69955-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FMR++vwp; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69955-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69955-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1F1B32824CA for ; Sat, 17 Feb 2024 16:04:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B86C7CF27; Sat, 17 Feb 2024 16:04:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FMR++vwp" 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 2F8017CF0C; Sat, 17 Feb 2024 16:03:59 +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=1708185840; cv=none; b=Ghou7+at6vXgfdwcyq534stna8cpv/oD6LmHktCV1VF7PauqHyLAGB652UswFJg2Yxy0QxMrcG7a4VrSS+AJ+8f9vltaVZ2X1oSyvnzKRSRsrj8MusBEvIiy/ma6q1oHKJEEvabjp9DiLKp8hxh0R2cTG0CAZQkLdtJ+NiC4B98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708185840; c=relaxed/simple; bh=idhzi+lvLrvt3lT5g616HW/iowk9PphKg3c1Aoged8A=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LfkjB/ugwdnnUZRGcnxj4alhhxMG8kAosGuwrc+L7IH9n7KCckMABJtFV5F/upeoz6oPz+esXrRYzV2usekBzLWSg9RjRbhLmALIWkDaUezzXk6tbmWFjxKZ7PrEgFtKsc794z9+ONCV9RhUq/9VYOyLa1RChX4OhmgMydp1r3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FMR++vwp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A0F2C433F1; Sat, 17 Feb 2024 16:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708185839; bh=idhzi+lvLrvt3lT5g616HW/iowk9PphKg3c1Aoged8A=; h=Date:From:To:Subject:References:In-Reply-To:From; b=FMR++vwpuRjhvzYouPZTQJ5KJWYM0TwTC0nb755B+G+bwYdxWlLbaHIQV7JBpg2YR 0a0zzXDV1+lxeYkN2o0N3gH0PValQXED+2/3OgWugYQ1hNbj9ECvghpQOL7Tp3yWzP QURJGJM+rh62m29co0urevEKR1ZiCd0qboOUSQiA= Date: Sat, 17 Feb 2024 17:03:57 +0100 From: Greg Kroah-Hartman To: =?utf-8?Q?Ond=C5=99ej?= Jirman , 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: <2024021724-festivity-divisible-0b32@gregkh> 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: On Sat, Feb 17, 2024 at 04:40:21PM +0100, Ondřej Jirman wrote: > 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 You have to do so. And you need a Fixes: and cc: stable tag too, right? Please fix up and send a v2 properly. thanks, greg k-h