From: Antti Palosaari <crope@iki.fi>
To: Antti Palosaari <crope@iki.fi>
Cc: linux-media@vger.kernel.org, Hin-Tak Leung <htl10@users.sourceforge.net>
Subject: Re: [PATCH 0/5] dvb-frontend statistic IOCTL validation
Date: Thu, 16 Aug 2012 03:45:29 +0300 [thread overview]
Message-ID: <502C42A9.40009@iki.fi> (raw)
In-Reply-To: <1345076921-9773-1-git-send-email-crope@iki.fi>
On 08/16/2012 03:28 AM, Antti Palosaari wrote:
> 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.
oops, this could be understood wrong. Originally no standardized error
code at all, it was responsibility of each driver to return what they
wish - and surely they did it :]
EPERM was used first version of that patch series, but got feedback from
Mauro it is not suitable as it is documented:
"Permission denied. Can be returned if the device needs write
permission, or some special capabilities is needed (e. g. root)"
Thus EAGAIN. Hope this is now better.
>
> 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(-)
>
--
http://palosaari.fi/
prev parent reply other threads:[~2012-08-16 0:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Antti Palosaari [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=502C42A9.40009@iki.fi \
--to=crope@iki.fi \
--cc=htl10@users.sourceforge.net \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.