• Srinivas Pandruvada's avatar
    ata: libahci: Allow reconfigure of DEVSLP register · 11c29146
    Srinivas Pandruvada authored
    There are two modes in which DEVSLP can be entered. The OS initiated or
    hardware autonomous.
    
    In hardware autonomous mode, BIOS configures the AHCI controller and the
    device to enable DEVSLP. But they may not be ideal for all cases. So in
    this case, OS should be able to reconfigure DEVSLP register.
    
    Currently if the DEVSLP is already enabled, we can't set again as it will
    simply return. There are some systems where the firmware is setting high
    DITO by default, in this case we can't modify here to correct settings.
    With the default in several seconds, we are not able to transition to
    DEVSLP.
    
    This change will allow reconfiguration of devslp register if DITO is
    different.
    Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    11c29146
libahci.c 67.8 KB