public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Steven Toth <stoth@kernellabs.com>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>,
	tonyc@wincomm.com.tw, Linux-Media <linux-media@vger.kernel.org>
Subject: Re: Adding support for three new Hauppauge HVR-1275 variants - testers reqd.
Date: Mon, 20 Jul 2015 20:28:05 +0300	[thread overview]
Message-ID: <55AD2FA5.6000309@iki.fi> (raw)
In-Reply-To: <CALzAhNV6mq6V-jYdjjwrYqtwkKQTgvAFOUhxBvHuAK0jAXZ7gQ@mail.gmail.com>

On 07/20/2015 08:14 PM, Steven Toth wrote:
> On Mon, Jul 20, 2015 at 12:54 PM, Antti Palosaari <crope@iki.fi> wrote:
>> On 07/20/2015 07:45 PM, Devin Heitmueller wrote:
>>>>
>>>> Look at the em28xx driver and you will probably see why it does not work
>>>> as
>>>> expected. For my eyes, according to em28xx driver, it looks like that bus
>>>> control is aimed for bridge driver. You or em28xx is wrong.
>>>
>>>
>>> Neither are wrong.  In some cases the call needs to be intercepted by
>>> the frontend in order to disable its TS output.  In other cases it
>>> needs to be intercepted by the bridge to control a MUX chip which
>>> dictates which demodulator's TS output to route from (typically by
>>> toggling a GPIO).
>>
>>
>> Quickly looking the existing use cases and I found only lgdt3306a demod
>> which uses that callback to control its TS interface. All the rest seems to
>> be somehow more related to bridge driver, mostly changing bridge TS IF or
>> leds etc.
>
> The API is flexible enough to be used by either the bridge
> intercepting the dvb_frontent_open operation, or by allowing the
> demodulator itself to act upon it. The API itself specifically
> describes the "TS BUS CONTROL" access, and whether something upstream
> of the demodulator wants a downstream device attached, or detached
> from the transport electrical interface.
>
> I see little point adding more bridge glue to route each dvb frontend
> into the cx23885-bridge and making a judgement based on the board
> type, when dvb-core is already effectively doing this, and has been
> for sometime. The caveat to this, is if you find a use-case that
> breaks the current driver in the current tip kernel. I currently do
> not see that.
>
>>
>> I don't simply see that correct solution for disabling demod TS IF - there
>> is sleep() for this kind of things - and as I pointed out it does not even
>> work for me em28xx based device because em28xx uses that routine to switch
>> own TS mode.
>
> Asking a demodulator to sleep/wake is absolutely not the same thing as
> asking it to stop/start driving electrical signals on a bus.
>
> We can agree or disagree about whether a part should be tri-stated in
> init/sleep() and under what circumstances, but why bother when someone
> has gone to the trouble of declaring a perfectly good tr-state
> interface in dvb-core, taht automatically asserts and de-asserts any
> dvb_frontend device from the bus, optionally.

Because I simply don't want to any new demod users for that callback 
unless needed for some strange reason. Disabling demod TS IF is also 
power-management issue. I didn't made any measurement how much current 
it will leak if any when left active on sleep, but it could do that.

Also as that callback is almost 100% currently used by bridge drivers, I 
don't want start using it for demods too. As you could see from em28xx 
case there is now situation it will not be called at all.

It was added by you by commit ba7e6f3e3e639de2597afffaae3fda75f6e6082d

V4L/DVB (4665): Add frontend structure callback for bus acquisition.

This patch enables generic bus arbitration callbacks enabling
dvbcore frontend_open and frontend_release to pass 'acquire'
and 'release' hardware messages back into the DVB bridge frameworks.
Frameworks like cx88 can then implement single bus multiple demod
card sharing features, which would prohibit two frontends from 
attempting to use a single transport bus at the same time.


... and commit message says it is aimed for bridge driver.


regards
Antti

-- 
http://palosaari.fi/

  reply	other threads:[~2015-07-20 17:28 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-18 22:21 Adding support for three new Hauppauge HVR-1275 variants - testers reqd Steven Toth
2015-07-19  7:34 ` Tycho Lürsen
2015-07-20 13:13   ` Steven Toth
2015-07-20 16:06     ` Tycho Lürsen
2015-07-20 16:32       ` Steven Toth
2015-07-21 16:11         ` Tycho Lürsen
2015-07-21 16:19           ` Steven Toth
2015-07-21 18:07             ` Tycho Lürsen
2015-07-21 18:59               ` Tycho Lürsen
2015-07-21 19:02                 ` Steven Toth
2015-07-21 19:21                   ` Tycho Lürsen
2015-07-21 19:00               ` Steven Toth
2015-07-21 21:33                 ` Tycho Lürsen
2015-07-22  7:15                 ` Tycho Lürsen
2015-07-22 12:55                   ` Steven Toth
2015-07-22 17:44                     ` Tycho Lürsen
2015-07-24 13:38                       ` Steven Toth
2015-07-20  0:52 ` Tony Chang(Wincomm)
     [not found] ` <1454427BAA91444C85615ABB9382A2DE@wincomm.com.tw>
2015-07-20 12:38   ` Steven Toth
2015-07-20 14:30 ` Antti Palosaari
2015-07-20 15:00   ` Steven Toth
2015-07-20 16:35     ` Antti Palosaari
2015-07-20 16:45       ` Devin Heitmueller
2015-07-20 16:54         ` Antti Palosaari
2015-07-20 17:14           ` Steven Toth
2015-07-20 17:28             ` Antti Palosaari [this message]
2015-07-20 19:04               ` Steven Toth

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=55AD2FA5.6000309@iki.fi \
    --to=crope@iki.fi \
    --cc=dheitmueller@kernellabs.com \
    --cc=linux-media@vger.kernel.org \
    --cc=stoth@kernellabs.com \
    --cc=tonyc@wincomm.com.tw \
    /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