diff mbox

drm/savage: re-add busmaster enable, regression fix

Message ID 20121002122036.GN1162@florz.florz.dyndns.org (mailing list archive)
State Accepted
Headers show

Commit Message

Florian Zumbiehl Oct. 2, 2012, 12:20 p.m. UTC
466e69b8b03b8c1987367912782bc12988ad8794 dropped busmaster enable from the
global drm code and moved it to the individual drivers, but missed the savage
driver. So, this re-adds busmaster enable to the savage driver, fixing the
regression.

Signed-off-by: Florian Zumbiehl <florz@florz.de>

Comments

Alex Deucher Oct. 2, 2012, 3:08 p.m. UTC | #1
On Tue, Oct 2, 2012 at 8:20 AM, Florian Zumbiehl <florz@florz.de> wrote:
> 466e69b8b03b8c1987367912782bc12988ad8794 dropped busmaster enable from the
> global drm code and moved it to the individual drivers, but missed the savage
> driver. So, this re-adds busmaster enable to the savage driver, fixing the
> regression.
>
> Signed-off-by: Florian Zumbiehl <florz@florz.de>

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>

>
> diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c
> index 6eb507a..7d3f0f0 100644
> --- a/drivers/gpu/drm/savage/savage_bci.c
> +++ b/drivers/gpu/drm/savage/savage_bci.c
> @@ -547,6 +547,8 @@ int savage_driver_load(struct drm_device *dev, unsigned long chipset)
>
>         dev_priv->chipset = (enum savage_family)chipset;
>
> +       pci_set_master(dev->pdev);
> +
>         return 0;
>  }
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c
index 6eb507a..7d3f0f0 100644
--- a/drivers/gpu/drm/savage/savage_bci.c
+++ b/drivers/gpu/drm/savage/savage_bci.c
@@ -547,6 +547,8 @@  int savage_driver_load(struct drm_device *dev, unsigned long chipset)
 
 	dev_priv->chipset = (enum savage_family)chipset;
 
+	pci_set_master(dev->pdev);
+
 	return 0;
 }