linux-stable/drivers/staging
Manohar Vanga 5d6abf379d staging: vme: make match() driver specific to improve non-VME64x support
For jumper based boards (non VME64x), there is no mechanism
for detecting the card that is plugged into a specific slot. This
leads to issues in non-autodiscovery crates/cards when a card is
plugged into a slot that is "claimed" by a different driver. In
reality, there is no problem, but the driver rejects such a
configuration due to its dependence on the concept of slots.

This patch makes the concept of slots less critical and pushes the
driver match() to individual drivers (similar to what happens in the
ISA bus in driver/base/isa.c). This allows drivers to register the
number of devices that they expect without any restrictions. Devices
in this new model are now formatted as $driver_name-$bus_id.$device_id
(as compared to the earlier vme-$bus_id.$slot_number).

This model also makes the device model more logical as devices
are only registered when they actually exist whereas earlier,
a set of devices were being created automatically regardless of
them actually being there.

Another change introduced in this patch is that devices are now created
within the VME driver structure rather than in the VME bridge structure.
This way, things don't go haywire if the bridge driver is removed while
a driver is using it.

Signed-off-by: Manohar Vanga <manohar.vanga@cern.ch>
Cc: Martyn Welch <martyn.welch@ge.com>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-17 15:43:13 -07:00
..
altera-stapl staging: Add module.h to drivers/staging users 2011-08-25 17:01:20 -07:00
asus_oled
bcm Staging: bcm: Fix coding style issues in InterfaceMisc.c 2011-10-11 10:18:58 -06:00
comedi Staging: comedi: fix brace coding style issue in ni_atmio.c 2011-10-17 15:11:30 -07:00
cptm1217
crystalhd staging: crystalhd/bc_dts_types.h: typedef cleanup 2011-09-16 20:12:56 +02:00
cx25821 Staging: cx25821: cx25821-video.h: Fix long lines 2011-09-16 20:45:46 +02:00
cxd2099 drivers/staging: do not use EXTRA_CFLAGS 2011-08-23 15:24:46 -07:00
cxt1e1 staging: irq: Remove IRQF_DISABLED 2011-09-16 20:09:38 +02:00
dt3155v4l Staging: dt3155v4l: silence a compiler warning 2011-10-11 10:01:47 -06:00
easycap staging/easycap: kill timeval members of easycap struct 2011-10-17 15:24:10 -07:00
echo
et131x staging: drop unused Kconfig symbols 2011-10-17 15:24:48 -07:00
frontier
ft1000 staging: ft1000: dont cast void* from kmalloc() 2011-08-23 15:22:57 -07:00
gma500 staging: gma500: gtt based hardware scrolling console 2011-09-26 17:32:54 -07:00
go7007 Staging: go7007: fix braces coding style issue in wis-tw2804.c 2011-08-23 15:26:19 -07:00
hv Staging: hv: storvsc: Fix checkpatch warnings 2011-10-17 15:24:49 -07:00
iio staging:iio:dummy Add buffered reading support 2011-10-17 15:36:30 -07:00
intel_sst staging: intel_sst: fix compile error 2011-10-03 16:07:50 -07:00
keucr Staging: keucr: fix comments, braces, whitespaces coding style issue in tm6000.h 2011-08-23 14:38:45 -07:00
line6
lirc staging: irq: Remove IRQF_DISABLED 2011-09-16 20:09:38 +02:00
mei staging: mei: Organize the initialization state machine. 2011-09-26 17:26:03 -07:00
nvec staging/nvec: fix compilation error in nvec.c 2011-10-17 15:24:11 -07:00
octeon staging: octeon-ethernet: Add missing #includes. 2011-08-23 15:35:16 -07:00
olpc_dcon staging: Add module.h to drivers/staging users 2011-08-25 17:01:20 -07:00
panel staging: panel: Fixed checkpatch warning about simple_strtoul() 2011-09-06 16:49:29 -07:00
phison
pohmelfs staging: drop unused Kconfig symbols 2011-10-17 15:24:48 -07:00
quatech_usb2 staging: quatech_usb2: Potential lost wakeup scenario in TIOCMIWAIT 2011-09-19 10:46:18 -07:00
quickstart
rtl8187se drivers/staging: do not use EXTRA_CFLAGS 2011-08-23 15:24:46 -07:00
rtl8192e Staging: rtl8192e: off by one in rtl8192_get_channel_map() 2011-09-26 17:26:03 -07:00
rtl8192u drivers/staging/rtl8192u: Don't pass huge struct by value 2011-08-23 14:46:05 -07:00
rtl8712 staging: r8712u: Fix possible out-of-bounds index with TKIP and AES keys 2011-10-11 10:02:49 -06:00
rts5139 staging: fix rts5139 depends & build 2011-08-26 11:35:54 -07:00
rts_pstor drivers: staging: rts_pstor fixed checkpatch warnings 2011-10-17 15:17:17 -07:00
sbe-2t3e3
sep staging: sep: call to sep_ioctl() may leave driver in unusable state 2011-09-06 16:49:29 -07:00
serqt_usb2 staging: serqt_usb2: remove ssu100 from supported devices 2011-08-29 11:20:11 -07:00
slicoss
sm7xx staging: Add module.h to drivers/staging users 2011-08-25 17:01:20 -07:00
solo6x10
speakup
spectra staging: spectra: Use memdup_user 2011-08-23 15:22:58 -07:00
ste_rmi4 staging: Add module.h to drivers/staging users 2011-08-25 17:01:20 -07:00
tidspbridge Merge 3.1-rc4 into staging-next 2011-08-29 08:47:46 -07:00
tm6000
usbip staging: usbip: fix up api changes that broke windows clients 2011-09-19 10:45:03 -07:00
vme staging: vme: make match() driver specific to improve non-VME64x support 2011-10-17 15:43:13 -07:00
vt6655 Staging: vt6655-6: potential info leak in private_ioctl() 2011-09-26 17:43:44 -07:00
vt6656 Staging: vt6656: potential memory corruption 2011-09-29 17:34:50 -07:00
winbond Staging : winbond : fix coding style issue in phy_calibration.c 2011-08-23 15:24:46 -07:00
wlags49_h2 staging: wlags49_h2: Fixup SIOCSIWGENIE 2011-10-17 15:22:38 -07:00
wlags49_h25 staging: wlags49_h2: Enable WPA in the HCF 2011-10-17 15:22:36 -07:00
wlan-ng
xgifb staging: xgifb: clean up 2nd display state 2011-10-12 09:51:49 -06:00
zcache staging: zcache: remove zcache_direct_reclaim_lock 2011-10-17 15:24:11 -07:00
zram zram: Fix sparse warnings 2011-09-09 16:09:50 -07:00
Kconfig staging: brcm80211: remove brcm80211 driver from the staging tree 2011-10-12 09:21:18 -06:00
Makefile staging: brcm80211: remove brcm80211 driver from the staging tree 2011-10-12 09:21:18 -06:00
staging.c