public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/ide/pci/pdc202xx_old.c
@ 2003-05-26 22:57 Carl-Daniel Hailfinger
  0 siblings, 0 replies; only message in thread
From: Carl-Daniel Hailfinger @ 2003-05-26 22:57 UTC (permalink / raw)
  To: Andre Hedrick
  Cc: Alan Cox, Bartlomiej Zolnierkiewicz, Linux Kernel Mailing List

Hello IDE gurus,

is the following #if 0 in drivers/ide/pci/pdc202xx_old.c intentional?
What makes me worried about the code is that it looks like somebody
wanted to clean up the code for splitoff of pdc202xx_new.c and confused
the two files.
Either the code is really not needed and can be ripped out or it is
needed and was overlooked.

drivers/ide/pci/pdc202xx_old.c:719
        /*
         * software reset -  this is required because the bios
         * will set UDMA timing on if the hdd supports it. The
         * user may want to turn udma off. A bug in the pdc20262
         * is that it cannot handle a downgrade in timing from
         * UDMA to DMA. Disk accesses after issuing a set
         * feature command will result in errors. A software
         * reset leaves the timing registers intact,
         * but resets the drives.
         */
#if 0
        if ((dev->device == PCI_DEVICE_ID_PROMISE_20267) ||
            (dev->device == PCI_DEVICE_ID_PROMISE_20265) ||
            (dev->device == PCI_DEVICE_ID_PROMISE_20263) ||
            (dev->device == PCI_DEVICE_ID_PROMISE_20262)) {
                unsigned long high_16   = pci_resource_start(dev, 4);
                byte udma_speed_flag    = inb(high_16 + 0x001f);
                outb(udma_speed_flag | 0x10, high_16 + 0x001f);
                mdelay(100);
                outb(udma_speed_flag & ~0x10, high_16 + 0x001f);
                mdelay(2000);   /* 2 seconds ?! */
        }

#endif


Thoughts? Comments?

Carl-Daniel


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

only message in thread, other threads:[~2003-05-26 22:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-26 22:57 drivers/ide/pci/pdc202xx_old.c Carl-Daniel Hailfinger

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