linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] dvb-frontend statistic IOCTL validation
@ 2012-08-16  0:28 Antti Palosaari
  2012-08-16  0:28 ` [PATCH 1/5] dvb_frontend: use Kernel dev_* logging Antti Palosaari
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Antti Palosaari @ 2012-08-16  0:28 UTC (permalink / raw)
  To: linux-media; +Cc: Hin-Tak Leung, Antti Palosaari

Take two.

I added some logic to prevent statistic queries in case demodulator is clearly in state statistic query is invalid. Currently there could be checks in device driver but usually not. Gar
bage is usually returned and in some cases even I/O errors are generated as demod is put sleep and cannot answer any request.

I changed error code EPERM to EAGAIN. What I looked existing demodulator drivers there was multiple error codes used. EAGAIN was one, at least DRX-K uses it.

Also documentation is updated according to new situation.

Antti Palosaari (5):
  dvb_frontend: use Kernel dev_* logging
  dvb_frontend: return -ENOTTY for unimplement IOCTL
  dvb_frontend: do not allow statistic IOCTLs when sleeping
  DocBook: update ioctl error codes EAGAIN, ENOSYS, EOPNOTSUPP
  rtl2832: remove dummy callback implementations

 Documentation/DocBook/media/v4l/gen-errors.xml |  12 +-
 drivers/media/dvb-core/dvb_frontend.c          | 266 +++++++++++++------------
 drivers/media/dvb-frontends/rtl2832.c          |  29 ---
 3 files changed, 151 insertions(+), 156 deletions(-)

-- 
1.7.11.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-09-10 14:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16  0:28 [PATCH 0/5] dvb-frontend statistic IOCTL validation Antti Palosaari
2012-08-16  0:28 ` [PATCH 1/5] dvb_frontend: use Kernel dev_* logging Antti Palosaari
2012-08-16  0:28 ` [PATCH 2/5] dvb_frontend: return -ENOTTY for unimplement IOCTL Antti Palosaari
2012-08-16  0:28 ` [PATCH 3/5] dvb_frontend: do not allow statistic IOCTLs when sleeping Antti Palosaari
2012-09-10 14:27   ` Mauro Carvalho Chehab
2012-09-10 14:39     ` Antti Palosaari
2012-08-16  0:28 ` [PATCH 4/5] DocBook: update ioctl error codes Antti Palosaari
2012-09-10 14:31   ` Mauro Carvalho Chehab
2012-08-16  0:28 ` [PATCH 5/5] rtl2832: remove dummy callback implementations Antti Palosaari
2012-08-16  0:45 ` [PATCH 0/5] dvb-frontend statistic IOCTL validation Antti Palosaari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).