aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/init.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-12-25 12:06:06 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 13:31:29 -0500
commit3a65dd4ea32c3e3a3befec58ad20d1c96580834e (patch)
tree4c8226f14b9cb96b68faecf19f3b3fe8c12d5ddd /drivers/misc/mei/init.c
parentdb7da79df1a9eafb4f07653bf9011537325a9b62 (diff)
mei: move hw dependent functions to interface.c
1. move direct register handling to interface.c and make them static 2. add new function mei_clear_interrupts that wraps direct register access 3. export other functions in mei_dev.h Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r--drivers/misc/mei/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c
index 08884ef13f31..eb180555d282 100644
--- a/drivers/misc/mei/init.c
+++ b/drivers/misc/mei/init.c
@@ -142,8 +142,7 @@ int mei_hw_init(struct mei_device *dev)
142 dev->host_hw_state, dev->me_hw_state); 142 dev->host_hw_state, dev->me_hw_state);
143 143
144 /* acknowledge interrupt and stop interupts */ 144 /* acknowledge interrupt and stop interupts */
145 if ((dev->host_hw_state & H_IS) == H_IS) 145 mei_clear_interrupts(dev);
146 mei_reg_write(dev, H_CSR, dev->host_hw_state);
147 146
148 /* Doesn't change in runtime */ 147 /* Doesn't change in runtime */
149 dev->hbuf_depth = (dev->host_hw_state & H_CBD) >> 24; 148 dev->hbuf_depth = (dev->host_hw_state & H_CBD) >> 24;