daveriesz / ax99100

ASIX AX99100 PCIe Serial Interface Driver
2 stars 1 forks source link

Linux kernel v6.x compatibility #4

Closed jnperlin closed 1 year ago

jnperlin commented 1 year ago

Hello Dave! I had some trouble with the ax99100 driver under Kernel 6.2.0... The wrappers for the (deprecated) pci_{alloc,free}_consistent functions are gone, and the prototype for the 'set_termios' function has changed.

I switched to dma_{alloc,free}_coherent() functions with GFP_KERNEL level, since the allocations are not in IRQ handlers and shouldn't need atomic constraints. (Functions available since kernel 2.30, so I don't think there's a backward compatibility issue!)

jnperlin commented 1 year ago

thnx a bunch!

daveriesz commented 1 year ago

You bet!

On Thu, Aug 3, 2023 at 11:10 PM Juergen Perlinger @.***> wrote:

thnx a bunch!

— Reply to this email directly, view it on GitHub https://github.com/daveriesz/ax99100/pull/4#issuecomment-1665065375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2PHWQ3SOD2BZLDW6746MTXTSG5HANCNFSM6AAAAAA3CILCBE . You are receiving this because you modified the open/close state.Message ID: @.***>