hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/wan/lmc/lmc_proto.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 1997-2000 LAN Media Corporation (LMC)
34 * All rights reserved. www.lanmedia.com
....@@ -12,9 +13,6 @@
1213 * David Boggs
1314 * Ron Crane
1415 * Allan Cox
15
- *
16
- * This software may be used and distributed according to the terms
17
- * of the GNU General Public License version 2, incorporated herein by reference.
1816 *
1917 * Driver for the LanMedia LMC5200, LMC5245, LMC1000, LMC1200 cards.
2018 */
....@@ -49,7 +47,6 @@
4947 // attach
5048 void lmc_proto_attach(lmc_softc_t *sc) /*FOLD00*/
5149 {
52
- lmc_trace(sc->lmc_device, "lmc_proto_attach in");
5350 if (sc->if_type == LMC_NET) {
5451 struct net_device *dev = sc->lmc_device;
5552 /*
....@@ -59,12 +56,10 @@
5956 dev->hard_header_len = 0;
6057 dev->addr_len = 0;
6158 }
62
- lmc_trace(sc->lmc_device, "lmc_proto_attach out");
6359 }
6460
6561 int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd)
6662 {
67
- lmc_trace(sc->lmc_device, "lmc_proto_ioctl");
6863 if (sc->if_type == LMC_PPP)
6964 return hdlc_ioctl(sc->lmc_device, ifr, cmd);
7065 return -EOPNOTSUPP;
....@@ -74,54 +69,38 @@
7469 {
7570 int ret = 0;
7671
77
- lmc_trace(sc->lmc_device, "lmc_proto_open in");
78
-
7972 if (sc->if_type == LMC_PPP) {
8073 ret = hdlc_open(sc->lmc_device);
8174 if (ret < 0)
8275 printk(KERN_WARNING "%s: HDLC open failed: %d\n",
8376 sc->name, ret);
8477 }
85
-
86
- lmc_trace(sc->lmc_device, "lmc_proto_open out");
8778 return ret;
8879 }
8980
9081 void lmc_proto_close(lmc_softc_t *sc)
9182 {
92
- lmc_trace(sc->lmc_device, "lmc_proto_close in");
93
-
9483 if (sc->if_type == LMC_PPP)
9584 hdlc_close(sc->lmc_device);
96
-
97
- lmc_trace(sc->lmc_device, "lmc_proto_close out");
9885 }
9986
10087 __be16 lmc_proto_type(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/
10188 {
102
- lmc_trace(sc->lmc_device, "lmc_proto_type in");
10389 switch(sc->if_type){
10490 case LMC_PPP:
10591 return hdlc_type_trans(skb, sc->lmc_device);
106
- break;
10792 case LMC_NET:
10893 return htons(ETH_P_802_2);
109
- break;
11094 case LMC_RAW: /* Packet type for skbuff kind of useless */
11195 return htons(ETH_P_802_2);
112
- break;
11396 default:
11497 printk(KERN_WARNING "%s: No protocol set for this interface, assuming 802.2 (which is wrong!!)\n", sc->name);
11598 return htons(ETH_P_802_2);
116
- break;
11799 }
118
- lmc_trace(sc->lmc_device, "lmc_proto_tye out");
119
-
120100 }
121101
122102 void lmc_proto_netif(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/
123103 {
124
- lmc_trace(sc->lmc_device, "lmc_proto_netif in");
125104 switch(sc->if_type){
126105 case LMC_PPP:
127106 case LMC_NET:
....@@ -131,5 +110,4 @@
131110 case LMC_RAW:
132111 break;
133112 }
134
- lmc_trace(sc->lmc_device, "lmc_proto_netif out");
135113 }