Re: SCSI timeout and reset on ncr53c8xx and DVD_AUTH ioctl

From: Christoph Martin (martin@uni-mainz.de)
Date: Sun Apr 16 2000 - 05:11:52 EST


Hi Jens,

the patch fixes the problem. DVD_AUTH is now working with ncr53c8xx.

Thanks
        Christoph

Jens Axboe writes:
> Indeed you are correct, these somehow got switched... Attached patch
> should set correct data direction.
>
> --
> * Jens Axboe <axboe@suse.de>
> * Linux CD/DVD-ROM, SuSE Labs
> * http://kernel.dk
> --- drivers/cdrom/cdrom.c~ Sun Apr 16 01:54:40 2000
> +++ drivers/cdrom/cdrom.c Sun Apr 16 01:56:40 2000
> @@ -962,7 +962,7 @@
> }
> }
> cgc->cmd[9] = cgc->buflen;
> - cgc->data_direction = CGC_DATA_WRITE;
> + cgc->data_direction = CGC_DATA_READ;
> }
>
> static void setup_send_key(struct cdrom_generic_command *cgc, unsigned agid, unsigned type)
> @@ -984,7 +984,7 @@
> }
> }
> cgc->cmd[9] = cgc->buflen;
> - cgc->data_direction = CGC_DATA_READ;
> + cgc->data_direction = CGC_DATA_WRITE;
> }
>
> static int dvd_do_auth(struct cdrom_device_info *cdi, dvd_authinfo *ai)

-
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 : Sun Apr 23 2000 - 21:00:08 EST