Re: [PATCH v4 06/22] [media] em28xx: add warn messages for timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Sun, 05 Jan 2014 11:51:44 +0100
Frank Schäfer <fschaefer.oss@xxxxxxxxxxxxxx> escreveu:

> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab:
> > changeset 45f04e82d035 added a logic to check if em28xx got
> > a timeout on an I2C transfer.
> >
> > That patch started to produce a series of errors that is present
> > with HVR-950, like:
> >
> > [ 4032.218656] xc2028 19-0061: Error on line 1299: -19
> >
> > However, as there are several places where -ENODEV is produced,
> > there's no way to know what's happening.
> >
> > So, let's add a printk to report what error condition was reached:
> >
> > [ 4032.218652] em2882/3 #0: I2C transfer timeout on writing to addr 0xc2
> > [ 4032.218656] xc2028 19-0061: Error on line 1299: -19
> >
> > Interesting enough, when connected to an USB3 port, the number of
> > errors increase:
> >
> > [ 4249.941375] em2882/3 #0: I2C transfer timeout on writing to addr 0xb8
> > [ 4249.941378] tvp5150 19-005c: i2c i/o error: rc == -19 (should be 2)
> > [ 4250.023854] em2882/3 #0: I2C transfer timeout on writing to addr 0xc2
> > [ 4250.023857] xc2028 19-0061: Error on line 1299: -19
> >
> > Due to that, I suspect that the logic in the driver is wrong: instead
> > of just returning an error if 0x10 is returned, it should be waiting for
> > a while and read the I2C status register again.
> >
> > However, more tests are needed.
> The patch description isn't up-to-date.
> It turned out that the bug is in the xc2028 driver.
> 
> See
> http://www.spinics.net/lists/linux-media/msg71107.html

In time, I'll update the description.

I'll work on the xc2028 driver to fix it. It seems better than applying
a hack there. I prefer to not remove the code that puts it in power down
mode, as some em28xx devices are known to have power heat problems.

So, keeping xc3028 energized can reduce a lot its lifetime on such
devices.

Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux