[PATCH] ahci: Store irq number in struct ahci_host_priv
Tejun Heo
tj at kernel.org
Wed May 27 11:14:15 PDT 2015
Hello,
On Wed, May 27, 2015 at 06:16:03PM +0200, Robert Richter wrote:
> From b50a5e478b8fce17603a91a5d272bb49527239af Mon Sep 17 00:00:00 2001
> From: Robert Richter <rrichter at cavium.com>
> Date: Tue, 12 May 2015 13:57:27 +0200
> Subject: [PATCH] ahci: Store irq number in struct ahci_host_priv
>
Currently, ahci supports only msi and intx; however, msix support is
planned for ....
> The irq number for msix devices is taken from msi_list instead of
> pci_dev. Thus, the irq number of a device needs to be stored in struct
> ahci_host_priv now. Host controller can be activated then in a
> generic way.
The above paragraph doesn't really explain why it needs to be moved to
host_priv, does it? Can you please elaborate a bit further?
> diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
> index 1add5baec584..1c99402a1017 100644
> --- a/drivers/ata/libahci.c
> +++ b/drivers/ata/libahci.c
> @@ -2344,7 +2344,7 @@ static int ahci_port_start(struct ata_port *ap)
> /*
> * Switch to per-port locking in case each port has its own MSI vector.
> */
> - if ((hpriv->flags & AHCI_HFLAG_MULTI_MSI)) {
> + if (hpriv->flags & AHCI_HFLAG_MULTI_MSI) {
This sort of cleanups are fine but please mention them in the patch
description.
Thanks.
--
tejun
More information about the linux-arm-kernel
mailing list