Ensure carrier is up on new kernels which require it
This commit is contained in:
Paul Hollinsky
2019-11-13 22:49:35 -05:00
parent d75acfa8a5
commit 6025ea1349
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -1,3 +1,6 @@
v2.0.4
Ensure carrier is up on new kernels which require it
v2.0.3
Add support for kernels 5.1+
Tested on 5.3.0 (Ubuntu 19.10)
+1 -1
View File
@@ -1,4 +1,4 @@
Version 2.0.3
Version 2.0.4
This is the kernel object portion of the Intrepid Control Systems SocketCAN support. For SocketCAN to work with Intrepid devices you will need to have this kernel object loaded on your system. Once the module is built and loaded run [icsscand](https://github.com/intrepidcs/icsscand) to turn on SocketCAN support.
+3 -1
View File
@@ -57,7 +57,7 @@
#define KO_DESC "Netdevice driver for Intrepid CAN/Ethernet devices"
#define KO_MAJOR 2
#define KO_MINOR 0
#define KO_PATCH 3
#define KO_PATCH 4
#define KO_VERSION str(KO_MAJOR) "." str(KO_MINOR) "." str(KO_PATCH)
#define KO_VERSION_INT (KO_MAJOR << 16) | (KO_MINOR << 8) | KO_PATCH
@@ -273,6 +273,7 @@ static int intrepid_netdevice_stop(struct net_device *dev)
spin_lock_bh(&ics->lock);
netif_stop_queue(dev);
netif_carrier_off(dev);
spin_unlock_bh(&ics->lock);
return 0;
@@ -281,6 +282,7 @@ static int intrepid_netdevice_stop(struct net_device *dev)
static int intrepid_netdevice_open(struct net_device *dev)
{
netif_start_queue(dev);
netif_carrier_on(dev);
return 0;
}