mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 08:26:55 +07:00
[media] saa7164: Adding additional I2C debug
Assists with debugging difficult I2C devices. Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
5f954b5be4
commit
8ed5e4e89c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user