Re: [PATCH] ahci: Store irq number in struct ahci_host_priv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux