linux/drivers/scsi/megaraid
Thomas Horsten 90a95af85f [SCSI] MegaRAID driver management char device moved to misc
The MegaRAID driver's common management module (megaraid_mm.c) creates a
char device used by the management tool "megarc" from LSI Logic (and
possibly other management tools).

In 2.6 with udev, this device doesn't get created because it is not
registered in sysfs.

I first fixed this by registering a class "megaraid_mm", but realized that
this should probably be moved to misc devices, instead of taking up a char
major.  This is because only 1 device is used, even if there are multiple
adapters - the minor is never used (the adapter info is in the ioctl block
sent to the driver, not detected based on the minor number as one might
think).  So it is a complete waste to have an entire major taken by this.

So it now uses a misc device which I named "megadev0" (the name that megarc
expects), and has a dynamic minor (previoulsy a dynamic major was used).

I have tested this on my own system with the megarc tool, and it works just
as fine as before (only now the device gets created correctly by udev).

Acked-by: "Patro, Sumant" <Sumant.Patro@lsi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-02-11 10:20:53 -06:00
..
Kconfig.megaraid
Makefile
mbox_defs.h [SCSI] megaraid: more kernel-doc fixes 2007-01-13 13:55:35 -06:00
mega_common.h [SCSI] megaraid_mbox: use mutex instead of semaphore 2007-07-14 19:10:19 -05:00
megaraid_ioctl.h [SCSI] megaraid: fix kernel-doc 2007-01-13 13:55:01 -06:00
megaraid_mbox.c drivers/scsi/: Spelling fixes 2008-02-03 17:28:22 +02:00
megaraid_mbox.h [SCSI] megaraid_mbox: use mutex instead of semaphore 2007-07-14 19:10:19 -05:00
megaraid_mm.c [SCSI] MegaRAID driver management char device moved to misc 2008-02-11 10:20:53 -06:00
megaraid_mm.h [SCSI] MegaRAID driver management char device moved to misc 2008-02-11 10:20:53 -06:00
megaraid_sas.c scsi: megaraid: trivial drop duplicate mutex.h include 2008-02-06 11:15:41 -08:00
megaraid_sas.h [SCSI] megaraid_sas: Update version and changelog 2008-01-11 18:22:44 -06:00