From: "Jasmin J." <jasmin@anw.at>
To: linux-media@vger.kernel.org
Cc: mchehab@s-opensource.com, rjkm@metzlerbros.de, d.scheller@gmx.net
Subject: Re: [PATCH V2 0/3] Add timers to en50221 protocol driver
Date: Wed, 14 Feb 2018 00:29:30 +0100 [thread overview]
Message-ID: <ef72a382-5d30-526c-ae09-ed50d9d4790d@anw.at> (raw)
In-Reply-To: <1513862559-19725-1-git-send-email-jasmin@anw.at>
Hi!
Please hold on in merging this series, because I have to investigate a hint
I got related to the buffer size handshake of the protocol driver:
https://www.linuxtv.org/pipermail/linux-dvb/2007-July/019116.html
BR,
Jasmin
****************************************************************************
On 12/21/2017 02:22 PM, Jasmin J. wrote:
> From: Jasmin Jessich <jasmin@anw.at>
>
> Some (older) CAMs are really slow in accepting data. I got sometimes the
> already known error "CAM tried to send a buffer larger than the ecount
> size". I could track it down to the dvb_ca_en50221_write_data function not
> waiting between sending the data length high/low and data bytes. In fact
> the CAM reported a WR error, which triggered later on the mentioned error.
>
> The problem is that a simple module parameter can't be used to solve this
> by adding timer values, because the protocol handler is used for any CI
> interface. A module parameter would be influence all the CAMs on all CI
> interfaces. Thus individual timer definitions per CI interface and CAM are
> required.
> There are two possibilities to implement that, ioctl's and SysFS.
> ioctl's require changes in usermode programs and it may take a lot of time
> to get this implemented there.
> SysFS can be used by simple "cat" and "echo" commands and can be therefore
> simply controlled by scripting, which is immediately available.
>
> I decided to go for the SysFS approach, but the required device to add the
> SysFS files was not available in the "struct dvb_device". The first patch
> of this series adds this device to the structure and also the setting code.
>
> The second patch adds the functions to create the SysFS nodes for all
> timers and the new timeouts in the en50221 protocol driver.
>
> The third patch adds the SysFS node documentation.
>
> Jasmin Jessich (3):
> media: dvb-core: Store device structure in dvb_register_device
> media: dvb-core: Added timers for dvb_ca_en50221_write_data
> media: dvb-core: Added documentation for ca sysfs timer nodes
>
> Documentation/ABI/testing/sysfs-class-ca | 63 +++++++++++
> Documentation/media/uapi/dvb/ca-sysfs-nodes.rst | 85 +++++++++++++++
> Documentation/media/uapi/dvb/ca.rst | 1 +
> drivers/media/dvb-core/dvb_ca_en50221.c | 132 +++++++++++++++++++++++-
> drivers/media/dvb-core/dvbdev.c | 1 +
> drivers/media/dvb-core/dvbdev.h | 4 +-
> 6 files changed, 284 insertions(+), 2 deletions(-)
> create mode 100644 Documentation/ABI/testing/sysfs-class-ca
> create mode 100644 Documentation/media/uapi/dvb/ca-sysfs-nodes.rst
>
next prev parent reply other threads:[~2018-02-13 23:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-21 13:22 [PATCH V2 0/3] Add timers to en50221 protocol driver Jasmin J.
2017-12-21 13:22 ` [PATCH V2 1/3] media: dvb-core: Store device structure in dvb_register_device Jasmin J.
2018-02-13 23:29 ` Jasmin J.
2017-12-21 13:22 ` [PATCH V2 2/3] media: dvb-core: Added timers for dvb_ca_en50221_write_data Jasmin J.
2018-02-13 23:29 ` Jasmin J.
2018-03-05 20:03 ` Mauro Carvalho Chehab
2017-12-21 13:22 ` [PATCH V2 3/3] media: dvb-core: Added documentation for ca sysfs timer nodes Jasmin J.
2018-02-13 23:29 ` Jasmin J.
2018-02-13 23:29 ` Jasmin J. [this message]
2018-02-18 20:55 ` [PATCH V2 0/3] Add timers to en50221 protocol driver Ralph Metzler
2018-02-18 21:18 ` Jasmin J.
2018-02-19 0:24 ` Ralph Metzler
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=ef72a382-5d30-526c-ae09-ed50d9d4790d@anw.at \
--to=jasmin@anw.at \
--cc=d.scheller@gmx.net \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@s-opensource.com \
--cc=rjkm@metzlerbros.de \
/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 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).