Re: 2.2.16pre{5,7}: loss of SCSI CDROM volume control

From: Jens Axboe (axboe@suse.de)
Date: Tue Jun 06 2000 - 05:39:11 EST


On Mon, Jun 05 2000, Matthew Clarke wrote:
> Result is a non-zero return from the first cdrom_mode_sense, which causes
> an immediate return without doing anything further. Original code lines
> (reformatted for this e-mail):
>
> if ((ret = cdrom_mode_sense(cdi, &cgc, GPMODE_AUDIO_CTL_PAGE, 0)))
> return ret;
>
> New:
>
> if ((ret = cdrom_mode_sense(cdi, &cgc, GPMODE_AUDIO_CTL_PAGE, 0)))
> {
> printk( "mjcc: cdrom_mode_sense returning %d (0x%x)\n", ret, ret );
> return ret;
> }
>
> Printk shows up as:
>
> mjcc: cdrom_mode_sense returning 671088642 (0x28000002)
>
> If anyone wants to look at this before I stumble my way through
> sr_packet() and SCSI-land, feel free to ask for any more information you
> need, or to tell me where to go. :)

Could you try and add something like

        if (cgc.sense)
                printk("%02x.%02x.%02x\n", cgc.sense->sense_key, cgc.sense->asc, cgc.sense->ascq);

where it fails? Thanks.

-- 
* Jens Axboe <axboe@suse.de>
* SuSE Labs

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:24 EST