All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Smart <james.smart@emulex.com>
To: Jon Mason <jdmason@kudzu.us>
Cc: James Bottomley <JBottomley@Parallels.com>, linux-scsi@vger.kernel.org
Subject: Re: [PATCH RESUBMIT 3/3] lpfc: remove unnecessary read of PCI_CAP_ID_EXP
Date: Wed, 15 Aug 2012 09:55:34 -0400	[thread overview]
Message-ID: <502BAA56.20909@emulex.com> (raw)
In-Reply-To: <1341957477-30946-4-git-send-email-jdmason@kudzu.us>

Acked-By:  James Smart <james.smart@emulex.com>

-- james


On 7/10/2012 5:57 PM, Jon Mason wrote:
> The PCIE capability offset is saved during PCI bus walking.  It will
> remove an unnecessary search in the PCI configuration space if this
> value is referenced instead of reacquiring it.  Also, pci_is_pcie is a
> better way of determining if the device is PCIE or not (as it uses the
> same saved PCIE capability offset).
>
> Signed-off-by: Jon Mason <jdmason@kudzu.us>
> Cc: James Smart <james.smart@emulex.com>
> ---
>   drivers/scsi/lpfc/lpfc_init.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
> index 411ed48..f30b3d2 100644
> --- a/drivers/scsi/lpfc/lpfc_init.c
> +++ b/drivers/scsi/lpfc/lpfc_init.c
> @@ -4253,7 +4253,7 @@ lpfc_enable_pci_dev(struct lpfc_hba *phba)
>   	pci_save_state(pdev);
>   
>   	/* PCIe EEH recovery on powerpc platforms needs fundamental reset */
> -	if (pci_find_capability(pdev, PCI_CAP_ID_EXP))
> +	if (pci_is_pcie(pdev))
>   		pdev->needs_freset = 1;
>   
>   	return 0;


      reply	other threads:[~2012-08-15 13:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 21:57 [PATCH RESUBMIT 0/3] remove unnecessary read of PCI_CAP_ID_EXP Jon Mason
2012-07-10 21:57 ` [PATCH RESUBMIT 1/3] qla4xxx: " Jon Mason
2012-07-11 13:16   ` Vikas Chaudhary
2012-07-10 21:57 ` [PATCH RESUBMIT 2/3] qla2xxx: remove unnecessary reads " Jon Mason
2012-07-11 12:27   ` Chad Dupuis
2012-07-10 21:57 ` [PATCH RESUBMIT 3/3] lpfc: remove unnecessary read " Jon Mason
2012-08-15 13:55   ` James Smart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=502BAA56.20909@emulex.com \
    --to=james.smart@emulex.com \
    --cc=JBottomley@Parallels.com \
    --cc=jdmason@kudzu.us \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.