From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from s1.g1.infrastructure.qtmlabs.xyz (s1.g1.infrastructure.qtmlabs.xyz [107.172.1.117]) (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 6A90919ABD8; Tue, 19 May 2026 14:24:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=107.172.1.117 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779200676; cv=none; b=UGL+P6OWYQTC89gUwiY2spF71gaSyNkjLbE13voLfS0wrz1DbS59EdGNrZxbf9Ha7pZuLrJpuEj1mAsbMUB1wKyFyHklI7K+YQQIQkMUIvJXd+J79xTX5os04iaD2NRUpA8m6zkkdAjzdcRJEGHQFi/zbR5cGDeohmJgmAlv8ZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779200676; c=relaxed/simple; bh=ka1TJuL4m08sTG9zn9zPZUp/qOC3cNrQk63WHi7z13I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=td9zz7IyfjZ/Z4M4ArBm/Z8lUtEdES9VW4WSYWEb8miO4xYZAWEmCGr6LoZhmwQroPnYvVVBmXThk0049/U/dFSyucByr2s+KTDcgZxLs2vmLmbvJ9/OwYSTfJ/95mT5/XA57uRgSYqTXhciH/lp7dkixPw0/RDzL2WaY7fnHLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=qtmlabs.xyz; spf=pass smtp.mailfrom=qtmlabs.xyz; dkim=pass (2048-bit key) header.d=qtmlabs.xyz header.i=@qtmlabs.xyz header.b=DqI/32L3; arc=none smtp.client-ip=107.172.1.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=qtmlabs.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qtmlabs.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qtmlabs.xyz header.i=@qtmlabs.xyz header.b="DqI/32L3" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtmlabs.xyz; s=dkim; t=1779200673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fRs5JdyXx0CEV0bf2ro8Ws1Nng/pEAIkBKMT3ucgQzM=; b=DqI/32L3XNpNFJxTCI1Cd5kwQZkS8KfasilZ46nEOGUzbOPseByZnZEonUgQX01uZ/9uZb ueZfFputI5BPgopQIuCgCPG4IEd/PQE76lp9v6wbbavHVbC/b40hVTAlmWS1j7dF1uVN86 cwa34a1nNAXto4c0pIyHea9yIBkq9XBvpQ54lDu7tjnnb9+57f1c6IGiQi/GTYhg4SXlwX +DavHRJ+sOb12pC87viUMnFg7kVMItEQbqhbZS5QX0jZnE7f7/w6aDJrie3VW82N4I1MvM OhMEESUFFc7NiTvwDikHXnkgy0tJiDRb5o5X5W2d7avrprLU6+GkqdXPveeneQ== Authentication-Results: s1.g1.infrastructure.qtmlabs.xyz; auth=pass smtp.mailfrom=myrrhperiwinkle@qtmlabs.xyz Date: Tue, 19 May 2026 21:24:26 +0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/2] usb: typec: ucsi: Check if power role change actually happened before handling To: Heikki Krogerus Cc: Greg Kroah-Hartman , Sergey Senozhatsky , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20260519-ucsi-fix-2-v1-0-6f1239535187@qtmlabs.xyz> <20260519-ucsi-fix-2-v1-1-6f1239535187@qtmlabs.xyz> Content-Language: en-US From: Myrrh Periwinkle In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- Hello, On 5/19/26 9:22 PM, Heikki Krogerus wrote: > On Tue, May 19, 2026 at 05:14:15PM +0300, Heikki Krogerus wrote: >> On Tue, May 19, 2026 at 06:41:39PM +0700, Myrrh Periwinkle wrote: >>> The CrOS EC may send a connector status change event with the power >>> direction changed flag set even if the power direction hasn't actually >>> changed after initiating a SET_PDR command internally [1]. In practice >>> this happens on every system suspend due to other changes performed by >>> the EC [2][3][4], causing suspend to fail. >>> >>> Fix this by checking if the power role change actually happened before >>> handling it. >>> >>> [1]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/subsys/pd_controller/pdc_power_mgmt.c;l=1689;drc=2d5a1cffce4e5ac8a39442cb3b764d2d5e1cf794 >>> [2]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/subsys/pd_controller/pdc_power_mgmt.c;l=3923;drc=2d5a1cffce4e5ac8a39442cb3b764d2d5e1cf794 >>> [3]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/subsys/pd_controller/pdc_power_mgmt.c;l=5094;drc=2d5a1cffce4e5ac8a39442cb3b764d2d5e1cf794 >>> [4]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/subsys/pd_controller/pdc_power_mgmt.c;l=2229;drc=2d5a1cffce4e5ac8a39442cb3b764d2d5e1cf794 >>> >>> Cc: stable@vger.kernel.org >>> Fixes: 7616f006db07 ("usb: typec: ucsi: Update power_supply on power role change") >>> Signed-off-by: Myrrh Periwinkle >> Reviewed-by: Heikki Krogerus > Hold on. Shouldn't this actually be fixed in that EC code? > > thanks, > I'm not responsible for the CrOS EC and the only alternative proposed thus far is a full revert: https://lore.kernel.org/all/2026051935-flashing-relearn-8444@gregkh/