Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp195901rdb; Tue, 16 Jan 2024 21:44:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuLgAGRYSuKiBT2kbfmwg3zpeTYzWB9PsIrOju5xiq4IPp+w5pkDJCCBOJ/rsySHa2ihQt X-Received: by 2002:a17:906:bc87:b0:a28:aef6:9964 with SMTP id lv7-20020a170906bc8700b00a28aef69964mr295005ejb.14.1705470293967; Tue, 16 Jan 2024 21:44:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705470293; cv=pass; d=google.com; s=arc-20160816; b=bK3MvbV6DZgq7kQJ1a9c+4OcRRF2T/JGmhGibV1KIoo7Rj1+9HwlYfBMb6dQSsBGNm TBNzp79WImKnSR6t5HY8zPjNhIn9kMinXPyfjkLNfEMM22XZGGRhyNSYsZkU7F5b0W3E sbPHsAhv8c7dvcgV7BdExQnE0XXN0CCyYjJS5Wt0d2I+M/TjfHYD7ecwD5yOJoWEazYH S5vvSqrHJuITegMoIgjHxMRapzn7Bri3u20PdUJdrLBkDHbKpnQOy6sY9fp/lNgQioDV wgRVnTbOze+sdg4aj82ZbNz1j+XoLj25GFEpqi+xuSuR1Vi3W25vBNMr4oL/M+hncuq6 67jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AT37UlONCiLNKG3mAeZrj+759wUZVXmCbt/HXgCKXUE=; fh=KGATifVsER9pqcVD2nj5b7vn7vJvvge9e0Kgi2mvAIA=; b=xHQ2LKY+edkVNeolecj7tJNzyLRwU34l1AGU9CPCrAzR3l6QHXtnkEivk9qUpakYaH SXPdWhhXYp3jRhjS4PUlkc1iCyffVx2lJEuB5YcofGw73PhlBAwlkDBhqLU6OY4UzIQL EWeTwHfLu8JhK/W5RPCTxBuhfe1cF3FooYsW0QClCFCFGagqLQ56RD+EQ2epqbMj7K1D p+yLGljQ6GFzF7JtpMyYPa0V3WG2STUFWPmEW5tsXMgPXiQH082yHk6zJEoresfZIPYZ DEKne0+XSpaCpIoToRkGGR3Yq/hRuZXxGwPb0g9IG28R5JGEthg4v2gVpHKOk9UXV4qx HLGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vSDCu6/h"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-28545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t26-20020a508d5a000000b00559cb835f8asi550202edt.266.2024.01.16.21.44.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 21:44:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vSDCu6/h"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-28545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 B30CB1F26675 for ; Wed, 17 Jan 2024 05:44:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C63F79E0; Wed, 17 Jan 2024 05:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vSDCu6/h" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B9B21C11; Wed, 17 Jan 2024 05:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705470283; cv=none; b=AdlDHS/YhyysfL6h4LHkCQC2KWzi9dVFbfZ2klSFXzkWnZtypeRjFcyjMH09qfWUOdFKpRK7qsACB90TWL8lvHE9OakpuJnrIpMQ+CXTtFeD1D15jkF+rhrVruzokccjs08PlivATsYLi57FiPaf7af0SIDpzRlsMzKLt+ZnDo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705470283; c=relaxed/simple; bh=V2L/4fn7ZLWUHnTitT04jS9F7lFXCBOTYZt6nFAy4ik=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=VnJhIRPoZfMqpb1bjYZCkoPPQm0mD9xdI78VGy+YFA0ftB96cQk5ZF+keYgwCTtIxI/RmZXT5MZl1NJT0VzfJQjGDZ7YWhGwKFPBwZZij4Fq6FeGaRIWkN54ncoDokft/KvzcDv2kbBXnWSjSiwxMRveLVbBXtcJ+/CDKLm9rDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vSDCu6/h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B658C433C7; Wed, 17 Jan 2024 05:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705470282; bh=V2L/4fn7ZLWUHnTitT04jS9F7lFXCBOTYZt6nFAy4ik=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vSDCu6/hjOJd0R/mRbuFBE/fIwsEPDc3YmzQy3DMgtmfoUFCq3MatUWHyi2Gn/LgV kJhcfwtbHxfOZcRzzUdTmwSx8Xj7T2l3fM+NGSVqgvoshfPfQRdhGocD/I7CC6JyOb gbQcqKtfNPlKG3eB/lqDyHp9L2XmnDZSLxIyb7Ns= Date: Wed, 17 Jan 2024 06:44:40 +0100 From: Greg Kroah-Hartman To: "Christian A. Ehrhardt" Cc: Heikki Krogerus , linux-usb@vger.kernel.org, Dell.Client.Kernel@dell.com, Neil Armstrong , Hans de Goede , Jack Pham , Fabrice Gasnier , Samuel =?utf-8?B?xIxhdm9q?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] usb: ucsi: Add missing ppm_lock Message-ID: <2024011726-exhaust-writing-29d4@gregkh> References: <20240116224041.220740-1-lk@c--e.de> <20240116224041.220740-2-lk@c--e.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240116224041.220740-2-lk@c--e.de> On Tue, Jan 16, 2024 at 11:40:39PM +0100, Christian A. Ehrhardt wrote: > Calling ->sync_write must be done while holding the PPM lock as the > mailbox logic does not support concurrent commands. > > Thus protect the only call to ucsi_acknowledge_connector_change > with the PPM lock as it calls ->sync_write. All other calls to > ->sync_write already happen under the PPM lock. > > Signed-off-by: Christian A. Ehrhardt > --- > NOTE: This is not a theoretical issue. I've seen problems resulting > from the missing lock on real hardware. What commit id does this fix? Should it be cc: stable? thanks, greg k-h