Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
Browse files Browse the repository at this point in the history
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (27 commits)
  Staging: sep: return -EFAULT on copy_to_user errors
  Staging: rc2860: return -EFAULT on copy_to_user errors
  Staging: Eliminate a NULL pointer dereference
  staging: Use GFP_ATOMIC when a lock is held
  Staging: comedi - correct parameter gainlkup for DAQCard-6024E in driver ni_mio_cs.c
  Staging: comedi: fixing ni_labpc to mite dependancy
  Staging: wlags49_h2, wlags49_h25: fixed Kconfig dependencies
  Staging: phison: depends on ATA_BMDMA
  Staging: iio-utils: fix memory overflow for dynamically allocateded memory to hold filename
  Staging: adis16255: add proper section markings to hotplug funcs
  Staging: adis16255: fix typo in Kconfig
  Staging: batman-adv: Don't allocate icmp packet with GFP_KERNEL
  Staging: batman-adv: Don't call free_netdev twice
  Staging: batman-adv: Call unregister_netdev on failures to get rtnl lock
  Staging: batman-adv: fix rogue packets on shutdown
  Staging: add MSM framebuffer driver
  Staging: comedi: fixing ni_tio to mite PCI dependancy
  Staging: comedi: fix 8255 and DAS08 Kconfig dependancies.
  Staging: comedi: For COMEDI_BUFINFO, check access to command
  Staging: comedi: COMEDI_BUFINFO with no async - report no bytes read or written
  ...
  • Loading branch information
torvalds committed Jun 4, 2010
2 parents f9196e7 + 640f7dc commit a094c0a
Show file tree
Hide file tree
Showing 135 changed files with 59,831 additions and 113 deletions.
6 changes: 6 additions & 0 deletions drivers/staging/Kconfig
Expand Up @@ -141,5 +141,11 @@ source "drivers/staging/ti-st/Kconfig"

source "drivers/staging/adis16255/Kconfig"

source "drivers/staging/xgifb/Kconfig"

source "drivers/staging/mrst-touchscreen/Kconfig"

source "drivers/staging/msm/Kconfig"

endif # !STAGING_EXCLUDE_BUILD
endif # STAGING
3 changes: 3 additions & 0 deletions drivers/staging/Makefile
Expand Up @@ -51,3 +51,6 @@ obj-$(CONFIG_CRYSTALHD) += crystalhd/
obj-$(CONFIG_CXT1E1) += cxt1e1/
obj-$(CONFIG_TI_ST) += ti-st/
obj-$(CONFIG_ADIS16255) += adis16255/
obj-$(CONFIG_FB_XGI) += xgifb/
obj-$(CONFIG_TOUCHSCREEN_MRSTOUCH) += mrst-touchscreen/
obj-$(CONFIG_MSM_STAGING) += msm/
2 changes: 1 addition & 1 deletion drivers/staging/adis16255/Kconfig
@@ -1,5 +1,5 @@
config ADIS16255
tristate "Ananlog Devices ADIS16250/16255"
tristate "Analog Devices ADIS16250/16255"
depends on SPI && SYSFS
---help---
If you say yes here you get support for the Analog Devices
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/adis16255/adis16255.c
Expand Up @@ -361,7 +361,7 @@ static int spi_adis16255_bringup(struct spi_adis16255_data *spiadis)

/*-------------------------------------------------------------------------*/

static int spi_adis16255_probe(struct spi_device *spi)
static int __devinit spi_adis16255_probe(struct spi_device *spi)
{

struct adis16255_init_data *init_data = spi->dev.platform_data;
Expand Down Expand Up @@ -421,7 +421,7 @@ static int spi_adis16255_probe(struct spi_device *spi)
return status;
}

static int spi_adis16255_remove(struct spi_device *spi)
static int __devexit spi_adis16255_remove(struct spi_device *spi)
{
struct spi_adis16255_data *spiadis = dev_get_drvdata(&spi->dev);

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/batman-adv/device.c
Expand Up @@ -309,7 +309,7 @@ void bat_device_add_packet(struct device_client *device_client,
struct device_packet *device_packet;
unsigned long flags;

device_packet = kmalloc(sizeof(struct device_packet), GFP_KERNEL);
device_packet = kmalloc(sizeof(struct device_packet), GFP_ATOMIC);

if (!device_packet)
return;
Expand Down
5 changes: 4 additions & 1 deletion drivers/staging/batman-adv/main.c
Expand Up @@ -127,7 +127,10 @@ int init_module(void)
return 0;

unreg_soft_device:
unregister_netdevice(soft_device);
unregister_netdev(soft_device);
soft_device = NULL;
return -ENOMEM;

free_soft_device:
free_netdev(soft_device);
soft_device = NULL;
Expand Down
24 changes: 15 additions & 9 deletions drivers/staging/batman-adv/send.c
Expand Up @@ -440,6 +440,9 @@ void send_outstanding_bcast_packet(struct work_struct *work)
hlist_del(&forw_packet->list);
spin_unlock_irqrestore(&forw_bcast_list_lock, flags);

if (atomic_read(&module_state) == MODULE_DEACTIVATING)
goto out;

/* rebroadcast packet */
rcu_read_lock();
list_for_each_entry_rcu(batman_if, &if_list, list) {
Expand All @@ -453,15 +456,15 @@ void send_outstanding_bcast_packet(struct work_struct *work)

forw_packet->num_packets++;

/* if we still have some more bcasts to send and we are not shutting
* down */
if ((forw_packet->num_packets < 3) &&
(atomic_read(&module_state) != MODULE_DEACTIVATING))
/* if we still have some more bcasts to send */
if (forw_packet->num_packets < 3) {
_add_bcast_packet_to_list(forw_packet, ((5 * HZ) / 1000));
else {
forw_packet_free(forw_packet);
atomic_inc(&bcast_queue_left);
return;
}

out:
forw_packet_free(forw_packet);
atomic_inc(&bcast_queue_left);
}

void send_outstanding_bat_packet(struct work_struct *work)
Expand All @@ -476,17 +479,20 @@ void send_outstanding_bat_packet(struct work_struct *work)
hlist_del(&forw_packet->list);
spin_unlock_irqrestore(&forw_bat_list_lock, flags);

if (atomic_read(&module_state) == MODULE_DEACTIVATING)
goto out;

send_packet(forw_packet);

/**
* we have to have at least one packet in the queue
* to determine the queues wake up time unless we are
* shutting down
*/
if ((forw_packet->own) &&
(atomic_read(&module_state) != MODULE_DEACTIVATING))
if (forw_packet->own)
schedule_own_packet(forw_packet->if_incoming);

out:
/* don't count own packet */
if (!forw_packet->own)
atomic_inc(&batman_queue_left);
Expand Down
81 changes: 59 additions & 22 deletions drivers/staging/comedi/Kconfig
Expand Up @@ -100,15 +100,6 @@ menuconfig COMEDI_ISA_DRIVERS

if COMEDI_ISA_DRIVERS && ISA

config COMEDI_8255
tristate "Generic 8255 support"
default N
---help---
Enable generic 8255 support.

To compile this driver as a module, choose M here: the module will be
called 8255.

config COMEDI_ACL7225B
tristate "ADlink NuDAQ ACL-7225b and compatibles support"
default N
Expand All @@ -130,6 +121,7 @@ config COMEDI_PCL711

config COMEDI_PCL724
tristate "Advantech PCL-722/724/731 and ADlink ACL-7122/7124/PET-48DIO"
select COMEDI_8255
default N
---help---
Enable support for Advantech PCL-724, PCL-722, PCL-731 and
Expand Down Expand Up @@ -198,6 +190,7 @@ config COMEDI_PCL818

config COMEDI_PCM3724
tristate "Advantech PCM-3724 PC/104 card support"
select COMEDI_8255
default N
---help---
Enable support for Advantech PCM-3724 PC/104 cards.
Expand Down Expand Up @@ -232,18 +225,9 @@ config COMEDI_RTI802
To compile this driver as a module, choose M here: the module will be
called rti802.

config COMEDI_DAS08
tristate "DAS-08 compatible ISA, PC/104 and PCMCIA card support"
default N
---help---
Enable support for Keithley Metrabyte/ComputerBoards DAS08
and compatible ISA and PC/104 cards

To compile this driver as a module, choose M here: the module will be
called das08.

config COMEDI_DAS16M1
tristate "MeasurementComputing CIO-DAS16/M1DAS-16 ISA card support"
select COMEDI_8255
select COMEDI_FC
default N
---help---
Expand All @@ -254,6 +238,7 @@ config COMEDI_DAS16M1

config COMEDI_DAS16
tristate "DAS-16 compatible ISA and PC/104 card support"
select COMEDI_8255
select COMEDI_FC
default N
---help---
Expand Down Expand Up @@ -385,6 +370,7 @@ config COMEDI_FL512

config COMEDI_AIO_AIO12_8
tristate "I/O Products PC/104 AIO12-8 Analog I/O Board support"
select COMEDI_8255
default N
---help---
Enable support for I/O Products PC/104 AIO12-8 Analog I/O Board
Expand Down Expand Up @@ -466,6 +452,7 @@ config COMEDI_NI_ATMIO
config COMEDI_NI_ATMIO16D
tristate "NI AT-MIO16/AT-MIO16D series ISA-PNP card support"
depends on ISAPNP && COMEDI_NI_COMMON
select COMEDI_8255
default N
---help---
Enable support for National Instruments AT-MIO16/AT-MIO16D cards.
Expand Down Expand Up @@ -667,6 +654,7 @@ config COMEDI_ADDI_APCI_3XXX

config COMEDI_ADL_PCI6208
tristate "ADLink PCI-6208A support"
select COMEDI_8255
default N
---help---
Enable support for ADLink PCI-6208A cards
Expand Down Expand Up @@ -751,6 +739,7 @@ config COMEDI_ADV_PCI1723

config COMEDI_ADV_PCI_DIO
tristate "Advantech PCI DIO card support"
select COMEDI_8255
default N
---help---
Enable support for Advantech PCI DIO cards
Expand All @@ -762,6 +751,7 @@ config COMEDI_ADV_PCI_DIO

config COMEDI_AMPLC_DIO200
tristate "Amplicon PC272E and PCI272 DIO board support"
select COMEDI_8255
default N
---help---
Enable support for Amplicon PC272E and PCI272 DIO boards
Expand All @@ -771,6 +761,7 @@ config COMEDI_AMPLC_DIO200

config COMEDI_AMPLC_PC236
tristate "Amplicon PC36AT and PCI236 DIO board support"
select COMEDI_8255
default N
---help---
Enable support for Amplicon PC36AT and PCI236 DIO boards
Expand Down Expand Up @@ -799,6 +790,7 @@ config COMEDI_AMPLC_PCI224

config COMEDI_AMPLC_PCI230
tristate "Amplicon PCI230 and PCI260 support"
select COMEDI_8255
default N
---help---
Enable support for Amplicon PCI230 and PCI260 Multifunction I/O
Expand Down Expand Up @@ -869,6 +861,7 @@ config COMEDI_II_PCI20KC

config COMEDI_DAQBOARD2000
tristate "IOtech DAQboard/2000 support"
select COMEDI_8255
default N
---help---
Enable support for the IOtech DAQboard/2000
Expand Down Expand Up @@ -896,6 +889,7 @@ config COMEDI_KE_COUNTER

config COMEDI_CB_PCIDAS64
tristate "MeasurementComputing PCI-DAS 64xx, 60xx, and 4020 support"
select COMEDI_8255
select COMEDI_FC
default N
---help---
Expand All @@ -907,6 +901,7 @@ config COMEDI_CB_PCIDAS64

config COMEDI_CB_PCIDAS
tristate "MeasurementComputing PCI-DAS support"
select COMEDI_8255
select COMEDI_FC
default N
---help---
Expand All @@ -920,6 +915,7 @@ config COMEDI_CB_PCIDAS

config COMEDI_CB_PCIDDA
tristate "MeasurementComputing PCI-DDA series support"
select COMEDI_8255
default N
---help---
Enable support for ComputerBoards/MeasurementComputing PCI-DDA
Expand All @@ -931,6 +927,7 @@ config COMEDI_CB_PCIDDA

config COMEDI_CB_PCIDIO
tristate "MeasurementComputing PCI-DIO series support"
select COMEDI_8255
default N
---help---
Enable support for ComputerBoards/MeasurementComputing PCI-DIO series
Expand All @@ -941,6 +938,7 @@ config COMEDI_CB_PCIDIO

config COMEDI_CB_PCIMDAS
tristate "MeasurementComputing PCIM-DAS1602/16 support"
select COMEDI_8255
default N
---help---
Enable support for ComputerBoards/MeasurementComputing PCI Migration
Expand All @@ -951,6 +949,7 @@ config COMEDI_CB_PCIMDAS

config COMEDI_CB_PCIMDDA
tristate "MeasurementComputing PCIM-DDA06-16 support"
select COMEDI_8255
default N
---help---
Enable support for ComputerBoards/MeasurementComputing PCIM-DDA06-16
Expand Down Expand Up @@ -1026,6 +1025,7 @@ config COMEDI_NI_670X
config COMEDI_NI_PCIDIO
tristate "NI PCI-DIO32HS, PCI-DIO96, PCI-6533, PCI-6503 support"
depends on COMEDI_MITE
select COMEDI_8255
default N
---help---
Enable support for National Instruments PCI-DIO-32HS, PXI-6533,
Expand Down Expand Up @@ -1058,6 +1058,7 @@ config COMEDI_NI_PCIMIO

config COMEDI_RTD520
tristate "Real Time Devices PCI4520/DM7520 support"
select COMEDI_8255
default N
---help---
Enable support for Real Time Devices PCI4520/DM7520
Expand Down Expand Up @@ -1097,7 +1098,7 @@ endif # COMEDI_PCI_DRIVERS

menuconfig COMEDI_PCMCIA_DRIVERS
tristate "Comedi PCMCIA drivers"
depends on COMEDI && PCMCIA && PCCARD
depends on COMEDI && (PCMCIA || PCCARD)
default N
---help---
Enable comedi PCMCIA and PCCARD drivers to be built
Expand Down Expand Up @@ -1142,6 +1143,7 @@ config COMEDI_NI_DAQ_700_CS
config COMEDI_NI_DAQ_DIO24_CS
tristate "NI DAQ-Card DIO-24 PCMCIA support"
depends on COMEDI_NI_COMMON
select COMEDI_8255
default N
---help---
Enable support for the National Instruments PCMCIA DAQ-Card DIO-24
Expand All @@ -1162,8 +1164,8 @@ config COMEDI_NI_LABPC_CS
config COMEDI_NI_MIO_CS
tristate "NI DAQCard E series PCMCIA support"
depends on COMEDI_NI_TIO && COMEDI_NI_COMMON
default N
select COMEDI_FC
default N
---help---
Enable support for the National Instruments PCMCIA DAQCard E series
DAQCard-ai-16xe-50, DAQCard-ai-16e-4, DAQCard-6062E, DAQCard-6024E
Expand Down Expand Up @@ -1265,7 +1267,8 @@ config COMEDI_MITE

config COMEDI_NI_TIO
tristate "NI general purpose counter support"
select COMEDI_MITE
depends on COMEDI_MITE
select COMEDI_8255
default N
---help---
Enable support for National Instruments general purpose counters.
Expand All @@ -1278,6 +1281,8 @@ config COMEDI_NI_TIO

config COMEDI_NI_LABPC
tristate "NI Lab-PC and compatibles ISA and PCI support"
depends on COMEDI_MITE
select COMEDI_8255
select COMEDI_FC
default N
---help---
Expand All @@ -1291,8 +1296,40 @@ config COMEDI_NI_LABPC

endif # COMEDI_NI_COMMON

config COMEDI_8255
tristate "Generic 8255 support"
depends on COMEDI
default N
---help---
Enable generic 8255 support.

You should enable compilation this driver if you plan to use a board
that has an 8255 chip. For multifunction boards, the main driver will
configure the 8255 subdevice automatically.

Note that most PCI 8255 boards do NOT work with this driver, and
need a separate driver as a wrapper.

To compile this driver as a module, choose M here: the module will be
called 8255.

config COMEDI_DAS08
tristate "DAS-08 compatible support"
depends on COMEDI
select COMEDI_8255
default N
---help---
Enable support for DAS08 and compatible ISA, PC/104 and PCI cards.

Note that PCMCIA DAS08 cards are not directly supported by this
driver, and need a separate driver as a wrapper.

To compile this driver as a module, choose M here: the module will be
called das08.

config COMEDI_FC
tristate "Comedi shared functions for low-level driver support"
depends on COMEDI
default N
---help---
Enable support for shared functions for low-level drivers.
Expand Down

0 comments on commit a094c0a

Please sign in to comment.