* [PATCH]trivial: add CDC_RAM to ide-cd capabilities mask
@ 2006-01-09 20:16 Andrey Borzenkov
2006-01-10 10:13 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Andrey Borzenkov @ 2006-01-09 20:16 UTC (permalink / raw)
To: linux-ide; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Add CDC-RAM to capability mask. This prevents udev incorrectly reporting RAM
capabilities for device.
Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
- ---
- --- linux-2.6.15/drivers/ide/ide-cd.c.orig 2006-01-03 06:21:10.000000000 +0300
+++ linux-2.6.15/drivers/ide/ide-cd.c 2006-01-09 00:31:32.000000000 +0300
@@ -2905,6 +2905,8 @@ static int ide_cdrom_register (ide_drive
devinfo->mask |= CDC_CLOSE_TRAY;
if (!CDROM_CONFIG_FLAGS(drive)->mo_drive)
devinfo->mask |= CDC_MO_DRIVE;
+ if (!CDROM_CONFIG_FLAGS(drive)->ram)
+ devinfo->mask |= CDC_RAM;
devinfo->disk = info->disk;
return register_cdrom(devinfo);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDwsSvR6LMutpd94wRAuyRAKDVr66aA5cGLoQAliK20dz7FbTP+wCfb8C3
qCm1Sur7eFjCh2i1J95qI68=
=i3pt
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]trivial: add CDC_RAM to ide-cd capabilities mask
2006-01-09 20:16 [PATCH]trivial: add CDC_RAM to ide-cd capabilities mask Andrey Borzenkov
@ 2006-01-10 10:13 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2006-01-10 10:13 UTC (permalink / raw)
To: Andrey Borzenkov; +Cc: linux-ide, linux-kernel
On Mon, Jan 09 2006, Andrey Borzenkov wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Add CDC-RAM to capability mask. This prevents udev incorrectly reporting RAM
> capabilities for device.
>
> Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
>
> - ---
>
> - --- linux-2.6.15/drivers/ide/ide-cd.c.orig 2006-01-03 06:21:10.000000000 +0300
> +++ linux-2.6.15/drivers/ide/ide-cd.c 2006-01-09 00:31:32.000000000 +0300
> @@ -2905,6 +2905,8 @@ static int ide_cdrom_register (ide_drive
> devinfo->mask |= CDC_CLOSE_TRAY;
> if (!CDROM_CONFIG_FLAGS(drive)->mo_drive)
> devinfo->mask |= CDC_MO_DRIVE;
> + if (!CDROM_CONFIG_FLAGS(drive)->ram)
> + devinfo->mask |= CDC_RAM;
>
> devinfo->disk = info->disk;
> return register_cdrom(devinfo);
Thanks, patch is correct.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-10 10:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-09 20:16 [PATCH]trivial: add CDC_RAM to ide-cd capabilities mask Andrey Borzenkov
2006-01-10 10:13 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).