projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
843f65c
)
Staging: sep: initialize driver copy of send and receive count with device
author
Mark Allyn
<mark.a.allyn@intel.com>
Thu, 9 Dec 2010 17:31:31 +0000
(09:31 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 10 Dec 2010 00:37:48 +0000
(16:37 -0800)
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sep/sep_driver.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/sep/sep_driver.c
b/drivers/staging/sep/sep_driver.c
index 821d3b7c6477a492934d9d6ee8ad8d9cf72530e5..c8008244d3f94b1d2816c4cf4d8a7a187976281a 100644
(file)
--- a/
drivers/staging/sep/sep_driver.c
+++ b/
drivers/staging/sep/sep_driver.c
@@
-3538,6
+3538,11
@@
static int __devinit sep_probe(struct pci_dev *pdev,
/* Set the IMR register - open only GPR 2 */
sep_write_reg(sep, HW_HOST_IMR_REG_ADDR, (~(0x1 << 13)));
+ /* Read send/receive counters from SEP */
+ sep->reply_ct = sep_read_reg(sep, HW_HOST_SEP_HOST_GPR2_REG_ADDR);
+ sep->reply_ct &= 0x3FFFFFFF;
+ sep->send_ct = sep->reply_ct;
+
dev_dbg(&sep->pdev->dev, "about to call request_irq\n");
/* Get the interrupt line */
error = request_irq(pdev->irq, sep_inthandler, IRQF_SHARED,