From mboxrd@z Thu Jan 1 00:00:00 1970 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 C22112EBB8C; Mon, 13 Apr 2026 16:34:46 +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=1776098086; cv=none; b=IEpUUogqpfeLsBIG1sA+uqEmggaUkv6FP6xaba9aH/p+xDO3ha1RVTEUgfIPrnsG1i/fGeJn6a1sVzVu2ZANHt/bg58xXkpTmnoZ4jf3YPmn3Wbkf41hnVpN5vsTMLf3/n8NrhzAGAUb4AaMsQxPW4oNEXTiNEQq8RIR4FPFI/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776098086; c=relaxed/simple; bh=aZNLZUdHZhpAmclKe9YOAO4mIgBeYJKygf57By6KpbI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hb2hmt2hFRjsaCru7H+Cq5epXuf+ajW2Zo9SkzRBkj7G1tCYwaETE4IS70hDv7Br4CsK3hrJfNdh43GTUrH0ZGlGpVXxVEJ154JNPM/7w+KYLqrvDLcm/Bw57qURuEzUPtjTyKjLWt6YgwmpW2JE6P1YByUCj6NNygssGghni/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ClA9KWPR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ClA9KWPR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59B25C2BCAF; Mon, 13 Apr 2026 16:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776098086; bh=aZNLZUdHZhpAmclKe9YOAO4mIgBeYJKygf57By6KpbI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ClA9KWPRt0N/KpvgqTEvn0xmHgp6JOC58r1qI8yGOt1dF/fyxPjm84EyJGiDxajdy xYHchIcmboSuI9hXm6UuKgfW6jdAdZSxFg2lNn0uYf+umZ6pNq0hsSeWdWdZSJj0yf nSGkNtXWIn0bThxqpaoiyZGD116zMXrm6N/S9a2Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marek Vasut , Vinod Koul , Sasha Levin Subject: [PATCH 5.15 388/570] dmaengine: xilinx: xilinx_dma: Fix dma_device directions Date: Mon, 13 Apr 2026 17:58:39 +0200 Message-ID: <20260413155845.010073875@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260413155830.386096114@linuxfoundation.org> References: <20260413155830.386096114@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marek Vasut [ Upstream commit e9cc95397bb7da13fe8a5b53a2f23cfaf9018ade ] Unlike chan->direction , struct dma_device .directions field is a bitfield. Turn chan->direction into a bitfield to make it compatible with struct dma_device .directions . Fixes: 7e01511443c3 ("dmaengine: xilinx_dma: Set dma_device directions") Signed-off-by: Marek Vasut Link: https://patch.msgid.link/20260316221728.160139-1-marex@nabladev.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/xilinx/xilinx_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index ba5850ca39ddd..e2adc33631ca3 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2862,7 +2862,7 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev, return -EINVAL; } - xdev->common.directions |= chan->direction; + xdev->common.directions |= BIT(chan->direction); /* Request the interrupt */ chan->irq = irq_of_parse_and_map(node, chan->tdest); -- 2.53.0