From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [git patches] ide update Date: Thu, 18 Aug 2005 15:15:43 -0700 (PDT) Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Bartlomiej Zolnierkiewicz Cc: linux-ide@vger.kernel.org, Linux Kernel Mailing List List-Id: linux-ide@vger.kernel.org On Thu, 18 Aug 2005, Bartlomiej Zolnierkiewicz wrote: > > 3 obvious fixes + support for 2 new controllers > (just new PCI IDs). Btw, things like this: +#define IDEFLOPPY_TICKS_DELAY HZ/20 /* default delay for ZIP 100 (50ms) */ are just bugs waiting to happen. Hint: see what happens when you do something like this: high_byte = IDEFLOPPY_TICKS_DELAY >> 8; low_byte = (unsigned char) IDEFLOPPY_TICKS_DELAY; and watch in amazement how you get entirely the wrong value if HZ is 1000. Try it out.. Linus