Commit 8ed5e4e8 authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab

[media] saa7164: Adding additional I2C debug

Assists with debugging difficult I2C devices.
Signed-off-by: default avatarSteven Toth <stoth@kernellabs.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 5f954b5b
......@@ -1373,7 +1373,8 @@ int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg,
u8 buf[256];
int ret;
dprintk(DBGLVL_API, "%s()\n", __func__);
dprintk(DBGLVL_API, "%s() addr=%x reglen=%d datalen=%d\n",
__func__, addr, reglen, datalen);
if (reglen > 4)
return -EIO;
......@@ -1434,7 +1435,8 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen,
u8 buf[256];
int ret;
dprintk(DBGLVL_API, "%s()\n", __func__);
dprintk(DBGLVL_API, "%s() addr=0x%2x len=0x%x\n",
__func__, addr, datalen);
if ((datalen == 0) || (datalen > 232))
return -EIO;
......@@ -1464,7 +1466,7 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen,
return -EIO;
}
dprintk(DBGLVL_API, "%s() len = %d bytes\n", __func__, len);
dprintk(DBGLVL_API, "%s() len = %d bytes unitid=0x%x\n", __func__, len, unitid);
/* Prepare the send buffer */
/* Bytes 00-03 dest register length
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment