V4L/DVB (10415): dib0700: add data debug to dib0700_i2c_xfer_new
Data debug for i2c transactions was provided by the functions called by dib0700_i2c_xfer_legacy, but not dib0700_i2c_xfer_new. This patch adds the missing data debug dumps to dib0700_i2c_xfer_new. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Родитель
8afe6ad617
Коммит
d251499119
|
@ -158,6 +158,10 @@ static int dib0700_i2c_xfer_new(struct i2c_adapter *adap, struct i2c_msg *msg,
|
||||||
err("i2c read error (status = %d)\n", result);
|
err("i2c read error (status = %d)\n", result);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deb_data("<<< ");
|
||||||
|
debug_dump(msg[i].buf, msg[i].len, deb_data);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* Write request */
|
/* Write request */
|
||||||
buf[0] = REQUEST_NEW_I2C_WRITE;
|
buf[0] = REQUEST_NEW_I2C_WRITE;
|
||||||
|
@ -169,6 +173,9 @@ static int dib0700_i2c_xfer_new(struct i2c_adapter *adap, struct i2c_msg *msg,
|
||||||
/* The Actual i2c payload */
|
/* The Actual i2c payload */
|
||||||
memcpy(&buf[4], msg[i].buf, msg[i].len);
|
memcpy(&buf[4], msg[i].buf, msg[i].len);
|
||||||
|
|
||||||
|
deb_data(">>> ");
|
||||||
|
debug_dump(buf, msg[i].len + 4, deb_data);
|
||||||
|
|
||||||
result = usb_control_msg(d->udev,
|
result = usb_control_msg(d->udev,
|
||||||
usb_sndctrlpipe(d->udev, 0),
|
usb_sndctrlpipe(d->udev, 0),
|
||||||
REQUEST_NEW_I2C_WRITE,
|
REQUEST_NEW_I2C_WRITE,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче