Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pci_set_dma_mask and pci_set_consistent_dma_mask depreciation #283

Closed
pswindells77 opened this issue Apr 9, 2023 · 2 comments
Closed

pci_set_dma_mask and pci_set_consistent_dma_mask depreciation #283

pswindells77 opened this issue Apr 9, 2023 · 2 comments

Comments

@pswindells77
Copy link

Hi, linked to the issue raised previously, issue #282.
I noticed that pci_set_dma_mask and pci_set_consistent_dma_mask have recently been depreciated.
Can anybody help with a workaround? I am pretty confident this is the cause of issue #282.
Thanks.

@pswindells77
Copy link
Author

Camera now working again. I replaced call on line 399 with
// pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(dev_priv->dma_mask));
dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(dev_priv->dma_mask));

@patjak
Copy link
Owner

patjak commented May 9, 2023

This should have been fixed in 75a2a58
Perhaps you have a distro kernel with the dma_set_coherent_mask() change backported but still reports as a pre v5.18 kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants