From nobody Tue Apr 7 02:34:29 2026 Received: from mx.nabladev.com (mx.nabladev.com [178.251.229.89]) (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 7268E346FA9; Mon, 16 Mar 2026 22:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.251.229.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773699457; cv=none; b=nZVrlcuEYkObBEbWuLIpY4y5LBhe7GcIEkdAVQz0OaZ6tfqbDx88hNqvN6vIN4Ec/v615IlHoUpivuCjCXlEj6fXdCGWELToAp7vUrsUOvnF8CXe6cjNsSoWDhzBqol1y2ulv/mOKzsxu++7UsOVldYZF00vk9wPbFmJ/UanK28= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773699457; c=relaxed/simple; bh=TLhMzbRMsBdz7fbo9zHvOHiGQFpvgqAgQXjGEonZfLY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Mn7cyYkFJNHD2jJgbBXml95ktoJf57DRyzxGet0AG6pbeF5bOx8Qnu+/0JJKYEaTXYVRSZvkokkNStQPvKOc2vz7ANP4mI9xvwSCHnpSBqQDF6ijaJ98JjsfPxH2UGveU2Sp9horJ1AJLCKipLVSIk91ihxmLdCcAgvlYr8eSjc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nabladev.com; spf=pass smtp.mailfrom=nabladev.com; dkim=pass (2048-bit key) header.d=nabladev.com header.i=@nabladev.com header.b=L27GwRyb; arc=none smtp.client-ip=178.251.229.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nabladev.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nabladev.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nabladev.com header.i=@nabladev.com header.b="L27GwRyb" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A2BDB10D588; Mon, 16 Mar 2026 23:17:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nabladev.com; s=dkim; t=1773699452; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=pW+gaXWnu4rY+78vLjdac4WvIiFC+ddEjlcgIq0JPlo=; b=L27GwRybH/qL7GbagjOIdGeFJZz4zheAGeJ5G9wKjx/SPDdzmDESFyDQOyqwiWOtXzIcz7 iLw2EeY8eRP9AlqLWe5Hd1haenZ3l7hK4I31WdfVaQXzXYj9OF/RFykEY0pYA5/mJuctTl TtQlJclIdtT7QwzZYgvHUQBWs6ZoJPHXavQANHeEE5hvWG2kdODiZRg2TobZoIP6HA+tZb o9dwKDh6xk2spzqTXFpM0yRTn98ZKP3H0BVGUnG9S4eIDXUQ5Qpf5ExZqK7CxznkI00I6g INtonFI8jwRs8LUDolzeH5PWnIIsqm25XoTY357+gLVVXBmLmwWjK0exlWR6ow== From: Marek Vasut To: dmaengine@vger.kernel.org Cc: Marek Vasut , Michal Simek , Radhey Shyam Pandey , Rahul Navale , Sasha Levin , Suraj Gupta , Thomas Gessler , Vinod Koul , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dmaengine: xilinx: xilinx_dma: Fix dma_device directions Date: Mon, 16 Mar 2026 23:16:54 +0100 Message-ID: <20260316221728.160139-1-marex@nabladev.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" 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 --- Cc: Michal Simek Cc: Radhey Shyam Pandey Cc: Rahul Navale Cc: Sasha Levin Cc: Suraj Gupta Cc: Thomas Gessler Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- 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_dm= a.c index 7f240fdfe8bb1..6e8e348973a9e 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -3045,7 +3045,7 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_de= vice *xdev, return -EINVAL; } =20 - xdev->common.directions |=3D chan->direction; + xdev->common.directions |=3D BIT(chan->direction); =20 /* Request the interrupt */ chan->irq =3D of_irq_get(node, chan->tdest); --=20 2.51.0