diff options
Diffstat (limited to 'drivers/cdrom/cdrom.c')
-rw-r--r-- | drivers/cdrom/cdrom.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index 66d028d30439..3105dddf59f1 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c | |||
@@ -337,6 +337,12 @@ static const char *mrw_address_space[] = { "DMA", "GAA" }; | |||
337 | /* used in the audio ioctls */ | 337 | /* used in the audio ioctls */ |
338 | #define CHECKAUDIO if ((ret=check_for_audio_disc(cdi, cdo))) return ret | 338 | #define CHECKAUDIO if ((ret=check_for_audio_disc(cdi, cdo))) return ret |
339 | 339 | ||
340 | /* | ||
341 | * Another popular OS uses 7 seconds as the hard timeout for default | ||
342 | * commands, so it is a good choice for us as well. | ||
343 | */ | ||
344 | #define CDROM_DEF_TIMEOUT (7 * HZ) | ||
345 | |||
340 | /* Not-exported routines. */ | 346 | /* Not-exported routines. */ |
341 | static int open_for_data(struct cdrom_device_info * cdi); | 347 | static int open_for_data(struct cdrom_device_info * cdi); |
342 | static int check_for_audio_disc(struct cdrom_device_info * cdi, | 348 | static int check_for_audio_disc(struct cdrom_device_info * cdi, |
@@ -1528,7 +1534,7 @@ void init_cdrom_command(struct packet_command *cgc, void *buf, int len, | |||
1528 | cgc->buffer = (char *) buf; | 1534 | cgc->buffer = (char *) buf; |
1529 | cgc->buflen = len; | 1535 | cgc->buflen = len; |
1530 | cgc->data_direction = type; | 1536 | cgc->data_direction = type; |
1531 | cgc->timeout = 5*HZ; | 1537 | cgc->timeout = CDROM_DEF_TIMEOUT; |
1532 | } | 1538 | } |
1533 | 1539 | ||
1534 | /* DVD handling */ | 1540 | /* DVD handling */ |