Skip to content
  • Ben Widawsky's avatar
    intel_mmio: Allow mmio without debugfs · 8904d294
    Ben Widawsky authored and Jesse Barnes's avatar Jesse Barnes committed
    With the introduction of the forcewake dance:
    
    commit cac8f8b5
    
    
    Author: Ben Widawsky <ben@bwidawsk.net>
    Date:   Thu Jul 28 13:40:19 2011 -0700
    
        forcewake: Add mmio code to do proper forcewake stuff for gen6
    
    We lost the ability to do register access when either debugfs isn't
    mounted, or when the driver isn't loaded. The latter can be beneficial
    in debugging situations.
    
    This patch will allow the driver to still do mmio (leaving forcewake
    management up to the callers) provided that the i915 driver appears to
    not be loaded (according to sysfs)
    
    Requested by Jesse.
    
    Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
    Signed-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
    8904d294