lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <D8EI6SI5E4PE.3GOBCNHV38K03@folker-schwesinger.de>
Date: Wed, 12 Mar 2025 19:36:09 +0100
From: "Folker Schwesinger" <dev@...ker-schwesinger.de>
To: "Vinod Koul" <vkoul@...nel.org>, "Michal Simek" <michal.simek@....com>,
 "Jernej Skrabec" <jernej.skrabec@...il.com>, "Manivannan Sadhasivam"
 <manivannan.sadhasivam@...aro.org>, "Krzysztof Kozlowski"
 <krzysztof.kozlowski@...aro.org>, Uwe Kleine-König
 <u.kleine-koenig@...libre.com>, "Marek Vasut" <marex@...x.de>
Cc: "Kedareswara rao Appana" <appanad@...inx.com>,
 <dmaengine@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
 <linux-kernel@...r.kernel.org>
Subject: [PATCH 0/1] dmaengine: xilinx_dma: Set dma_device.directions

Currently it is not possible to use the Xilinx DMA driver as a backend
for IIO drivers. Setting up IIO DMA buffers with
devm_iio_dmaengine_buffer_setup() fails because dma_get_slave_caps()
always returns -ENXIO. The reason is that the Xilinx DMA driver does not
set the directions field in struct dma_device, which is checked in
dma_get_slave_caps().

This patch fixes this issue. It basically is a partial resend of this
patch [1], modified to apply on dmaengine->next. It was discussed back
in 2018 in this thread [2].
As I'm quite new to the kernel dev process, I'm not sure if I should
have included any tags to give credit to the original patch author.

[1]: https://patchwork.kernel.org/project/linux-dmaengine/patch/1514961731-1916-2-git-send-email-appanad@xilinx.com/
[2]: https://lore.kernel.org/lkml/20180111062111.GH18649@localhost/T/

Folker Schwesinger (1):
  dmaengine: xilinx_dma: Set dma_device.directions

 drivers/dma/xilinx/xilinx_dma.c | 2 ++
 1 file changed, 2 insertions(+)


base-commit: 6565439894570a07b00dba0b739729fe6b56fba4
-- 
2.48.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ