Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 27 Dec 2002 05:03:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 27 Dec 2002 05:03:40 -0500 Received: from twilight.ucw.cz ([195.39.74.230]:64179 "EHLO twilight.ucw.cz") by vger.kernel.org with ESMTP id ; Fri, 27 Dec 2002 05:03:38 -0500 Date: Fri, 27 Dec 2002 11:11:16 +0100 From: Vojtech Pavlik To: Linus Torvalds , Alan Cox , Andre Hedrick , Marcelo Tosatti , LMKL Subject: [patch] Fix for ATAPI CD/DVD-ROMs and burners with vt8235 (and other chipsets) Message-ID: <20021227111116.A2614@ucw.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5065 Lines: 157 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! Attached are two patches, one for recent 2.4 and one for 2.5, which enlarge the address setup timing for ATAPI devices. This is needed for several CD/DVD-ROMs and burners that won't work with standard timings. So far problems were reported only on vt8233a and vt8235, but I suppose other chipsets where the drivers actually program the address setup timing according to the spec can be affected. Please apply, thanks. -- Vojtech Pavlik SuSE Labs --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=vt8235-marcelo You can import this changeset into BK by piping this whole message to: '| bk receive [path to repository]' or apply the patch as usual. =================================================================== ChangeSet@1.897, 2002-12-27 10:59:52+01:00, vojtech@suse.cz Workaround (ide-timing.h) for many ATAPI CD/DVD-ROMs and burners. They need extended (beyond spec) address setup timing, and as such don't work on recent VIA chipsets. ide-timing.h | 8 ++++++++ 1 files changed, 8 insertions(+) diff -Nru a/drivers/ide/ide-timing.h b/drivers/ide/ide-timing.h --- a/drivers/ide/ide-timing.h Fri Dec 27 11:00:15 2002 +++ b/drivers/ide/ide-timing.h Fri Dec 27 11:00:15 2002 @@ -245,6 +245,14 @@ } /* + * If the drive is an ATAPI device it may need slower address setup timing, + * so we stay on the safe side. + */ + + if (drive->media != ide_disk) + p.setup = 120; + +/* * Convert the timing to bus clock counts. */ =================================================================== This BitKeeper patch contains the following changesets: + ## Wrapped with gzip_uu ## begin 664 bkpatch2571 M'XL(`*\D##X``^V476_3,!2&K^M?<=`NV`=-;.>S19U66@05H%5E&S=(R+-/ ME]`FKF*WI2@_'J>MMFG:D(;@CB1*8N?X]3GO>90#N#18=5LK_=VBS,@!O-?& M=EMF:="3/]UXHK4;^YDNT-]'^=CT89**\P<]HH=9#0J':/ M(")#8%[:28!RGW&?)\!H-^IT(WY"69=2V)=ZMC<"3ABT*7D#?S?K`9$`7W0U M$Y5>E@H.>-E1S#5%12BW$#_HC\>P6#H#Z^&[K[8RPDTN7>^= MBM+E2PMKEQ#H$BJ46%JX&O5!9OG"K71[?0`>A`$9WS63M)]Y$$(%):>P:#!Y MW$A5Y0U0OO/#O^_)/5^C@"=NF,91':L8(Q&QSE3%`1?R8?=^+[=EHQ-UPK@. MXB1E6U2?6M&0^\_R)L_*FP:\P](PX&GMR`Z2+=/!0Z+#^"FBT_]$[XG>M?T< MVM5Z>SE$QT\2\`>XCWB80$K@&$93L!GNM"%OBMX[H7"52S=EG3W[LLUS H(])J+;R=;`\8IZ_="O_X[Imedia != ide_disk) + p.setup = 120; + +/* * Convert the timing to bus clock counts. */ =================================================================== This BitKeeper patch contains the following changesets: + ## Wrapped with gzip_uu ## begin 664 bkpatch1702 M'XL(`)XA##X``[V46V_3,!3'G^M/<=`>V(4F=JY-4*>.%4$%:%79Q@L27#<])6&XP-,6Y)%,4^Y_Q]+C]E#RZ,*M/64G^V2F1D#UYK8].6 MJ8QRQ!=N%RIMC5Z^ MNGA[,B*DVX73C!=7ZKVRT.T2J\LEGTG3XS:;Z<*Q)2_,7%GN"#VO;UQKCU(/ M[Y#%/@VCFD4TB&O!)&,\8$I2+^A$`5GPI9KU*K'"G.\$,\^+6$(CG]9^%"<> MZ0-SDC`&ZKG,<[T8&$V#*/62(\I22F%79&_7`CABT*;D!?S=C$^)@`^ZG/)2 M5X6$_5RJMLWG>7'E9`;&&D_.3X0!.^V[_LM\>G;TSP-%[7)4%-MQ! MC?-,K:%02H*ZMJJ0^+$_5FN-7F:AQ`%P*4ME#!AEJP5LCWBV4>&X6>',!4A= M/+6PPG1`%U`JH0H+EX,3$%F^P$`\Z0WX8=P)R/!VC*3]R(L0RBDY!GX]UJK7 M%&&F2.GM2SS!B47V^%^VY)M5SLL8AZ-65B'":6T[HQID(1C7XQC MGD@QN3N[G\LA&3%-@C!(&C(Z;`/I0Q$-L_\L[S]7CFK/C_UX`[?W/=IA&CR( M=N<_H/V++-]#,NH\DN5[24:9'UC>S/L,VN5J\R";PP='_QN<#[P@A@Z!0QA, MP&9JJPUY4_*N#U(MW?W&1*3$U 2U;PKPTXH/"[)5_MR+Q\@!@`` ` end --82I3+IH0IqGh5yIs-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/