[PATCH] 2.6.x /dev/pg0 is always busy

From: Tero Roponen
Date: Thu Oct 28 2004 - 11:42:38 EST


Hi,

Without this patch my HP CD-Writer doesn't work.
With this applied everything is fine.

Signed-off-by: Tero Roponen <teanropo@xxxxxxxxx>


--- linux-2.6.10-rc1/drivers/block/paride/pg.c.orig 2004-10-28 18:49:50.431556152 +0300
+++ linux-2.6.10-rc1/drivers/block/paride/pg.c 2004-10-28 18:50:13.742012424 +0300
@@ -262,7 +262,7 @@ static void pg_init_units(void)
int *parm = *drives[unit];
struct pg *dev = &devices[unit];
dev->pi = &dev->pia;
- set_bit(0, &dev->access);
+ clear_bit(0, &dev->access);
dev->busy = 0;
dev->present = 0;
dev->bufptr = NULL;

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