]> git.hungrycats.org Git - linux/commit
[PATCH] fix cdrom autoclose
authorStas Sergeev <stsp@aknet.ru>
Sat, 8 Jan 2005 05:41:19 +0000 (21:41 -0800)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 8 Jan 2005 05:41:19 +0000 (21:41 -0800)
commitb2abed6ae9d1d484748c062e4b407e9ce3ea9686
treeb197be2a56b5cf1c059ecbeb71852d141761f421
parent25620d2c7f50120e7b5f7c56d56938e56e47e4ea
[PATCH] fix cdrom autoclose

The attached patch fixes the CD-ROM autoclose.  It is broken in recent
kernels for CD-ROMs that do not properly report that the tray is opened.
Now on such a drives the kernel will do one close attempt and check for the
disc again.  This is how it used to work in the past.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
Acked-by: Alexander Kern <alex.kern@gmx.de>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/cdrom.c
drivers/ide/ide-cd.c