Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1452540pxb; Fri, 20 Aug 2021 06:03:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSfu/zaWfPPI31Xn0oajpEK0Rlf8bQNeu9/yxZj4e+APtjtdlxUxuu/MugOIbURUhSS2gI X-Received: by 2002:a6b:28b:: with SMTP id 133mr15927552ioc.107.1629464629017; Fri, 20 Aug 2021 06:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629464629; cv=none; d=google.com; s=arc-20160816; b=fR+Ljzelu4yTV0eQm9f1QEtvzz/wQPjOK7dD9/z4ofZPWcLerbMpq0/iP4DDdQRLRK KqhSl8ZCthlQ7nPPjPkBh7YA7zC6dW3zC6TzbWSaZp/spUWT3hMwgDCQ5WiSqETyokJ4 Fhb2v1CDAwBWaACaNA9PTDUeV4gdaqxGev4vB324TIP0sC2TxhzsZBFlUbWjxkOgAcq9 qIK3vgr66tlhrZVd+Xgx3VnfQVehPneU4A5N8/eahj06BLjdr5Mt3SByvq/t+YyRAtjs c8RCJ+pEIJdGUhlf+GF+0L7Vm18RnpPYTwZKkvkp0+yMDDcpGMBy9+SEVU23B6JMZGXR 58ug== 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:sender:dkim-signature; bh=xzeaFa3UNgKzx3RirfcqUDpgF3zRTrOXaQu0yTtjAs8=; b=Zq5Zhef6PxwGH9EjYuBzR/ZuSEboiD7YmsTbKqQBBUWypgOkshYeTsikl7poH5C/VG gmcPlm5sFFpOZ3DaDjM5ArqeLZlYH3C9P7DOBUn3QA8Jyoq+uGzwrhHOeNtn5E8zmd/L EJytfEqKZMmbMXwsRFic7cq7pG8OqZzmf2IlwoCxnazBj1yl1UD0Pdjl45kZ8ReGZWZn 4cMSNsbzheQZRBntq+DVI1Z21dXW9BMcPKHQxH25lKHKuPpar8hwGRIRezXpGY0gFSRn roN1JOZ3boo7+fRE6PGAFMCIF9qHidMN84aetR0zt0SDpM6Aa1C/xnhP2dhsIUjEFtTe LtQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fgw8GLAu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si6678216iow.65.2021.08.20.06.03.34; Fri, 20 Aug 2021 06:03:49 -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=@gmail.com header.s=20161025 header.b=fgw8GLAu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240666AbhHTNCe (ORCPT + 99 others); Fri, 20 Aug 2021 09:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240643AbhHTNCd (ORCPT ); Fri, 20 Aug 2021 09:02:33 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E1CAC061575; Fri, 20 Aug 2021 06:01:56 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id l7-20020a1c2507000000b002e6be5d86b3so6066916wml.3; Fri, 20 Aug 2021 06:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xzeaFa3UNgKzx3RirfcqUDpgF3zRTrOXaQu0yTtjAs8=; b=fgw8GLAuc2MNfD/+BeMNlU9PO4RFELR0coeE9WvYMM6en3SUIt4B1BkiWfiFM+hWlz NjcPpBeHyoKVUPi8WcBLhDdT13zAHdFfLIQttIfEu4fvlkTSykc0lCVAGkT5Ih9MZTBk ZJWTQKJk2TKDSPUd6oy9iDE5AIKm7x5O5FUehQROqvFgyh8qCM7/i0q5f8SUOy62Q1Fa fymQP10CnFPNK2mGRW5uz6BM5Awt1pi4DxXGNQsvKQ/ZmGdawliSOenIpoVp6tjvBn+K 81LG0R4QvI+mXLCH4fqCxBQo84renKkrEc6eO3F9n1zXXgHv5jyTuJT3gf8iy9OcxGo+ Stpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=xzeaFa3UNgKzx3RirfcqUDpgF3zRTrOXaQu0yTtjAs8=; b=QdRPROlwSDKP7pKj2KpxQlUmFRrroCP/3e2BIAGKwYhk2I+LL8wAY/jVb+4yjunBmM xWhYjUA4t5x6hEmW11Sdfr621lC3Df1aCbxinjMj4nmT7HVJIy/s8bu0cDazSCjn/Lcz n134PlzX/toRsuv8lxwqL4J3oCGYh0XvNRMmVZHI1xZbHZ1gDq06jizs1+YcvUV+bGw+ PqbNP90pAuTFnHgiT+tC6PsFfuneq2DEijjvT18e1eJq0O6xPy57H5h3GfNGM7Mzbmy9 mqih5mtIPsUo8MARs0f4cyOQeOR2MiS87WQceCiZeaS+YMJlc32v0fDMLYZLmF9OBNjM EraA== X-Gm-Message-State: AOAM530pJIknVGOoFS/Rxf47iF6b1RXiQk07kAzo0L/5RO03mSjOpDNb cHbmSJRadh4HoV6xKm2Qf0A= X-Received: by 2002:a1c:7e8a:: with SMTP id z132mr3823139wmc.75.1629464514759; Fri, 20 Aug 2021 06:01:54 -0700 (PDT) Received: from lorien (lorien.valinor.li. [2a01:4f8:192:61d5::2]) by smtp.gmail.com with ESMTPSA id k22sm5026185wmi.47.2021.08.20.06.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 06:01:54 -0700 (PDT) Sender: Salvatore Bonaccorso Date: Fri, 20 Aug 2021 15:01:53 +0200 From: Salvatore Bonaccorso To: Greg Kroah-Hartman Cc: Benjamin Berg , linux-usb@vger.kernel.org, Guenter Roeck , linux-kernel@vger.kernel.org, Benjamin Berg , Hans de Goede , Heikki Krogerus , Ian Turner Subject: Re: [PATCH 0/2] UCSI race condition resulting in wrong port state Message-ID: References: <20201009144047.505957-1-benjamin@sipsolutions.net> <20201028091043.GC1947336@kroah.com> <20201106104725.GC2785199@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106104725.GC2785199@kroah.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Fri, Nov 06, 2020 at 11:47:25AM +0100, Greg Kroah-Hartman wrote: > On Wed, Oct 28, 2020 at 10:10:43AM +0100, Greg Kroah-Hartman wrote: > > On Fri, Oct 09, 2020 at 04:40:45PM +0200, Benjamin Berg wrote: > > > From: Benjamin Berg > > > > > > Hi all, > > > > > > so, I kept running in an issue where the UCSI port information was saying > > > that power was being delivered (online: 1), while no cable was attached. > > > > > > The core of the problem is that there are scenarios where UCSI change > > > notifications are lost. This happens because querying the changes that > > > happened is done using the GET_CONNECTOR_STATUS command while clearing the > > > bitfield happens from the separate ACK command. Any change in between will > > > be lost. > > > > > > Note that the problem may be almost invisible in the UI as e.g. GNOME will > > > still show the battery as discharging. But some policies like automatic > > > suspend may be applied incorrectly. > > > > > > Cc: Hans de Goede > > > Cc: Heikki Krogerus > > > > > > Benjamin Berg (2): > > > usb: typec: ucsi: acpi: Always decode connector change information > > > usb: typec: ucsi: Work around PPM losing change information > > > > Do these need to be backported to stable kernel releases? If so, how > > far back? > > Due to the lack of response, I guess they don't need to go to any stable > kernel, so will queue them up for 5.11-rc1. At least one user in Debian (https://bugs.debian.org/992004) would be happy to have those backported as well to the 5.10.y series (which we will pick up). So if Benjamin ack's this, this would be great to have in 5.10.y. Regards, Salvatore