Make sure busmastering gets disabled on module unload.

main
Adam Jackson 2006-07-19 15:35:31 -04:00
parent d5e0f8bdaf
commit af7b89d724
1 changed files with 5 additions and 0 deletions

View File

@ -1719,6 +1719,11 @@ static int radeon_do_cleanup_cp(drm_device_t * dev)
dev_priv->gart_info.addr = 0; dev_priv->gart_info.addr = 0;
} }
} }
/* Disable busmastering */
RADEON_WRITE(RADEON_BUS_CNTL, RADEON_READ(RADEON_BUS_CNTL) |
RADEON_BUS_MASTER_DIS);
/* only clear to the start of flags */ /* only clear to the start of flags */
memset(dev_priv, 0, offsetof(drm_radeon_private_t, flags)); memset(dev_priv, 0, offsetof(drm_radeon_private_t, flags));