-
Notifications
You must be signed in to change notification settings - Fork 422
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
Make XDMA driver compatible with linux kernel >= 5.16 #216
base: master
Are you sure you want to change the base?
Conversation
You should probably condition this with the kernel version to keep backward compatibility Eaxamples available in code:
|
Hey @alonbl , unfortunately I forgot all about this and don't have a 4.13 system to test right now. Is this something you can do trivially or should i try to look into this at some point in the future when more time is available? Best regards, Sascha |
Fixed with commit 9cdc9e3 |
missing ";" at line 128 after "caio->iocb->ki_complete(caio->iocb, numbytes, -EBUSY)"
added depmod step
…ate removal of module name and obsolete iov_iter->__iov
Update cdev_sgdma.c
added compatibility for 6.1 and 6.6 kernel |
I was having trouble getting the driver to compile on my raspberry pi
with this patch its working again. adjusted caio->iocb->ki_complete call to the new function signature if compiled on kernel >= 5.16
and switched the deprecated pci_unmap_sg to the new dma_unmap_sg as well as the set_dma_mask functions