]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cinergyT2-fe: cache stats at cinergyt2_fe_read_status()
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 7 Oct 2016 09:07:36 +0000 (06:07 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 14 Oct 2016 15:36:21 +0000 (12:36 -0300)
commit6b13ade10d33a304db1200c8004a429243893033
treec5e3e45eb8f46063e5b814a6b32b2e0b7e7e371a
parent3a7addc56ccc9edd78f6c233712c9b80eb7cb555
[media] cinergyT2-fe: cache stats at cinergyt2_fe_read_status()

Instead of sending USB commands for every stats call, collect
them once, when status is updated. As the frontend kthread
will call it on every few seconds, the stats will still be
collected.

Besides reducing the amount of USB/I2C transfers, this also
warrants that all stats will be collected at the same time,
and makes easier to convert it to DVBv5 stats in the future.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb/cinergyT2-fe.c