* the same or smaller than the streaming DMA mask. */ static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask) { int rc = dma_set_mask(dev, mask); if (rc == 0) dma_set_coherent_mask(dev, mask); return rc; }...
Add check for dma_set_mask() and return the error if it fails. Fixes: 1a6f854 ("spi: cadence-quadspi: Add Xilinx Versal external DMA support") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Link: https://lore.kernel.org/r/20230606093859.27818-1-jiasheng@iscas.ac.cn Signed-...
"xlnx,versal-ospi-1.0")) { - dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); + if (ret) + goto probe_reset_failed; if (cqspi->master_ref_clk_hz >= TAP_GRAN_SEL_MIN_FREQ) writel(0x1, cqspi->iobase + CQSPI_REG...
zorro: Set up z->dev.dma_mask for the DMA API Browse files [ Upstream commit 55496d3 ] The generic DMA API uses dev->dma_mask to check the DMA addressable memory bitmask, and warns if no mask is set or even allocated. Set z->dev.dma_coherent_mask on Zorro bus scan, and mak...
+ err = dma_set_mask_and_coherent(tegra->dev, DMA_BIT_MASK(40)); + if (err < 0) { + dev_err(&pdev->dev, "failed to set DMA mask: %d\n", err); + goto put_rpm; + } + err = tegra_xusb_load_firmware(tegra);
dma_set_mask_and_coherent出错 dma_setcurrdatacounter dma-1 error fatal error dma error dma-1 error dma_getitstatus dma setup auto-activate unable to set coherent dma mask dma test not applicable怎么办 dma_getcurrentmemorytarget dma timeout...
dev->mt76.dma_dev=wed->dev; ret=dma_set_mask(wed->dev,DMA_BIT_MASK(32)); if(ret) returnret; ret=dma_set_coherent_mask(wed->dev,DMA_BIT_MASK(32)); if(ret) returnret; return1; #else return0; Expand Down 6 changes: 5 additions & 1 deletion6mt7996/pci.c ...
[PATCH v2 10/23] ARM: davinci: Add set dma_mask to eDMA devices The upcoming change to merge the arch/arm/common/edma.c into drivers/dma/edma.c will need this change when booting daVinci devices in no DT mode.
Initialize coherent_dma_mask when creating SM501 subdevices to fix the problem. Fixes: b6d6454 ("mfd: SM501 core driver") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Lee Jones <lee.jones@linaro.org>groeck authored and Lee Jones committed Aug 16, 2018 1 ...
The dma_mask and coherent_dma_mask values were never set. This prevented the media omap_vout driver from loading successfully. Tested on a Pandaboard and Beagle XM board. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>