浏览代码

cs5520: add enablebits checking

Based on sparse comments in OpenFirmware code
(no Cx5510/Cx5520 datasheet here).

This fixes 2.6.26 regression reported by TAKADA
and caused by addition of warm-plug support.

Tested-by: TAKADA Yoshihito <takada@mbf.nifty.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Bartlomiej Zolnierkiewicz 17 年之前
父节点
当前提交
24307ffabd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/ide/pci/cs5520.c

+ 1 - 0
drivers/ide/pci/cs5520.c

@@ -96,6 +96,7 @@ static const struct ide_port_ops cs5520_port_ops = {
 
 
 static const struct ide_port_info cyrix_chipset __devinitdata = {
 static const struct ide_port_info cyrix_chipset __devinitdata = {
 	.name		= DRV_NAME,
 	.name		= DRV_NAME,
+	.enablebits	= { { 0x60, 0x01, 0x01 }, { 0x60, 0x02, 0x02 } },
 	.port_ops	= &cs5520_port_ops,
 	.port_ops	= &cs5520_port_ops,
 	.host_flags	= IDE_HFLAG_ISA_PORTS | IDE_HFLAG_CS5520,
 	.host_flags	= IDE_HFLAG_ISA_PORTS | IDE_HFLAG_CS5520,
 	.pio_mask	= ATA_PIO4,
 	.pio_mask	= ATA_PIO4,