patch: gimme CD-ROM for 2.3.28

Jens Axboe (axboe@image.dk)
Sun, 14 Nov 1999 22:38:11 +0100


--3XA6nns4nE4KvaS/
Content-Type: text/plain; charset=us-ascii

Hi folks,

It seems that 2.3.28 contains an unfortunate patch for ide-cd that
disables packets commands sending data to the drive. This means that
CD audio and the DVD stuff will definately not work.

If you are seeing problems where the logs contains messages about the
drive wanting to transfer data the wrong way, please apply.

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk

--3XA6nns4nE4KvaS/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="2.3.28-idecd.diff"

--- ide-cd.c~ Sun Nov 14 21:20:09 1999 +++ ide-cd.c Sun Nov 14 21:22:39 1999 @@ -1253,20 +1253,10 @@ /* Figure out how much data to transfer. */ thislen = pc->buflen; - if (thislen < 0) thislen = -thislen; if (thislen > len) thislen = len; /* The drive wants to be written to. */ if ((ireason & 3) == 0) { - /* Check that we want to write. */ - if (pc->buflen > 0) { - printk ("%s: cdrom_pc_intr: Drive wants " - "to transfer data the wrong way!\n", - drive->name); - pc->stat = 1; - thislen = 0; - } - /* Transfer the data. */ atapi_output_bytes (drive, pc->buffer, thislen); @@ -1285,14 +1275,6 @@ /* Same drill for reading. */ else if ((ireason & 3) == 2) { - /* Check that we want to read. */ - if (pc->buflen < 0) { - printk ("%s: cdrom_pc_intr: Drive wants to " - "transfer data the wrong way!\n", - drive->name); - pc->stat = 1; - thislen = 0; - } /* Transfer the data. */ atapi_input_bytes (drive, pc->buffer, thislen);

--3XA6nns4nE4KvaS/--

- 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/