From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.137.202.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796081097; b=LtVSVasu8xMIFppVdOeKXjf53mDx6gq3xNXxHUOAZzH9gdszzZC5TWLJY2QsmFNq3whW cNy7Urk/w6pGnI+ojPZ75iPicsnhQw2w9tgHwZizRzF+nmh51KacKbpSfauwzNNXnraxz rhSXHAUHidigbgciH9o7Z9cnjroBnq7FeJhP8mm7FEVJOQ22KaQqAC27Ry7arc8ZVysJz mU23Lk8pOp6eT/C20VfasrZmBY+54ofNvqlmO9IuoGfwjQKyzdNn9t9Qd2Wwn6TFQO4FN kwLUhTo/EtxpG0fa5+0KPoWarITDyGMUma8ge2y74137Qua7Ftx0kxodjuIpKFS8dzA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796081097; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=uLKGEhk3+GiN2BfX/+iLfOJXnWoEq33qI920vUxFEKo=; b=yMxabDx0ZcB87pR0a1pgmcQGHZAz9/9PWXOxOCm4ViT+vdd3gE2UcVQUdl95zhWTku+u aVnMqoZFSWCRe45vsIXdNZmc4SEzBvHXZ8zbBBQV3XZSBDqRcKw+On4lTDkh7yRsbsfXN LzQyNnDtfQqkQE7A09kta1ouGRew9gdbxYp5IJIJ4OCRIgXgjKU+vGBfBoWK1lHAgu/sl nxmbU2afjCQ4iDp8WKUDHY438IH4aqgrdAH75dGypm/foAGaoeIumY7TQSOE7G9fJGSkM asOhled0Ivy2BsU16Q7A0QvoJczlRk/wgElRwDn+XrFiKitazNQiqgiTjfjnFaN7LDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ROsQ2r6N; arc=none smtp.remote-ip=198.137.202.133 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 363AA606A31A; Mon, 30 Nov 2026 23:24:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 363AA606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ROsQ2r6N DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=uLKGEhk3+GiN2BfX/+iLfOJXnWoEq33qI920vUxFEKo=; b=ROsQ2r6N0LFI5uSGSHj+Fe8XvF SD0oXONp1sqSd8oAbgxYyz4DGfsdb/zrkouCI0veJwlgwIzYpCTgi/tKHJvgOSiIqrYMJim7KY6wS G9WKqD0vC7vSpHzMwJ10k6MjntheLOee6+FmGps/v3wal8qJSL19tbvULAq3jhXbjk7dY1sRnoJ79 9kTNU/uwXGmTmKhtPGTE6vOtT0yHEq85XnmU8IFd06O0qTgqsTwFUjA6SYw3nH9fH1Rt+6En6UvTQ aGSM4vmrfgw7VFf41hLY8DH/szWGUAH9Vz1mpHFvfya/vwSecn9QLZqH/wET/mtisc6l491VxQDnt MI5wsuiQ==; Received: from [50.53.43.113] (helo=[192.168.254.34]) by bombadil.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYAjt-000000062wL-3t8R; Mon, 30 Nov 2026 23:24:53 +0000 Message-ID: <05c5192e-ab18-4036-acf4-be1d46e2433f@infradead.org> Date: Mon, 30 Nov 2026 15:24:47 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soundwire: stream: add multi-direction stream lifecycle API To: Srinivas Kandagatla , Vinod Koul , Bard Liao Cc: Pierre-Louis Bossart , Sanyog Kale , Mark Brown , Jonathan Corbet , Bjorn Andersson , Konrad Dybcio , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261130224018.20359-1-srinivas.kandagatla@oss.qualcomm.com> <20261130224018.20359-2-srinivas.kandagatla@oss.qualcomm.com> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20261130224018.20359-2-srinivas.kandagatla@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/30/26 2:40 PM, Srinivas Kandagatla wrote: > Add sdw_multi_direction_stream, a lightweight group that aggregates one > or more sdw_stream_runtimes that share a lifecycle on the bus. New > entry points: > > sdw_multi_direction_stream_alloc / _release / _add > sdw_prepare_multi_direction_stream > sdw_enable_multi_direction_stream > sdw_disable_multi_direction_stream > sdw_deprepare_multi_direction_stream > > A multi-direction stream group with a single constituent behaves > exactly like the direct sdw_prepare_stream() path, so callers can use > this API unconditionally without having to branch on how many > directions a dai_link uses. > > Groups with more than one constituent currently iterate the per-stream > primitives with all-or-nothing rollback on prepare/enable errors. > This already gives callers a uniform API and well-defined failure > semantics but still triggers one bank switch per constituent stream. > > The follow-up step is to split _sdw_prepare_stream() and > _sdw_enable_stream() into "params" and "commit" halves so the group > can program every constituent stream's bus parameters first and then > trigger a single do_bank_switch() across them. That is left out of > this change to keep the diff reviewable and because it touches the > SoundWire core state machine; it can land on top without changing > the public API introduced here. > > Signed-off-by: Srinivas Kandagatla > --- > Documentation/driver-api/soundwire/stream.rst | 43 ++++ > drivers/soundwire/stream.c | 184 ++++++++++++++++++ > include/linux/soundwire/sdw.h | 37 ++++ > 3 files changed, 264 insertions(+) > base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8 Unless my linux-next tree is mucked up, this base-commit is linux-next-20261130 but the patch does not apply cleanly to it for a few reasons: a. The last 3 lines of the context diff are incorrect. b. The number of lines in the Documentation block is incorrect, causing a malformed patch [@@ -518,6 +518,49 @@]: 49 should be 50. c. The number of lines in the source file diff is incorrect, causing a malformed patch [@@ -1884,6 +1884,208 @@]: 208 should be 237. Maybe just regenerate the patch? -- ~Randy