mei: me: fix hardware reset flow
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 30 Jul 2013 11:11:51 +0000 (14:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 22:46:06 +0000 (15:46 -0700)
commitff96066e3171acdea356b331163495957cb833d0
tree1fcab6ddb535679d1e178ea4fbe921bf7df87821
parent3d04dd2f960aa01a09593576f4df56a052ef32a7
mei: me: fix hardware reset flow

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: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hw-me.c
This page took 0.025877 seconds and 5 git commands to generate.