diff options
author | Bill Durr | 2017-11-03 02:07:01 -0400 |
---|---|---|
committer | Bill Durr | 2017-11-03 02:07:01 -0400 |
commit | 06b618b0300fd57f6aa4b73b36ee6bc75c4a1f80 (patch) | |
tree | ca2f48afb1cff874026f1e106cc594272ba69b10 /0003_dev_trans_start.patch | |
download | aur-06b618b0300fd57f6aa4b73b36ee6bc75c4a1f80.tar.gz |
recreate ceton infinitv driver package, add fixes for newer kernels
Diffstat (limited to '0003_dev_trans_start.patch')
-rw-r--r-- | 0003_dev_trans_start.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/0003_dev_trans_start.patch b/0003_dev_trans_start.patch new file mode 100644 index 000000000000..fdcb514e4924 --- /dev/null +++ b/0003_dev_trans_start.patch @@ -0,0 +1,23 @@ +diff -urpN ceton_infinitv_linux_driver/ctn91xx_net.c ceton_infinitv_linux_driver-fixed/ctn91xx_net.c +--- ceton_infinitv_linux_driver/ctn91xx_net.c 2013-03-27 01:26:59.000000000 -0400 ++++ ceton_infinitv_linux_driver-fixed/ctn91xx_net.c 2017-11-03 01:20:41.041441464 -0400 +@@ -1,6 +1,7 @@ + #include "ctn91xx_net.h" + #include "ctn91xx_kal.h" + #include "ctn91xx_util.h" ++#include <linux/version.h> + + #define INCLUDE_NET_DBG 0 + #define PRINT_TRAFFIC 0 +@@ -228,7 +229,11 @@ static int ctn91xx_net_start_xmit( struc + sdump_buffer( skb->data, skb->len, "tx"); + #endif + ++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,31) + ndev->trans_start = jiffies; ++#else ++ dev_trans_start(ndev); ++#endif + ctn91xx_write8( 1, msg_base, MSG_BUFFER_MSG_AVAIL ); + + } else { |