mei: don't query HCSR for host buffer depth
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 25 Jun 2012 20:46:27 +0000 (23:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 22:59:44 +0000 (15:59 -0700)
commit24aadc809f270857743e62d0882865fb3ba195d9
tree5df3ea0a48d63ccee9ad702deb35b7c1aaa52ba4
parent21c66d1be7c586b56c2902ada4ba030a12b00063
mei: don't query HCSR for host buffer depth

1. We record host (write) buffer depth during reset
 so we don't need to query HCSR register later on.
 The host buffer depth doesn't change after the reset
2. Use mei_hbuf_max_data function to compute payload size in bytes

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/init.c
drivers/misc/mei/interface.c
drivers/misc/mei/interface.h
drivers/misc/mei/interrupt.c
drivers/misc/mei/iorw.c
drivers/misc/mei/main.c
drivers/misc/mei/mei_dev.h