[lkml]   [1996]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectFwd: CD-ROM drive locked? (fwd)

Could the people having problems with IDE/ATAPI cdrom door locking (as well
as those not having problems) try out this patch and see if this fixes
things for them? If you try this, please let me know if it works for you,
so I can know if this should go into the kernel. I have not yet tried it,
since I am too busy right now to even breathe.

Erik B. Andersen Web:
2485 South State St. email: or
Springville, Ut 84663 phone: (801) 489-1231
--This message was written using 73% post-consumer electrons--

-----Forwarded message from (Gadi Oxman)-----

Hi Erik,

I don't know if this is the best way to solve it, but it will probably
work for most scenarios.



--- v2.1.13/linux/drivers/block/ide-cd.c Wed Nov 27 15:31:48 1996
+++ linux/drivers/block/ide-cd.c Thu Nov 28 19:55:08 1996
@@ -1217,7 +1217,7 @@
and we think that the door is presently, lock it again.
(The door was probably unlocked via an explicit
CDROMEJECT ioctl.) */
- if (CDROM_STATE_FLAGS (drive)->door_locked == 0 &&
+ if (CDROM_STATE_FLAGS (drive)->door_locked == 0 && drive->usage &&
(pc->c[0] != REQUEST_SENSE &&
pc->c[0] != START_STOP)) {

 \ /
  Last update: 2005-03-22 13:38    [W:0.036 / U:1.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site