Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp886336lqh; Thu, 28 Mar 2024 22:56:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNPqfUVcF40hxJoBQFYgyfXin+Ll8/wZve0HRVBhVrfJqskq0k69Q3JOdadH5rovRxB8PWoVFCuz0+f4DnPcQRHjRSmluwibT3tc0POQ== X-Google-Smtp-Source: AGHT+IGiD7t3nUFbcMD2g+NNHZSJu/0UkScaw1xl3+ScwnQvMwNigyUX4P5SbnVg8Hphiv1OEucT X-Received: by 2002:a17:903:449:b0:1e2:378f:e31a with SMTP id iw9-20020a170903044900b001e2378fe31amr119528plb.68.1711691786668; Thu, 28 Mar 2024 22:56:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711691786; cv=pass; d=google.com; s=arc-20160816; b=hhIm0kNRg4KXFuSQ5VebcUb9Apheb37OYxiSPV7w6L82/0s72Ya+vuzLhNIWf8XZOb eh2CTJrCTf8g/S1E39DXutKVue7Zn7fiJHpabSQjFgxElNH/Q6I6KP0MficHhuoWGfSJ x18yBHZJKVRZG3CRmd917cnBSVtztzHdLkMoOYa0sF43BnA/f70HypOvq1jsflxe5q6z WmNpz8/YnQuWrshX09FfHxFDCwTecF1ydqYysvV71V0Y+r50JHsP3s2q/SZLQPl6D1/U 5wbVsJN5NjlHRzw6JTLa9cCXBrc5mcrGAcsqPlo0yyoG5sCj7dI6UB9ToLLZdduzUKWz lw2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=2dkJ/eB3NE7gH7tgLxZzt30oH7th5QfRjoRtkA4jvFo=; fh=d3RQwGKRhIs1uNQ4Nv2vTmeVXMJhqosDLSm9NE+z2/A=; b=IFfNHL5DKsnu4lluwk2FANSWGSNb+HP9jmr8YDf8SO5i78vtui2272RrOE9FFbuxSk T4rvYf9opdVH7FwO8+wX+YcCOfPmJZeO2lEAhodQldmnvgHfHLvO1gJVNJhValDzF4So Xg8nDmWX//+gO8l9mLEf7+631G2u/X0/6H1IaTx5KI+9QZb6sefup/jTxTc1eA2xwl3x KlvKJMyxBvbYjUfvnf4c1L+H/YZUQ5r91Eb4AtsiTmSENWRMI/jN8RU5sv1IOGujVkg9 C9JSlsxTh5uvT2ekcW617kHaE+r6mdu71Nin3Ucy/CYIBU8+rjrxrG8t53tDumR1724d pKNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sylAsleB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-124177-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k2-20020a170902ce0200b001e08b0da297si3065250plg.89.2024.03.28.22.56.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 22:56:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124177-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sylAsleB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-124177-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 589AD288EC2 for ; Fri, 29 Mar 2024 05:56:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E79983D966; Fri, 29 Mar 2024 05:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sylAsleB" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEB6938FA1 for ; Fri, 29 Mar 2024 05:56:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711691779; cv=none; b=GlznNIIorGsSmCm5tsTAqnqZXy2QNKa1aHbmc1BzgbO3wRGa9YTeqKx+YHeS9ZfGppy7v7uvo25ylMuXuIARKP4Gyrm9yOy8tbM9SGsBWcgXETgMiU5HwVGas8cJMLZhFnaknGG0bDfYiXwTKTjgaFQB3vPhQtl2YtH7ufB5V0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711691779; c=relaxed/simple; bh=I6gb3mouBEmAFWwdt7bCZ0uEsJC1XXBgedFnEv3UMV4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VFV/JVNuarYRHYYbtmp3t757NAEUOdm5gm5KBB8e3t+mj/iVjFX1K0PE67VT7osfsr+Kuy97fUb0AkisVx/PpHcsIFwwRpXT4PsJmAW9ykaJErWfjg2nswYY6UXo9P9ffe0nyQ+Ivvo++E7v20m/2g+dKShUZ1pcW2nolq4CW20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=sylAsleB; arc=none smtp.client-ip=209.85.128.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-609eb3e5a56so17983397b3.1 for ; Thu, 28 Mar 2024 22:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711691775; x=1712296575; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2dkJ/eB3NE7gH7tgLxZzt30oH7th5QfRjoRtkA4jvFo=; b=sylAsleBhCd7XU52STkKnCfojR5GokLfwMmmNU/nOCnePdSp5kpaZlHnDvvoz/ZzTB f30qGEM8naNXu6/aV1JSNY0z+YtpQObZ++tcRJGXgLX7odn7CLRpT28u/GEQTKLG0hHY ZJaSCRL9+BPblab3UCEjXLjf9oaRLIkQkgkBZw2MIQNS3ilFE6OHcXIfk+jxc6PVJxCN lHBIMgmETZu3nRcSSuL+efnMVakwznhpYyUfsyzetXVyUHRqQbYnqgZ0eNg9TQjPNWEt aBEAhPchjrnW/bQD+ao6LOAG+osNZuHVGp3mYUTgtIlRCPuZjFiZ0Bd4XTdEk+yoh9W5 h5lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711691775; x=1712296575; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2dkJ/eB3NE7gH7tgLxZzt30oH7th5QfRjoRtkA4jvFo=; b=AzRIdbbJLMXxc3ddTXM5vVRIOUHe6pzQS19xuWDQ2Wmj/dP5XlQOBcsD34UZgdsh5b mSc7Ome4Y/gmwpSnKAACjRwjXgz7ivBEn/qXbfXtHHjFeKljnYlAl5Ou7EPHEeefZLei TG5KIFpOPE3AGhwH4ll5fE/btHMnf8ffd21GbuBkuojrjwdXRN9TEQ9AfLpXCck6/j0r AhTFzTXJILDJXRba3CGXH08wnURhw8XIfwbgFaqh89maEcZWBN4ms3WTZRBhdGfk230x aa/ngQL44WOtWRPRLTOC/HN5GF3POb3M1AlGzVr1l0dXi98OM/x/mt87OtLXkUTgxfxw ziig== X-Gm-Message-State: AOJu0YyM0FLQ9MrFs5cwXzhAzhaHWGWoNDTr+8CPbN059OJYZLzT0QUK 1nwJhdCdfhbyyaXPLG4lbjhFMT0KmN+tARVj3b6NghuhSZq9Fi7CnvF9gTUBPqAt1pJBGLWeHW6 wiiz89J8q7qRqn3RDCYoTfbCyUOPRCfscxUM34w== X-Received: by 2002:a25:6f89:0:b0:dc7:465d:c06d with SMTP id k131-20020a256f89000000b00dc7465dc06dmr1354548ybc.28.1711691775003; Thu, 28 Mar 2024 22:56:15 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240327224554.1772525-1-lk@c--e.de> In-Reply-To: <20240327224554.1772525-1-lk@c--e.de> From: Dmitry Baryshkov Date: Fri, 29 Mar 2024 07:56:03 +0200 Message-ID: Subject: Re: [PATCH 0/3] usb: typec: ucsi: Ack connector change early To: "Christian A. Ehrhardt" Cc: linux-kernel@vger.kernel.org, Diogo Ivo , Heikki Krogerus , Greg Kroah-Hartman , Prashant Malani , Jameson Thies , Abhishek Pandit-Subedi , Neil Armstrong , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , =?UTF-8?Q?Samuel_=C4=8Cavoj?= , linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 28 Mar 2024 at 00:46, Christian A. Ehrhardt wrote: > > 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 # SM8450-HDK, sc8180x-primus -- With best wishes Dmitry