diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-07 12:27:11 (GMT) |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-07 12:27:11 (GMT) |
commit | 6250d3af2a1036fb356264442211a4246c7d64c7 (patch) | |
tree | 12474d59b96c0dc518159cb694f0e654cb18b5f6 /drivers/ide/ide-pci-generic.c | |
parent | 4c9773ed7946fc375edba057770f5ef16d8b44fe (diff) | |
parent | 075affcbe01d4d7cefcd0e30a98df1253bcf8d92 (diff) | |
download | linux-fsl-qoriq-6250d3af2a1036fb356264442211a4246c7d64c7.tar.xz |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'drivers/ide/ide-pci-generic.c')
-rw-r--r-- | drivers/ide/ide-pci-generic.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/ide/ide-pci-generic.c b/drivers/ide/ide-pci-generic.c index 61111fd..39d4e01 100644 --- a/drivers/ide/ide-pci-generic.c +++ b/drivers/ide/ide-pci-generic.c @@ -33,6 +33,16 @@ static int ide_generic_all; /* Set to claim all devices */ module_param_named(all_generic_ide, ide_generic_all, bool, 0444); MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers."); +static void netcell_quirkproc(ide_drive_t *drive) +{ + /* mark words 85-87 as valid */ + drive->id[ATA_ID_CSF_DEFAULT] |= 0x4000; +} + +static const struct ide_port_ops netcell_port_ops = { + .quirkproc = netcell_quirkproc, +}; + #define DECLARE_GENERIC_PCI_DEV(extra_flags) \ { \ .name = DRV_NAME, \ @@ -74,6 +84,7 @@ static const struct ide_port_info generic_chipsets[] __devinitdata = { { /* 6: Revolution */ .name = DRV_NAME, + .port_ops = &netcell_port_ops, .host_flags = IDE_HFLAG_CLEAR_SIMPLEX | IDE_HFLAG_TRUST_BIOS_FOR_DMA | IDE_HFLAG_OFF_BOARD, |