Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp82759lqh; Wed, 27 Mar 2024 15:46:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6qKa4JXOdmoQmV23jmFEQDDKuG26vRzIca8ytryqELVY7G8WLz9rlHLDXCqTMzZj5K++mHtvfgYsg7Xy4fvDAhudwtAYUsjiLYLizHw== X-Google-Smtp-Source: AGHT+IGrUuaCtxAoVWw192Lr2y9HS2S+F5ZQr908gtjchZdNeyQ6h2fwbuX/tAdDscAHB05JHvzw X-Received: by 2002:a50:d756:0:b0:568:32f7:6c55 with SMTP id i22-20020a50d756000000b0056832f76c55mr1085939edj.9.1711579594831; Wed, 27 Mar 2024 15:46:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711579594; cv=pass; d=google.com; s=arc-20160816; b=xkULqd7d0ZV9iFwCauXrn/KnUK4rHZpNIv9nIOypW4T7FYCQ5bYl/rZxou+AElZRVN Z6xMzREoBHBo0oXr4nW3cTg2LD4jLDRrM0+Q2uvUGwgm+lPxzhziqg3InPl87++UpjSB WHLe1Hv2OuqALAGl8ZBnwSHiNUHrSLbAY4ub+5Hitzu8k7QIgeZoZlY3eCqip1a2m4d+ 2caUOtGXxJ2r3y6uty2TNtMomfWgx5ulbto8+o68nmwBoxwmdsF1T998r6xhsdEB6q8X 5LPaf9ozfRHk2p7Ytu28iI0irNBGJWi/X0HWdUBCn7OwUIqlxz9GXSh8AKd4baodk6X0 P77A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=CBi9zZXjN8KMo+2AZJo1ynM+Av8ofubhSQcuDjXhHfo=; fh=V/ZqdMDaoW+4gUs64XaII0UfQ3sY4dKTrFRB3/bG0Zs=; b=LI1I2HcKLdmwQpNj+vbsALyvAiDkIY+3ruhZJT/j0TsuxMrTxYLqkyWzslcYzAm0jk Muzi736bpTudhjOAeSZ3WEnnnNChg6mq8G45TXkieojM9hPd7eFkmCvo+B0hIByJYASX R7JVUtlyv8maJPgqRiV0CdnOCdZ5AH8tj6NOgTWAxjPfYz9HGwQEcRV4TbFYHX9cWzyS lhshwzm24duA4tNviRgsu5QxroOGiKAPOupvwZpcjovbv8mtosQrtGXW1ZQudBdhDVji 3EJ8WdSOTnBOmPkNt5rufA4vkYb1GVw9xRd2p80YIbnJE/KZTZ6d5Gj3vMCZvAVVR5PT 7NOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=c--e.de); spf=pass (google.com: domain of linux-kernel+bounces-122112-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122112-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p28-20020a50cd9c000000b0056bf5b99ae7si90501edi.14.2024.03.27.15.46.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 15:46:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122112-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=c--e.de); spf=pass (google.com: domain of linux-kernel+bounces-122112-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122112-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 905EF1F2D98C for ; Wed, 27 Mar 2024 22:46:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79C12153BCA; Wed, 27 Mar 2024 22:46:23 +0000 (UTC) Received: from cae.in-ulm.de (cae.in-ulm.de [217.10.14.231]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BF5C1534E8; Wed, 27 Mar 2024 22:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.10.14.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711579583; cv=none; b=Shxv7C7zFy1vcNIaf6csLrtDvGHOAZjYyJi+4tp8Emys6vmLhEtlv04czO+AXSrsPA8smc1tzLy37Wo5YRvJIplhoV3/hsQtz49/+o/vFDckP15bx8CoZ63GSdTxJ8jXgmNdEFPNjSmSkmwKcx53e81x9ZQQMH1iTvw5CqEFHvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711579583; c=relaxed/simple; bh=1e5raAEhprHiUiXaZsfBHSBgylnBCBNmi0u+bA8rljM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=TCNBSnaIMTChkQOmnLvWZlgLqttzY+uqOYWXkAcO1tL2QtJFD6w/X/3unyFXpHl/dVTvvK1cF8LaiiXoksSTKsSCm8QDR13pX+Gn0dyTiZS0yBhJsWfi8+JYV5KmIINByFzrR9ddLpvSP44UUm8V1k2KuwYDodiA5cQXTl6Xf/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=c--e.de; spf=pass smtp.mailfrom=c--e.de; arc=none smtp.client-ip=217.10.14.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=c--e.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=c--e.de Received: by cae.in-ulm.de (Postfix, from userid 1000) id 5F6691403E6; Wed, 27 Mar 2024 23:46:17 +0100 (CET) From: "Christian A. Ehrhardt" To: linux-kernel@vger.kernel.org, Dmitry Baryshkov , Diogo Ivo Cc: "Christian A. Ehrhardt" , Heikki Krogerus , Greg Kroah-Hartman , Prashant Malani , Jameson Thies , Abhishek Pandit-Subedi , Neil Armstrong , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , =?UTF-8?q?Samuel=20=C4=8Cavoj?= , linux-usb@vger.kernel.org Subject: [PATCH 0/3] usb: typec: ucsi: Ack connector change early Date: Wed, 27 Mar 2024 23:45:51 +0100 Message-Id: <20240327224554.1772525-1-lk@c--e.de> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit As briefly discussed here https://lore.kernel.org/lkml/Zf1XUrG1UbVJWzoz@kuha.fi.intel.com/ acknowledge connector change events along with the first command in ucsi_handle_connector_change(). The connector lock should be sufficient to protect the rest of the function and the partner tasks. This allows us to remove the Dell quirk in ucsi_acpi.c. Additionally, this reduces the number of commands that are sent with an un-acknowleged connector change event. Christian A. Ehrhardt (3): usb: typec: ucsi: Stop abuse of bit definitions from ucsi.h usb: typec: ucsi: Never send a lone connector change ack usb: typec: ucsi_acpi: Remove Dell quirk drivers/usb/typec/ucsi/ucsi.c | 48 ++++++++++------------- drivers/usb/typec/ucsi/ucsi.h | 2 - drivers/usb/typec/ucsi/ucsi_acpi.c | 56 ++------------------------- drivers/usb/typec/ucsi/ucsi_stm32g0.c | 1 + 4 files changed, 25 insertions(+), 82 deletions(-) -- 2.40.1