projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03f6509
)
drm/pci: Use the standard #defines for PCIe Link Capability bits
author
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 4 Jan 2013 19:10:32 +0000
(19:10 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 8 Feb 2013 03:54:28 +0000
(13:54 +1000)
Use the standard #defines rather than bare numbers for the PCIe Link
Capabilities speed bits.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_pci.c
b/drivers/gpu/drm/drm_pci.c
index 754bc96e10c70ffd406e51ea6327c5690376e273..11c8adde40b04884ba37f82dc658db479d1ea199 100644
(file)
--- a/
drivers/gpu/drm/drm_pci.c
+++ b/
drivers/gpu/drm/drm_pci.c
@@
-504,9
+504,9
@@
int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *mask)
if (lnkcap2 & PCI_EXP_LNKCAP2_SLS_8_0GB)
*mask |= DRM_PCIE_SPEED_80;
} else {
- if (lnkcap &
1
)
+ if (lnkcap &
PCI_EXP_LNKCAP_SLS_2_5GB
)
*mask |= DRM_PCIE_SPEED_25;
- if (lnkcap &
2
)
+ if (lnkcap &
PCI_EXP_LNKCAP_SLS_5_0GB
)
*mask |= DRM_PCIE_SPEED_50;
}