xmm7360 / xmm7360-pci

PCI driver for Fibocom L850-GL modem based on Intel XMM7360 modem
402 stars 81 forks source link

fix build with kernels >= 5.18.0 #181

Closed JoelLinn closed 1 year ago

JoelLinn commented 2 years ago

The pci-dma-compat.h API has been removed since linux 7968778914e53788a01c2dee2692cab157de9ac0 The "new" api is available for about 9 years now.

Fixes #179 Although one has to blacklist iosm (or do rmmod iosm) because it otherwise reserves the xmm7360 card since 5.18. (Thanks @regenman)

roald-fs commented 1 year ago

Hello JoelLinn,

With the help of your file and an adapted workflow I was able to get the Fibocomm GL 850 running again on my Thinkpad T14S Gen1. Under Opensuse Tumbleweed, the following steps led to reproducible success:

  1. Replace the existing xmm7360.c file with your file. The compiler then ran through again.
  2. Permanently blacklist the iosm module: Create a file "50-blacklist.conf" under /etc/modprobe.d and enter "blacklist iosm" in it.
  3. Then as su in the terminal "echo "blacklist iosm" >> /etc/modprobe.d/50-blacklist.conf && mkinitrd && reboot"
  4. Reboot and run the LTE script: Perfect and thanks!