mei: add mei_hbuf_acquire wrapper
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 19 Feb 2014 15:35:47 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2014 23:15:56 +0000 (15:15 -0800)
commit6aae48ff18f2fcfb533d2b448ecae16d1de006c1
tree1e886fe2f579ed8dea6f594219e591f7c6820d89
parent4a22176aa89b8121a5160064d77244e26fe38790
mei: add mei_hbuf_acquire wrapper

A client has to acquire host buffer
before writing, we add lock like wrapper
to replace the code snippet

if (dev->hbuf_is_ready)
        dev->hbuf_is_ready = false;

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/amthif.c
drivers/misc/mei/client.c
drivers/misc/mei/hw-me.c
drivers/misc/mei/hw-txe.c
drivers/misc/mei/interrupt.c
drivers/misc/mei/mei_dev.h
drivers/misc/mei/wd.c