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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
db7da79df1
commit
3a65dd4ea3
@@ -142,8 +142,7 @@ int mei_hw_init(struct mei_device *dev)
|
||||
dev->host_hw_state, dev->me_hw_state);
|
||||
|
||||
/* acknowledge interrupt and stop interupts */
|
||||
if ((dev->host_hw_state & H_IS) == H_IS)
|
||||
mei_reg_write(dev, H_CSR, dev->host_hw_state);
|
||||
mei_clear_interrupts(dev);
|
||||
|
||||
/* Doesn't change in runtime */
|
||||
dev->hbuf_depth = (dev->host_hw_state & H_CBD) >> 24;
|
||||
|
Reference in New Issue
Block a user