lkml.org 
[lkml]   [2010]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 18/64] pata_efar: enable parallel scan
    From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    Subject: [PATCH] pata_efar: enable parallel scan

    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    ---
    drivers/ata/pata_efar.c | 17 ++++++++++++++++-
    1 file changed, 16 insertions(+), 1 deletion(-)

    Index: b/drivers/ata/pata_efar.c
    ===================================================================
    --- a/drivers/ata/pata_efar.c
    +++ b/drivers/ata/pata_efar.c
    @@ -238,12 +238,27 @@ static int efar_init_one (struct pci_dev
    .port_ops = &efar_ops,
    };
    const struct ata_port_info *ppi[] = { &info, &info };
    + struct ata_host *host;
    + int rc;

    if (!printed_version++)
    dev_printk(KERN_DEBUG, &pdev->dev,
    "version " DRV_VERSION "\n");

    - return ata_pci_sff_init_one(pdev, ppi, &efar_sht, NULL);
    + /* enable device and prepare host */
    + rc = pcim_enable_device(pdev);
    + if (rc)
    + return rc;
    +
    + rc = ata_pci_sff_prepare_host(pdev, ppi, &host);
    + if (rc)
    + return rc;
    +
    + host->flags |= ATA_HOST_PARALLEL_SCAN;
    +
    + pci_set_master(pdev);
    +
    + return ata_pci_sff_activate_host(host, ata_sff_interrupt, &efar_sht);
    }

    static const struct pci_device_id efar_pci_tbl[] = {

    \
     
     \ /
      Last update: 2010-01-18 18:21    [W:4.154 / U:0.264 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site