[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100118175256.32096b44@lxorguk.ukuu.org.uk>
Date: Mon, 18 Jan 2010 17:52:56 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
Cc: linux-ide@...r.kernel.org,
Bartlomiej Zolnierkiewicz <bzolnier@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 07/64] pata_atiixp: enable parallel scan
> const struct ata_port_info *ppi[] = { &info, &info };
> + struct ata_host *host;
> + int rc;
>
> - return ata_pci_sff_init_one(pdev, ppi, &atiixp_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, &atiixp_sht);
> }
Adding a small essay to each host that activates parallel scan doesn't
make sense. This should be a helper (ignore that if you make it a helper
later in the patch set...)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists