The logic got a little foo-bar'ed in the last patch, we should have keep
the old logic. Ie LoEj bit (2nd) must always be set, just clear it for
known non-capable of loading drives.
struct request_sense *sense)
{
struct request req;
- char loej = 0;
+ char loej = 0x02;
if (CDROM_CONFIG_FLAGS(drive)->no_eject && !ejectflag)
return -EDRIVE_CANT_DO_THIS;
cdrom_prepare_request(&req);
/* only tell drive to close tray if open, if it can do that */
- if (ejectflag && CDROM_CONFIG_FLAGS(drive)->close_tray)
- loej = 0x02;
+ if (ejectflag && !CDROM_CONFIG_FLAGS(drive)->close_tray)
+ loej = 0;
req.sense = sense;
req.cmd[0] = GPCMD_START_STOP_UNIT;