Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* Yet another CDU31A patch
@ 1993-08-04  0:32 Corey Minyard
  0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 1993-08-04  0:32 UTC (permalink / raw)


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: linux-announce@tc.cornell.edu


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-08-04  0:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-04  0:32 Yet another CDU31A patch Corey Minyard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox