diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-01-28 19:12:58 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-01-28 19:12:58 -0500 |
commit | cd2169fbfb39e6fc2fb9055ed2eedaa68f53c734 (patch) | |
tree | 4f325092f9c7f22aaabb78c603e94fd0d4ff076b /drivers/atm | |
parent | f69e417033af84316c3ed7cafabd388b3ae85952 (diff) |
solos: Remove unused loopback debug stuff
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/solos-pci.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index bf59c407fec9..2ef81575378d 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c | |||
@@ -70,7 +70,6 @@ | |||
70 | 70 | ||
71 | #define RX_DMA_SIZE 2048 | 71 | #define RX_DMA_SIZE 2048 |
72 | 72 | ||
73 | static int debug = 0; | ||
74 | static int atmdebug = 0; | 73 | static int atmdebug = 0; |
75 | static int firmware_upgrade = 0; | 74 | static int firmware_upgrade = 0; |
76 | static int fpga_upgrade = 0; | 75 | static int fpga_upgrade = 0; |
@@ -133,11 +132,9 @@ MODULE_AUTHOR("Traverse Technologies <support@traverse.com.au>"); | |||
133 | MODULE_DESCRIPTION("Solos PCI driver"); | 132 | MODULE_DESCRIPTION("Solos PCI driver"); |
134 | MODULE_VERSION(VERSION); | 133 | MODULE_VERSION(VERSION); |
135 | MODULE_LICENSE("GPL"); | 134 | MODULE_LICENSE("GPL"); |
136 | MODULE_PARM_DESC(debug, "Enable Loopback"); | ||
137 | MODULE_PARM_DESC(atmdebug, "Print ATM data"); | 135 | MODULE_PARM_DESC(atmdebug, "Print ATM data"); |
138 | MODULE_PARM_DESC(firmware_upgrade, "Initiate Solos firmware upgrade"); | 136 | MODULE_PARM_DESC(firmware_upgrade, "Initiate Solos firmware upgrade"); |
139 | MODULE_PARM_DESC(fpga_upgrade, "Initiate FPGA upgrade"); | 137 | MODULE_PARM_DESC(fpga_upgrade, "Initiate FPGA upgrade"); |
140 | module_param(debug, int, 0444); | ||
141 | module_param(atmdebug, int, 0644); | 138 | module_param(atmdebug, int, 0644); |
142 | module_param(firmware_upgrade, int, 0444); | 139 | module_param(firmware_upgrade, int, 0444); |
143 | module_param(fpga_upgrade, int, 0444); | 140 | module_param(fpga_upgrade, int, 0444); |
@@ -974,26 +971,12 @@ static int fpga_tx(struct solos_card *card) | |||
974 | static int psend(struct atm_vcc *vcc, struct sk_buff *skb) | 971 | static int psend(struct atm_vcc *vcc, struct sk_buff *skb) |
975 | { | 972 | { |
976 | struct solos_card *card = vcc->dev->dev_data; | 973 | struct solos_card *card = vcc->dev->dev_data; |
977 | struct sk_buff *skb2 = NULL; | ||
978 | struct pkt_hdr *header; | 974 | struct pkt_hdr *header; |
979 | int pktlen; | 975 | int pktlen; |
980 | 976 | ||
981 | //dev_dbg(&card->dev->dev, "psend called.\n"); | 977 | //dev_dbg(&card->dev->dev, "psend called.\n"); |
982 | //dev_dbg(&card->dev->dev, "dev,vpi,vci = %d,%d,%d\n",SOLOS_CHAN(vcc->dev),vcc->vpi,vcc->vci); | 978 | //dev_dbg(&card->dev->dev, "dev,vpi,vci = %d,%d,%d\n",SOLOS_CHAN(vcc->dev),vcc->vpi,vcc->vci); |
983 | 979 | ||
984 | if (debug) { | ||
985 | skb2 = atm_alloc_charge(vcc, skb->len, GFP_ATOMIC); | ||
986 | if (skb2) { | ||
987 | memcpy(skb2->data, skb->data, skb->len); | ||
988 | skb_put(skb2, skb->len); | ||
989 | vcc->push(vcc, skb2); | ||
990 | atomic_inc(&vcc->stats->rx); | ||
991 | } | ||
992 | atomic_inc(&vcc->stats->tx); | ||
993 | solos_pop(vcc, skb); | ||
994 | return 0; | ||
995 | } | ||
996 | |||
997 | pktlen = skb->len; | 980 | pktlen = skb->len; |
998 | if (pktlen > (BUF_SIZE - sizeof(*header))) { | 981 | if (pktlen > (BUF_SIZE - sizeof(*header))) { |
999 | dev_warn(&card->dev->dev, "Length of PDU is too large. Dropping PDU.\n"); | 982 | dev_warn(&card->dev->dev, "Length of PDU is too large. Dropping PDU.\n"); |
@@ -1052,9 +1035,6 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id) | |||
1052 | uint32_t data32; | 1035 | uint32_t data32; |
1053 | struct solos_card *card; | 1036 | struct solos_card *card; |
1054 | 1037 | ||
1055 | if (debug) | ||
1056 | return 0; | ||
1057 | |||
1058 | card = kzalloc(sizeof(*card), GFP_KERNEL); | 1038 | card = kzalloc(sizeof(*card), GFP_KERNEL); |
1059 | if (!card) | 1039 | if (!card) |
1060 | return -ENOMEM; | 1040 | return -ENOMEM; |
@@ -1256,9 +1236,6 @@ static void fpga_remove(struct pci_dev *dev) | |||
1256 | { | 1236 | { |
1257 | struct solos_card *card = pci_get_drvdata(dev); | 1237 | struct solos_card *card = pci_get_drvdata(dev); |
1258 | 1238 | ||
1259 | if (debug) | ||
1260 | return; | ||
1261 | |||
1262 | atm_remove(card); | 1239 | atm_remove(card); |
1263 | 1240 | ||
1264 | dev_vdbg(&dev->dev, "Freeing IRQ\n"); | 1241 | dev_vdbg(&dev->dev, "Freeing IRQ\n"); |