Subject: Yet another CDU31A patch
From: Corey Minyard <[email-masked]>
Date: 3 Aug 1993 20:32:56 -0400
Newsgroups: comp.os.linux.announce

Some more small fixes for the detection stuff for the CDU31A driver
version 0.6.  This is in addition to the one I posted a little earlier.
I must have been asleep when I made this change :-(

Corey

*** linux/include/linux/cdu31a.h.old	Mon Aug  2 19:40:13 1993
--- linux/include/linux/cdu31a.h	Mon Aug  2 19:44:36 1993
***************
*** 64,69 ****
--- 64,72 ----
  #define SONY_JIFFIES_TIMEOUT            500    /* Maximum number of times the
                                                    drive will wait/try for an
                                                    operation */
+ #define SONY_RESET_TIMEOUT              100    /* Maximum number of times the
+                                                   drive will wait/try a reset
+                                                   operation */
  #define SONY_READY_RETRIES              20000  /* How many times to retry a
                                                    spin waiting for a register
                                                    to come ready */
*** linux/kernel/blk_drv/cdu31a.c.orig	Sun Aug  1 13:32:39 1993
--- linux/kernel/blk_drv/cdu31a.c	Mon Aug  2 19:44:31 1993
***************
*** 1585,1593 ****
         * If you don't wait, the next operation will probably fail.
         */
        reset_drive();
!       retry_count = jiffies + SONY_READY_RETRIES;
        while ((retry_count > jiffies) && (!is_attention()))
        {
           sony_sleep();
        }
  
--- 1585,1593 ----
         * If you don't wait, the next operation will probably fail.
         */
        reset_drive();
!       retry_count = jiffies + SONY_RESET_TIMEOUT;
        while ((retry_count > jiffies) && (!is_attention()))
        {
           sony_sleep();
        }

-- 
Send submissions for comp.os.linux.announce to: [email-masked]