Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3862681pxj; Mon, 7 Jun 2021 23:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTuQtAXOx+hNQq18Tk6uleVt118EMTTpmIpdrefF8dWfEaXK0GZLUCqegDEUtcx3AL7i/B X-Received: by 2002:a17:906:b296:: with SMTP id q22mr11970188ejz.397.1623135386815; Mon, 07 Jun 2021 23:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623135386; cv=none; d=google.com; s=arc-20160816; b=sSoKgveCzRNanlrjNjyBeJTcejVmEEaSNJ1mOsYvamFsTETR1cCsQ15Ip5Aw6in3a6 hE8plVczCnlTZa/OtZFC+LZET7ehHTOGH3l7QRAOQLtCKpI1BwJn9SbpEqkLdtaFJMQh h33yeiRP9ew9jFu2TtBHjlj4sIOMaikOx+YG/VnFSZjkpqdBkEGPjrVp3ULjr8NHgeSi y0d7/zqXIJJB9qY5G0kOoEmWabeBh16oabLelnCSzc+KabTFbdYTP7UGoYcawTBuKOC4 XMEjVduepaRll0f94jHvBTyQCyCKCk+IWma4Un+L5VM/wvdskcnAKc1xspXjgReYr1Xi BH7w== 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:ironport-sdr :ironport-sdr; bh=Ql6REzqd3ZrWxlxVl0s4bI9Hb47uos7lz4kedRHB0qc=; b=uqeLTCdxgkX96W+Eb5uKaEtyTuRWcDAxnd5Raj9tSeEQIQ9USqgWCN2fA8aO4HpW6G rO6of6CCgGrfyqIFU/bQkn0iJj1L3SY1L09AeOHGq0N5Zi4MhwXmaX1NY+kSj6IrYeA8 dhy0qHe/LRWeXKtFiXcibBcK8axYdGberZgAXB98EUKnPH7Css16HzfrtMxUFpfszPOG txyaEa4NpQKcRXGPoAtq0TD6HwWbYPUpvH+Ije9937OK0dGik8w2HXp8lZcBvlnbRsZ9 TIR9rgTMm4M/h+HkzqKcgypJ1whPK/tQrNWvXO9sGA1P53mrJQvX+rij/SblK/FXZxLG tCUQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si3538565edd.323.2021.06.07.23.56.03; Mon, 07 Jun 2021 23:56:26 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230160AbhFHG4D (ORCPT + 99 others); Tue, 8 Jun 2021 02:56:03 -0400 Received: from mga06.intel.com ([134.134.136.31]:49866 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhFHG4C (ORCPT ); Tue, 8 Jun 2021 02:56:02 -0400 IronPort-SDR: vMW+UB9Ue7wEWTDXi5Yp5feF8nm2PW8OlB6A97Tqc3uj03GNN9cbh0PDnZLGB49eAmBQ2av7BK D2N1/HfUk5mg== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="265935166" X-IronPort-AV: E=Sophos;i="5.83,257,1616482800"; d="scan'208";a="265935166" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 23:54:09 -0700 IronPort-SDR: maRWrmr4eAl9j4yK/dNJ7RZrD+zeMCLt6Sj/28SnCBQ/6FdHVbeu6IuxAg+5lZG/4rlqqaRFPr T0xbo63sVbKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,257,1616482800"; d="scan'208";a="552162586" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 07 Jun 2021 23:54:07 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 08 Jun 2021 09:54:07 +0300 Date: Tue, 8 Jun 2021 09:54:07 +0300 From: Heikki Krogerus To: Benjamin Berg Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/7] usb: typec: ucsi: Polling the alt modes and PDOs Message-ID: References: <20210607131442.20121-1-heikki.krogerus@linux.intel.com> <4a76d2152f016b58298bec16aa2003a6ec55f8a8.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 09:42:09AM +0300, Heikki Krogerus wrote: > On Mon, Jun 07, 2021 at 10:09:58PM +0200, Benjamin Berg wrote: > > Hi Heikki, > > > > On Mon, 2021-06-07 at 16:14 +0300, Heikki Krogerus wrote: > > > This is the RFC series I promised [1]. > > > > Cool. > > > > > I'm sorry it took this long to prepare these. I had to concentrate on > > > other task for a while. > > > > > > Let me know if you still see any problems. > > > > Hmm, I am not sure this got better. I applied the patchset on top of of > > the 5.12.9 Fedora 34 kernel. On the machine in question (X1 Carbon 8), > > I see the online state getting stuck at 1 occasionally. This can happen > > for example when quickly plugging and unplugging a USB-C charger. > > Please check does the partner device get removed. What do you have > under /sys/class/typec after that happens? Oh yes. Could you also share the trace output when that happens? cd /sys/kernel/debug/tracing echo 1 > events/ucsi/enable # now reproduce the issue cat trace > ucsi.trace thanks, -- heikki