]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] IDE CD reports current speed
authorEric Piel <Eric.Piel@tremplin-utc.net>
Thu, 23 Jun 2005 07:10:29 +0000 (00:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:35 +0000 (09:45 -0700)
commit9235e68be8bf8974b65a9bf733c9d12a52307839
tree6d31812e14dcbfab9b6a6d7c11b3dade004fd8a5
parent451512f3aed64573e912e68c94f240fec0e44438
[PATCH] IDE CD reports current speed

The current ide-cd driver reports the CDROM speed (as found in
/proc/sys/dev/cdrom/info) as the current speed when loading the driver.
Changing the speed of the cdrom drive (by "eject -x" for instance) doesn't
update the speed reported by the kernel.  Updating the info could be
valuable for the user as it's the only way to know if the drive accepted
the request or discarded it.  It could even be used to list all the
available speeds of the drive.

The attached patch modifies the ide-cd driver so that after every speed
change request the new speed is updated.  Please note that the actual
modification is very little but I had to touch quite a few lines in order
to avoid to pre-declare the sub-functions.

Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/ide-cd.c