diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
commit | bcd6acd51f3d4d1ada201e9bc5c40a31d6d80c71 (patch) | |
tree | 2f6dffd2d3e4dd67355a224de7e7a960335a92fd /drivers/atm | |
parent | 11c34c7deaeeebcee342cbc35e1bb2a6711b2431 (diff) | |
parent | 3ff6a468b45b5dfeb0e903e56f4eb27d34b2437c (diff) |
Merge commit 'origin/master' into next
Conflicts:
include/linux/kvm.h
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/ambassador.c | 1 | ||||
-rw-r--r-- | drivers/atm/fore200e.c | 4 | ||||
-rw-r--r-- | drivers/atm/he.c | 2 | ||||
-rw-r--r-- | drivers/atm/solos-pci.c | 32 |
4 files changed, 23 insertions, 16 deletions
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c index 66e181345b3a..8af23411743c 100644 --- a/drivers/atm/ambassador.c +++ b/drivers/atm/ambassador.c | |||
@@ -2351,6 +2351,7 @@ static void __init amb_check_args (void) { | |||
2351 | MODULE_AUTHOR(maintainer_string); | 2351 | MODULE_AUTHOR(maintainer_string); |
2352 | MODULE_DESCRIPTION(description_string); | 2352 | MODULE_DESCRIPTION(description_string); |
2353 | MODULE_LICENSE("GPL"); | 2353 | MODULE_LICENSE("GPL"); |
2354 | MODULE_FIRMWARE("atmsar11.fw"); | ||
2354 | module_param(debug, ushort, 0644); | 2355 | module_param(debug, ushort, 0644); |
2355 | module_param(cmds, uint, 0); | 2356 | module_param(cmds, uint, 0); |
2356 | module_param(txs, uint, 0); | 2357 | module_param(txs, uint, 0); |
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index f766cc46b4c4..bc53fed89b1e 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c | |||
@@ -2906,8 +2906,8 @@ fore200e_proc_read(struct atm_dev *dev, loff_t* pos, char* page) | |||
2906 | u32 media_index = FORE200E_MEDIA_INDEX(fore200e->bus->read(&fore200e->cp_queues->media_type)); | 2906 | u32 media_index = FORE200E_MEDIA_INDEX(fore200e->bus->read(&fore200e->cp_queues->media_type)); |
2907 | u32 oc3_index; | 2907 | u32 oc3_index; |
2908 | 2908 | ||
2909 | if ((media_index < 0) || (media_index > 4)) | 2909 | if (media_index > 4) |
2910 | media_index = 5; | 2910 | media_index = 5; |
2911 | 2911 | ||
2912 | switch (fore200e->loop_mode) { | 2912 | switch (fore200e->loop_mode) { |
2913 | case ATM_LM_NONE: oc3_index = 0; | 2913 | case ATM_LM_NONE: oc3_index = 0; |
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 70667033a568..e90665876c47 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -2739,7 +2739,7 @@ he_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __user *arg) | |||
2739 | spin_lock_irqsave(&he_dev->global_lock, flags); | 2739 | spin_lock_irqsave(&he_dev->global_lock, flags); |
2740 | switch (reg.type) { | 2740 | switch (reg.type) { |
2741 | case HE_REGTYPE_PCI: | 2741 | case HE_REGTYPE_PCI: |
2742 | if (reg.addr < 0 || reg.addr >= HE_REGMAP_SIZE) { | 2742 | if (reg.addr >= HE_REGMAP_SIZE) { |
2743 | err = -EINVAL; | 2743 | err = -EINVAL; |
2744 | break; | 2744 | break; |
2745 | } | 2745 | } |
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index c5f5186d62a3..51eed679a059 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c | |||
@@ -142,6 +142,9 @@ MODULE_AUTHOR("Traverse Technologies <support@traverse.com.au>"); | |||
142 | MODULE_DESCRIPTION("Solos PCI driver"); | 142 | MODULE_DESCRIPTION("Solos PCI driver"); |
143 | MODULE_VERSION(VERSION); | 143 | MODULE_VERSION(VERSION); |
144 | MODULE_LICENSE("GPL"); | 144 | MODULE_LICENSE("GPL"); |
145 | MODULE_FIRMWARE("solos-FPGA.bin"); | ||
146 | MODULE_FIRMWARE("solos-Firmware.bin"); | ||
147 | MODULE_FIRMWARE("solos-db-FPGA.bin"); | ||
145 | MODULE_PARM_DESC(reset, "Reset Solos chips on startup"); | 148 | MODULE_PARM_DESC(reset, "Reset Solos chips on startup"); |
146 | MODULE_PARM_DESC(atmdebug, "Print ATM data"); | 149 | MODULE_PARM_DESC(atmdebug, "Print ATM data"); |
147 | MODULE_PARM_DESC(firmware_upgrade, "Initiate Solos firmware upgrade"); | 150 | MODULE_PARM_DESC(firmware_upgrade, "Initiate Solos firmware upgrade"); |
@@ -528,34 +531,37 @@ static int flash_upgrade(struct solos_card *card, int chip) | |||
528 | int numblocks = 0; | 531 | int numblocks = 0; |
529 | int offset; | 532 | int offset; |
530 | 533 | ||
531 | if (chip == 0) { | 534 | switch (chip) { |
535 | case 0: | ||
532 | fw_name = "solos-FPGA.bin"; | 536 | fw_name = "solos-FPGA.bin"; |
533 | blocksize = FPGA_BLOCK; | 537 | blocksize = FPGA_BLOCK; |
534 | } | 538 | break; |
535 | 539 | case 1: | |
536 | if (chip == 1) { | ||
537 | fw_name = "solos-Firmware.bin"; | 540 | fw_name = "solos-Firmware.bin"; |
538 | blocksize = SOLOS_BLOCK; | 541 | blocksize = SOLOS_BLOCK; |
539 | } | 542 | break; |
540 | 543 | case 2: | |
541 | if (chip == 2){ | ||
542 | if (card->fpga_version > LEGACY_BUFFERS){ | 544 | if (card->fpga_version > LEGACY_BUFFERS){ |
543 | fw_name = "solos-db-FPGA.bin"; | 545 | fw_name = "solos-db-FPGA.bin"; |
544 | blocksize = FPGA_BLOCK; | 546 | blocksize = FPGA_BLOCK; |
545 | } else { | 547 | } else { |
546 | dev_info(&card->dev->dev, "FPGA version doesn't support daughter board upgrades\n"); | 548 | dev_info(&card->dev->dev, "FPGA version doesn't support" |
549 | " daughter board upgrades\n"); | ||
547 | return -EPERM; | 550 | return -EPERM; |
548 | } | 551 | } |
549 | } | 552 | break; |
550 | 553 | case 3: | |
551 | if (chip == 3){ | ||
552 | if (card->fpga_version > LEGACY_BUFFERS){ | 554 | if (card->fpga_version > LEGACY_BUFFERS){ |
553 | fw_name = "solos-Firmware.bin"; | 555 | fw_name = "solos-Firmware.bin"; |
554 | blocksize = SOLOS_BLOCK; | 556 | blocksize = SOLOS_BLOCK; |
555 | } else { | 557 | } else { |
556 | dev_info(&card->dev->dev, "FPGA version doesn't support daughter board upgrades\n"); | 558 | dev_info(&card->dev->dev, "FPGA version doesn't support" |
557 | return -EPERM; | 559 | " daughter board upgrades\n"); |
560 | return -EPERM; | ||
558 | } | 561 | } |
562 | break; | ||
563 | default: | ||
564 | return -ENODEV; | ||
559 | } | 565 | } |
560 | 566 | ||
561 | if (request_firmware(&fw, fw_name, &card->dev->dev)) | 567 | if (request_firmware(&fw, fw_name, &card->dev->dev)) |