• Tomas Winkler's avatar
    mei: me: fix hardware reset flow · ff96066e
    Tomas Winkler authored
    Both H_IS and H_IE needs to be set to receive H_RDY
    interrupt
    
    1. Assert H_IS to clear the interrupts during hw reset
    and use mei_me_reg_write instead of mei_hcsr_set as the later
    strips down the H_IS
    
    2. fix interrupt disablement embarrassing typo
      hcsr |= ~H_IE -> hcsr &= ~H_IE;
    this will remove the unwanted interrupt on power down
    
    3. remove useless debug print outs
    
    Cc: Shuah Khan <shuah.kh@samsung.com>
    Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
    Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ff96066e
hw-me.c 13.5 KB