From: Roland Scheidegger <rscheidegger_lists@hispeed.ch>
To: Pauli Borodulin <pauli@borodulin.fi>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] Updated Mantis VP-2033 remote control patch for Manu's jusst.de Mantis branch
Date: Mon, 19 May 2008 19:47:22 +0200 [thread overview]
Message-ID: <4831BD2A.3040609@hispeed.ch> (raw)
In-Reply-To: <4831B058.1030107@borodulin.fi>
On 19.05.2008 18:52, Pauli Borodulin wrote:
> Heya!
>
>> On 5/17/08, Pauli Borodulin <pauli@borodulin.fi> wrote:
>>> Since there has been some direct requests for this via email, I'm
>>> posting a updated version of Kristian Slavov's original remote control
>>> patch[1] for Manu's jusst.de Mantis branch. The new version is
>>> functionally the same as the one I posted in March[2].
>>> [...]
>
> Markus Rechberger wrote:
>> +int mantis_rc_exit(struct mantis_pci *mantis)
>> +{
>> + mmwrite(mmread(MANTIS_INT_MASK) & (~MANTIS_INT_IRQ1),
>> MANTIS_INT_MASK);
>> +
>> + cancel_delayed_work(&mantis->ir.rc_query_work);
>> + input_unregister_device(mantis->ir.rc_dev);
>> + dprintk(verbose, MANTIS_DEBUG, 1, "RC unregistered");
>> + return 0;
>> +}
>>
>> this might be dangerous when unloading the driver because the callback
>> function might still be running after cancel_delayed_work.
>> I ran into that problem a while ago and it could lock up the whole
>> input system.
>> [...]
>
> Thanks Markus! I created a revised version of the patch with call to
> flush_scheduled_work() after calling cancel_delayed_work. I also changed
> RC polling a bit so that it would work alike on different kernel
> configurations (thanks go to Kristian Slavov for pointing this out).
>
> The patch is against
> http://www.jusst.de/hg/mantis/archive/b14e79e460fc.tar.bz2.
No offense, but I like my patch much better :-) [1]. I fail to see why
polling has to be done - just for half-working (at best on some cards,
not at all if the native repeat rate is too low) "improved" auto-repeat.
I was under the impression that using cancel_rearming_delayed_work
instead of cancel_delayed_work (as I did in my patch) would make it
unnecessary to call flush_scheduled_work (but I just followed some other
drivers and could be easily wrong).
As for the IR codes being in common ir code, I didn't care but the
dvb-usb driver also uses its own tables - though I see this driver
probably has reasons to do so.
[1]http://www.linuxtv.org/pipermail/linux-dvb/2008-May/026102.html
Roland
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next prev parent reply other threads:[~2008-05-19 17:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-16 22:57 [linux-dvb] Updated Mantis VP-2033 remote control patch for Manu's jusst.de Mantis branch Pauli Borodulin
2008-05-16 23:21 ` Markus Rechberger
2008-05-19 16:52 ` Pauli Borodulin
2008-05-19 17:47 ` Roland Scheidegger [this message]
[not found] ` <4831B70D.8050809@tungstengraphics.com>
2008-05-19 18:51 ` Pauli Borodulin
2008-05-19 23:47 ` Roland Scheidegger
[not found] ` <48320E0B.8090501@tungstengraphics.com>
2008-05-20 6:16 ` Pauli Borodulin
2008-05-20 12:05 ` Roland Scheidegger
2008-05-20 12:30 ` Pauli Borodulin
2008-05-24 2:22 ` Chris Hodgkins
2008-05-24 2:21 ` Chris Hodgkins
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=4831BD2A.3040609@hispeed.ch \
--to=rscheidegger_lists@hispeed.ch \
--cc=linux-dvb@linuxtv.org \
--cc=pauli@borodulin.fi \
/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.