]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] ide-floppy: software eject not working with LS-120 drive
authorOndrej Zary <linux@rainbow-software.org>
Thu, 10 Nov 2005 05:02:07 +0000 (21:02 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Dec 2005 23:43:00 +0000 (15:43 -0800)
commit7d011b38766b255cd4473a0a523d9362bf42bee0
tree55d3ffabb6607304f5af95ac213c406ce6a9e44e
parentc8005f78cdc327544a0f4a8345cd607e2e0d1fb9
[PATCH] ide-floppy: software eject not working with LS-120 drive

The problem (eject not working on ATAPI LS-120 drive) is caused by
idefloppy_ioctl() function which *first* tries generic_ide_ioctl()
and *only* if it fails with -EINVAL, proceeds with the specific ioctls.
The generic eject command fails with something other than -EINVAL
and the specific one is never executed.

This patch fixes it by first going through the internal ioctls
and only trying generic_ide_ioctl() if none of them matches.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ide/ide-floppy.c