diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-13 13:24:43 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-13 13:24:43 -0400 |
| commit | 4a390e07fc53ce9dd615d7b788e9ecc73f87ad94 (patch) | |
| tree | 1086088a8efb55be1d2878cff8fefd1514301c15 | |
| parent | a4dc32374ed6dd56e09039ea8b7151c3a3e2307d (diff) | |
| parent | f6387184f5196242edecbb5385bcc3481fae212a (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
Staging: stlc45xx: convert config_interface to bss_info_changed, fixing a build error
Staging: comedi: s626: use subvendor:subdevice ids for SAA7146 board
Staging: prevent rtl8192su from crashing dev_ioctl in SIOCGIWNAME
Staging: prevent rtl8187se from crashing dev_ioctl() in SIOCGIWNAME
Staging: rtl8192su: convert to net_device_ops
Staging: serqt_usb2: declare qt_open static in serqt_usb2
Staging: serqt_usb2: fix qt_close parameters in serqt_usb2
Staging: comedi: jr3_pci.c: add required includes
Staging: meilhaus: add email address to TODO
Staging: rspiusb: use NULL virtual address instead of a bogus one
Staging: vt6655: compile fix
Staging: rt2870: Add USB ID for Sitecom WL-608
| -rw-r--r-- | drivers/staging/comedi/drivers/jr3_pci.c | 2 | ||||
| -rw-r--r-- | drivers/staging/comedi/drivers/s626.c | 35 | ||||
| -rw-r--r-- | drivers/staging/meilhaus/TODO | 2 | ||||
| -rw-r--r-- | drivers/staging/rspiusb/rspiusb.c | 14 | ||||
| -rw-r--r-- | drivers/staging/rt2870/rt2870.h | 1 | ||||
| -rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_softmac_wx.c | 12 | ||||
| -rw-r--r-- | drivers/staging/rtl8192su/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/staging/rtl8192su/ieee80211/ieee80211_module.c | 1 | ||||
| -rw-r--r-- | drivers/staging/rtl8192su/ieee80211/ieee80211_softmac_wx.c | 14 | ||||
| -rw-r--r-- | drivers/staging/rtl8192su/r8192U_core.c | 23 | ||||
| -rw-r--r-- | drivers/staging/rtl8192su/r8192U_pm.c | 8 | ||||
| -rw-r--r-- | drivers/staging/serqt_usb2/serqt_usb2.c | 8 | ||||
| -rw-r--r-- | drivers/staging/stlc45xx/stlc45xx.c | 27 | ||||
| -rw-r--r-- | drivers/staging/vt6655/device_main.c | 10 |
14 files changed, 80 insertions, 79 deletions
diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c index baf83c6a9412..e3c3adc282e2 100644 --- a/drivers/staging/comedi/drivers/jr3_pci.c +++ b/drivers/staging/comedi/drivers/jr3_pci.c | |||
| @@ -45,6 +45,8 @@ Devices: [JR3] PCI force sensor board (jr3_pci) | |||
| 45 | #include <linux/delay.h> | 45 | #include <linux/delay.h> |
| 46 | #include <linux/ctype.h> | 46 | #include <linux/ctype.h> |
| 47 | #include <linux/firmware.h> | 47 | #include <linux/firmware.h> |
| 48 | #include <linux/jiffies.h> | ||
| 49 | #include <linux/timer.h> | ||
| 48 | #include "comedi_pci.h" | 50 | #include "comedi_pci.h" |
| 49 | #include "jr3_pci.h" | 51 | #include "jr3_pci.h" |
| 50 | 52 | ||
diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c index 92121cf8c45c..5d9bab352c1d 100644 --- a/drivers/staging/comedi/drivers/s626.c +++ b/drivers/staging/comedi/drivers/s626.c | |||
| @@ -111,9 +111,13 @@ static const struct s626_board s626_boards[] = { | |||
| 111 | #define PCI_VENDOR_ID_S626 0x1131 | 111 | #define PCI_VENDOR_ID_S626 0x1131 |
| 112 | #define PCI_DEVICE_ID_S626 0x7146 | 112 | #define PCI_DEVICE_ID_S626 0x7146 |
| 113 | 113 | ||
| 114 | /* | ||
| 115 | * For devices with vendor:device id == 0x1131:0x7146 you must specify | ||
| 116 | * also subvendor:subdevice ids, because otherwise it will conflict with | ||
| 117 | * Philips SAA7146 media/dvb based cards. | ||
| 118 | */ | ||
| 114 | static DEFINE_PCI_DEVICE_TABLE(s626_pci_table) = { | 119 | static DEFINE_PCI_DEVICE_TABLE(s626_pci_table) = { |
| 115 | {PCI_VENDOR_ID_S626, PCI_DEVICE_ID_S626, PCI_ANY_ID, PCI_ANY_ID, 0, 0, | 120 | {PCI_VENDOR_ID_S626, PCI_DEVICE_ID_S626, 0x6000, 0x0272, 0, 0, 0}, |
| 116 | 0}, | ||
| 117 | {0} | 121 | {0} |
| 118 | }; | 122 | }; |
| 119 | 123 | ||
| @@ -499,25 +503,26 @@ static int s626_attach(struct comedi_device *dev, struct comedi_devconfig *it) | |||
| 499 | resource_size_t resourceStart; | 503 | resource_size_t resourceStart; |
| 500 | dma_addr_t appdma; | 504 | dma_addr_t appdma; |
| 501 | struct comedi_subdevice *s; | 505 | struct comedi_subdevice *s; |
| 502 | struct pci_dev *pdev; | 506 | const struct pci_device_id *ids; |
| 507 | struct pci_dev *pdev = NULL; | ||
| 503 | 508 | ||
| 504 | if (alloc_private(dev, sizeof(struct s626_private)) < 0) | 509 | if (alloc_private(dev, sizeof(struct s626_private)) < 0) |
| 505 | return -ENOMEM; | 510 | return -ENOMEM; |
| 506 | 511 | ||
| 507 | for (pdev = pci_get_device(PCI_VENDOR_ID_S626, PCI_DEVICE_ID_S626, | 512 | for (i = 0; i < (ARRAY_SIZE(s626_pci_table) - 1) && !pdev; i++) { |
| 508 | NULL); pdev != NULL; | 513 | ids = &s626_pci_table[i]; |
| 509 | pdev = pci_get_device(PCI_VENDOR_ID_S626, | 514 | do { |
| 510 | PCI_DEVICE_ID_S626, pdev)) { | 515 | pdev = pci_get_subsys(ids->vendor, ids->device, ids->subvendor, |
| 511 | if (it->options[0] || it->options[1]) { | 516 | ids->subdevice, pdev); |
| 512 | if (pdev->bus->number == it->options[0] && | 517 | |
| 513 | PCI_SLOT(pdev->devfn) == it->options[1]) { | 518 | if ((it->options[0] || it->options[1]) && pdev) { |
| 514 | /* matches requested bus/slot */ | 519 | /* matches requested bus/slot */ |
| 520 | if (pdev->bus->number == it->options[0] && | ||
| 521 | PCI_SLOT(pdev->devfn) == it->options[1]) | ||
| 522 | break; | ||
| 523 | } else | ||
| 515 | break; | 524 | break; |
| 516 | } | 525 | } while (1); |
| 517 | } else { | ||
| 518 | /* no bus/slot specified */ | ||
| 519 | break; | ||
| 520 | } | ||
| 521 | } | 526 | } |
| 522 | devpriv->pdev = pdev; | 527 | devpriv->pdev = pdev; |
| 523 | 528 | ||
diff --git a/drivers/staging/meilhaus/TODO b/drivers/staging/meilhaus/TODO index 6ec25203089c..d6ce39823de6 100644 --- a/drivers/staging/meilhaus/TODO +++ b/drivers/staging/meilhaus/TODO | |||
| @@ -7,4 +7,4 @@ TODO: | |||
| 7 | - possible comedi merge | 7 | - possible comedi merge |
| 8 | 8 | ||
| 9 | Please send cleanup patches to Greg Kroah-Hartman <greg@kroah.com> | 9 | Please send cleanup patches to Greg Kroah-Hartman <greg@kroah.com> |
| 10 | and CC: David Kiliani <mail@davidkiliani.de> | 10 | and CC: David Kiliani <mail@davidkiliani.de> and Meilhaus Support <support@meilhaus.de> |
diff --git a/drivers/staging/rspiusb/rspiusb.c b/drivers/staging/rspiusb/rspiusb.c index 1cdfe69585ea..2f8155c1968b 100644 --- a/drivers/staging/rspiusb/rspiusb.c +++ b/drivers/staging/rspiusb/rspiusb.c | |||
| @@ -444,8 +444,7 @@ static void piusb_write_bulk_callback(struct urb *urb) | |||
| 444 | __func__, status); | 444 | __func__, status); |
| 445 | 445 | ||
| 446 | pdx->pendingWrite = 0; | 446 | pdx->pendingWrite = 0; |
| 447 | usb_buffer_free(urb->dev, urb->transfer_buffer_length, | 447 | kfree(urb->transfer_buffer); |
| 448 | urb->transfer_buffer, urb->transfer_dma); | ||
| 449 | } | 448 | } |
| 450 | 449 | ||
| 451 | int piusb_output(struct ioctl_struct *io, unsigned char *uBuf, int len, | 450 | int piusb_output(struct ioctl_struct *io, unsigned char *uBuf, int len, |
| @@ -457,9 +456,7 @@ int piusb_output(struct ioctl_struct *io, unsigned char *uBuf, int len, | |||
| 457 | 456 | ||
| 458 | urb = usb_alloc_urb(0, GFP_KERNEL); | 457 | urb = usb_alloc_urb(0, GFP_KERNEL); |
| 459 | if (urb != NULL) { | 458 | if (urb != NULL) { |
| 460 | kbuf = | 459 | kbuf = kmalloc(len, GFP_KERNEL); |
| 461 | usb_buffer_alloc(pdx->udev, len, GFP_KERNEL, | ||
| 462 | &urb->transfer_dma); | ||
| 463 | if (!kbuf) { | 460 | if (!kbuf) { |
| 464 | dev_err(&pdx->udev->dev, "buffer_alloc failed\n"); | 461 | dev_err(&pdx->udev->dev, "buffer_alloc failed\n"); |
| 465 | return -ENOMEM; | 462 | return -ENOMEM; |
| @@ -470,7 +467,6 @@ int piusb_output(struct ioctl_struct *io, unsigned char *uBuf, int len, | |||
| 470 | } | 467 | } |
| 471 | usb_fill_bulk_urb(urb, pdx->udev, pdx->hEP[io->endpoint], kbuf, | 468 | usb_fill_bulk_urb(urb, pdx->udev, pdx->hEP[io->endpoint], kbuf, |
| 472 | len, piusb_write_bulk_callback, pdx); | 469 | len, piusb_write_bulk_callback, pdx); |
| 473 | urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; | ||
| 474 | err = usb_submit_urb(urb, GFP_KERNEL); | 470 | err = usb_submit_urb(urb, GFP_KERNEL); |
| 475 | if (err) { | 471 | if (err) { |
| 476 | dev_err(&pdx->udev->dev, | 472 | dev_err(&pdx->udev->dev, |
| @@ -641,7 +637,7 @@ static int MapUserBuffer(struct ioctl_struct *io, struct device_extension *pdx) | |||
| 641 | numPagesRequired = | 637 | numPagesRequired = |
| 642 | ((uaddr & ~PAGE_MASK) + count + ~PAGE_MASK) >> PAGE_SHIFT; | 638 | ((uaddr & ~PAGE_MASK) + count + ~PAGE_MASK) >> PAGE_SHIFT; |
| 643 | dbg("Number of pages needed = %d", numPagesRequired); | 639 | dbg("Number of pages needed = %d", numPagesRequired); |
| 644 | maplist_p = vmalloc(numPagesRequired * sizeof(struct page)); | 640 | maplist_p = vmalloc(numPagesRequired * sizeof(struct page *)); |
| 645 | if (!maplist_p) { | 641 | if (!maplist_p) { |
| 646 | dbg("Can't Allocate Memory for maplist_p"); | 642 | dbg("Can't Allocate Memory for maplist_p"); |
| 647 | return -ENOMEM; | 643 | return -ENOMEM; |
| @@ -712,9 +708,7 @@ static int MapUserBuffer(struct ioctl_struct *io, struct device_extension *pdx) | |||
| 712 | usb_fill_bulk_urb(pdx->PixelUrb[frameInfo][i], | 708 | usb_fill_bulk_urb(pdx->PixelUrb[frameInfo][i], |
| 713 | pdx->udev, | 709 | pdx->udev, |
| 714 | epAddr, | 710 | epAddr, |
| 715 | (dma_addr_t *) sg_dma_address(&pdx-> | 711 | NULL, // non-DMA HC? buy a better hardware |
| 716 | sgl[frameInfo] | ||
| 717 | [i]), | ||
| 718 | sg_dma_len(&pdx->sgl[frameInfo][i]), | 712 | sg_dma_len(&pdx->sgl[frameInfo][i]), |
| 719 | piusb_readPIXEL_callback, (void *)pdx); | 713 | piusb_readPIXEL_callback, (void *)pdx); |
| 720 | pdx->PixelUrb[frameInfo][i]->transfer_dma = | 714 | pdx->PixelUrb[frameInfo][i]->transfer_dma = |
diff --git a/drivers/staging/rt2870/rt2870.h b/drivers/staging/rt2870/rt2870.h index 5e5b3f2b7eb1..29e3b53e52a1 100644 --- a/drivers/staging/rt2870/rt2870.h +++ b/drivers/staging/rt2870/rt2870.h | |||
| @@ -89,6 +89,7 @@ | |||
| 89 | {USB_DEVICE(0x0DF6,0x002C)}, /* Sitecom */ \ | ||
