From patchwork Wed Mar 27 22:45:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Christian A. Ehrhardt" X-Patchwork-Id: 783542 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_Kleine-K=C3=B6nig?= , =?utf-8?q?Samuel_=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-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-) Tested-by: Dmitry Baryshkov #