From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,f314f242f1b1a5a2,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-08-03 17:44:22 PST Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!rpi!batcomputer!bounce-bounce From: Corey Minyard Newsgroups: comp.os.linux.announce Subject: Yet another CDU31A patch Followup-To: comp.os.linux Date: 3 Aug 1993 20:32:56 -0400 Organization: None Sender: mdw@TC.Cornell.EDU Message-ID: <23n03o$bs0@theory.TC.Cornell.EDU> Reply-To: Corey Minyard NNTP-Posting-Host: theory.tc.cornell.edu Keywords: CDU31a, patch, fixes, CD-ROM driver 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