Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3250929pxj; Mon, 7 Jun 2021 06:16:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGYwMBl+3w6+SS/k8ebDa3GvE/SNw27/WTsCnwhHkG0LidhqKgUnb/Hai9L6ClpTMXO7AS X-Received: by 2002:a17:906:4c8c:: with SMTP id q12mr17990614eju.254.1623071776994; Mon, 07 Jun 2021 06:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623071776; cv=none; d=google.com; s=arc-20160816; b=Akv/EVGTYlBm3kkKTB5wPjNjQif7DSVj9KRz4c7W7KnrT2T0/7Q8jzeHmARk+dkL4f VQUL5IqkNeN9DYDn3d3G4aiRb1sMbmeJSafMXr81Sy+BVUFoKoRp69yULHJd2FLcWNXl hIks35w2Iqk7aOOJAmQ2yPQxspvUCU1KwDHQ/sGeWcC8qgMD3XeZaKoH22c+CK2QXZTd digXhx1bDGA5ytO7Z17EmPZwAXjU7NH0+aqhvVsGuZ+u2IhMfdOpaKTNW2l2WcKAOUeo wCHkWzTemmUdetMgdliADaxdwf8nTV4/WbZAmrAFF0CxWbiqrT852Kny5pABkOA/ignz v59g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=HakwtDrt74wIX22vT9NXy4glvov8RV/Bbw154l4kr08=; b=TQ3NoFA58XeJCP7wi3+k+GW6uIuhfKwaWJCHfiA+U7tawiK9smylRXn3n8Fw1RvTJy 7i8HrVeIFtyZJscQip/6/t0GuG/PGIuWdxSdra+AAmqIqyS2ioMDdSxf+1ELAGqSxu9E vRDy3RdyX75tIq05UOl+SB2bMuP44zg6Pv2tgd5eadFr5doVXdK+vuYRj6Jhc6s9KPAD yu0lgUPNM3EBcRoWMlwusutKcr7GeWZgEo3pl04qwK+umxId+wg7ezrUURpCdR+PRBun LffnDA75HtINcnbuciOJa5ehnRBkRfN1UUV66WXm1rYy/a9i8doSOA6jpna6Zggg09ig Va2A== 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 m12si12281922ejq.256.2021.06.07.06.15.53; Mon, 07 Jun 2021 06:16:16 -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 S230242AbhFGNQM (ORCPT + 99 others); Mon, 7 Jun 2021 09:16:12 -0400 Received: from mga06.intel.com ([134.134.136.31]:17596 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbhFGNQM (ORCPT ); Mon, 7 Jun 2021 09:16:12 -0400 IronPort-SDR: 1nuFiyBydA7TbiyN1ZuFLK7W494n6itT+bRMFdWwNaCCDhs5cGqd1HcWTfX6s6Vdhu2KTiBsf6 9UDpWM9zFqmg== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="265773960" X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="265773960" 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 06:14:20 -0700 IronPort-SDR: cuSMWITX6jWJebNtdUTONbMsYtQNUWTqQbS9AeSnPei1BERjI6ODevxombFvPvx0FC3Llv8ipO ddpyxbiF0JsQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="551881850" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 07 Jun 2021 06:14:18 -0700 From: Heikki Krogerus To: Benjamin Berg Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/7] usb: typec: ucsi: Polling the alt modes and PDOs Date: Mon, 7 Jun 2021 16:14:35 +0300 Message-Id: <20210607131442.20121-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is the RFC series I promised [1]. 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. [1] https://lore.kernel.org/linux-usb/YKT3oEt%2F9fX8k8mw@kuha.fi.intel.com/ thanks, Heikki Krogerus (7): usb: typec: ucsi: Always cancel the command if PPM reports BUSY condition usb: typec: ucsi: Don't stop alt mode registration on busy condition usb: typec: ucsi: Add poll worker for alternate modes usb: typec: ucsi: acpi: Reduce the command completion timeout usb: typec: ucsi: Process every connector change as unique connector state usb: typec: ucsi: Filter out spurious events usb: typec: ucsi: Read the PDOs in separate work drivers/usb/typec/ucsi/ucsi.c | 317 ++++++++++++++++------------- drivers/usb/typec/ucsi/ucsi.h | 3 +- drivers/usb/typec/ucsi/ucsi_acpi.c | 2 +- 3 files changed, 183 insertions(+), 139 deletions(-) -- 2.30.2