git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bnxt: fix Rx queue count
[dpdk.git]
/
drivers
/
net
/
axgbe
/
axgbe_i2c.c
diff --git
a/drivers/net/axgbe/axgbe_i2c.c
b/drivers/net/axgbe/axgbe_i2c.c
index
204ec36
..
ab3738a
100644
(file)
--- a/
drivers/net/axgbe/axgbe_i2c.c
+++ b/
drivers/net/axgbe/axgbe_i2c.c
@@
-162,9
+162,15
@@
static int axgbe_i2c_isr(struct axgbe_port *pdata)
isr = XI2C_IOREAD(pdata, IC_RAW_INTR_STAT);
isr = XI2C_IOREAD(pdata, IC_RAW_INTR_STAT);
+ PMD_DRV_LOG(DEBUG, "I2C interrupt received: status=%#010x\n", isr);
+
axgbe_i2c_clear_isr_interrupts(pdata, isr);
if (isr & AXGBE_INTR_TX_ABRT) {
axgbe_i2c_clear_isr_interrupts(pdata, isr);
if (isr & AXGBE_INTR_TX_ABRT) {
+ PMD_DRV_LOG(DEBUG,
+ "I2C TX_ABRT received (%#010x) for target %#04x\n",
+ state->tx_abort_source, state->op->target);
+
axgbe_i2c_disable_interrupts(pdata);
state->ret = -EIO;
axgbe_i2c_disable_interrupts(pdata);
state->ret = -EIO;
@@
-285,6
+291,8
@@
static void axgbe_i2c_stop(struct axgbe_port *pdata)
if (!pdata->i2c.started)
return;
if (!pdata->i2c.started)
return;
+ PMD_DRV_LOG(DEBUG, "stopping I2C\n");
+
pdata->i2c.started = 0;
axgbe_i2c_disable_interrupts(pdata);
axgbe_i2c_disable(pdata);
pdata->i2c.started = 0;
axgbe_i2c_disable_interrupts(pdata);
axgbe_i2c_disable(pdata);
@@
-296,6
+304,8
@@
static int axgbe_i2c_start(struct axgbe_port *pdata)
if (pdata->i2c.started)
return 0;
if (pdata->i2c.started)
return 0;
+ PMD_DRV_LOG(DEBUG, "starting I2C\n");
+
pdata->i2c.started = 1;
return 0;
pdata->i2c.started = 1;
return 0;