lkml.org 
[lkml]   [2013]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] pci: Fix pcie access for PCI_EXP_FLAGS
On Thu, Feb 14, 2013 at 11:35 AM, Alex Williamson
<alex.williamson@redhat.com> wrote:
> PCI_EXP_FLAGS_TYPE is a mask, not an offset. Fix it.
>
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

I applied this to pci/misc so it will appear in v3.9 and marked it for
stable for v3.7+.

Thanks!

> ---
> drivers/pci/access.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/access.c b/drivers/pci/access.c
> index 3af0478..32046c5 100644
> --- a/drivers/pci/access.c
> +++ b/drivers/pci/access.c
> @@ -515,7 +515,7 @@ static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos)
> return false;
>
> switch (pos) {
> - case PCI_EXP_FLAGS_TYPE:
> + case PCI_EXP_FLAGS:
> return true;
> case PCI_EXP_DEVCAP:
> case PCI_EXP_DEVCTL:
>


\
 
 \ /
  Last update: 2013-02-15 20:42    [W:0.165 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site