radeon: use max_bus_speed to activate gen2 speeds
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Fri, 3 May 2013 22:43:13 +0000 (19:43 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2013 16:36:12 +0000 (12:36 -0400)
commit7e0e41963740525af702bb23edede8ae9afc4ac0
treeb26034a6a42ea58d952f87e83e51c5e55d653d1c
parent50a583f64bfe53aae4996965c1d1b25d90ce4f64
radeon: use max_bus_speed to activate gen2 speeds

radeon currently uses a drm function to get the speed capabilities for
the bus, drm_pcie_get_speed_cap_mask. However, this is a non-standard
method of performing this detection and this patch changes it to use
the max_bus_speed attribute.

From: Lucas Kannebley Tavares <lucaskt@linux.vnet.ibm.com>
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/rv770.c