Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hpt366: don't check enablebits for HPT36x

HPT36x chip don't seem to have the channel enable bits, so prevent the IDE core
from checking them...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Michal Kepien <michal.kepien@poczta.onet.pl>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

authored by

Sergei Shtylyov and committed by
Bartlomiej Zolnierkiewicz
fdb0d72b 55e4dee3

+6 -1
+6 -1
drivers/ide/pci/hpt366.c
··· 1 1 /* 2 - * linux/drivers/ide/pci/hpt366.c Version 1.02 Apr 18, 2007 2 + * linux/drivers/ide/pci/hpt366.c Version 1.03 May 4, 2007 3 3 * 4 4 * Copyright (C) 1999-2003 Andre Hedrick <andre@linux-ide.org> 5 5 * Portions Copyright (C) 2001 Sun Microsystems, Inc. ··· 1527 1527 if (rev > 2) 1528 1528 goto init_single; 1529 1529 1530 + /* 1531 + * HPT36x chips are single channel and 1532 + * do not seem to have the channel enable bit... 1533 + */ 1530 1534 d->channels = 1; 1535 + d->enablebits[0].reg = 0; 1531 1536 1532 1537 if ((dev2 = pci_get_slot(dev->bus, dev->devfn + 1)) != NULL) { 1533 1538 u8 pin1 = 0, pin2 = 0;