Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp459395pxj; Thu, 10 Jun 2021 05:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeeysYACft61wcbTuQ535V5glQJ/Ddc3CYFWgVNpYXicpYxnBiIfHaJlvTZ7MHXznKBmAQ X-Received: by 2002:a17:906:a017:: with SMTP id p23mr4302509ejy.460.1623326996509; Thu, 10 Jun 2021 05:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623326996; cv=none; d=google.com; s=arc-20160816; b=Gd6BvFci1jLFpixIJqDXyqGbfB/RwCklkBbh/oVwjqhxuBtmVNeh4SgspxRS23LVvj gQ6NpLJoUmGjvNepXqA+aMP+lCJWUvqdEM8JS/e4s64qdkz6I0jA5yc9y6PnAoR/eDBh W16uZUDLIxeQXr6DjK7ccNy4yY7zr1UzwIlJrQvnNF0CYJuavvch2sPN1K0KEIvVboq1 d2R1J8ZmLs3GV8+2OKbzaUdvROkbNPthHGWHPNSPYravV5WHOWWCx4bM9hMxjAU9WJuo gqOa69Y/7Y66wEdm7aiNE3LHENvYSQP6ZXOjvEhLDcSOuIgHdlwX7zvJ44R7ojNM7okk 63jw== 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=RwX9dDZY8swsp9x2VjOOs4MoKJve4NwNLys50w4ZpHw=; b=z7EUlIwdYcW4fKPRCAh1IZ/SpNr9wZ3YbmFGbjtRC7MdqoQ9u35jVfD+nFtkH6GXKS l4pW8w8cFYdwAanJdcKLZNKmWlIy7IqZViPVMz25PlsJs3lDGngH6e6ccbvHIfg5k1qM ZYqxnazLccVUNeiR54LLyZk/6sIDbzHDmmdcxbNnM2aY2idKs+y0S+2NkAIComfgH7KT YS0i9fpylpN84S+Sihp1e0S9+rWdTcXIR86vaT/uboBFILZrzifYwCYe39bGw4DsmE5h 3j744kWLmlyeUWvrXKIXj2BkFGm0cYBVQZCUDaN0WIfN9FF3+HorkCKScwySM5I+m3be u8Yg== 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 l20si2013611ejn.131.2021.06.10.05.09.32; Thu, 10 Jun 2021 05:09:56 -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 S230373AbhFJMJf (ORCPT + 99 others); Thu, 10 Jun 2021 08:09:35 -0400 Received: from mga18.intel.com ([134.134.136.126]:25024 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbhFJMJe (ORCPT ); Thu, 10 Jun 2021 08:09:34 -0400 IronPort-SDR: GfL2YwfCIgCBLbmdJc5NL4Ivj3pQ678Z+Psgd4yjveXfcFExWgvjlbUvSfIfuIxipfyXEwj5Ej UB6ANpV8WMGw== X-IronPort-AV: E=McAfee;i="6200,9189,10010"; a="192599704" X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="192599704" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 05:07:38 -0700 IronPort-SDR: +wOVCgWo6QMRCUZl/vz1ixHeCTfdjqX7IVzlMy5+2xqf7VkB1ARy//upM1I8E/gx/jBXPMbljm xM1NKTnjVp8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="553043320" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 10 Jun 2021 05:07:35 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 10 Jun 2021 15:07:35 +0300 Date: Thu, 10 Jun 2021 15:07:35 +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> <0bf4d8fc6d64ac553a319b8c5af49a3d7705842d.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0bf4d8fc6d64ac553a319b8c5af49a3d7705842d.camel@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 07:39:41PM +0200, Benjamin Berg wrote: > My thought when I first ran into the issue was that the PPM simply > resets the change bitfield on ACK, effectively discarding any changes > that happened after the last GET_CONNECTOR_STATUS call. I believed to > have confirmed this by inserting an msleep in between. > However, I have to admit that I have never really looked for > alternative explanations. Thanks a lot for testing these. I now have pretty good idea about the problem. The problem is not what you though it is, but the driver is also not too slow like I suspected. I'm quite certain now that the PPM simply does not create the event at all in this case, regardless of what the driver does. We do need to workaround that problem, but I think we can do it in a better way. I have an idea for that. thanks, -- heikki