diff mbox

PULL request

Message ID 20090212084356.7a921ce0@pedra.chehab.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Mauro Carvalho Chehab Feb. 12, 2009, 10:43 a.m. UTC
On Wed, 11 Feb 2009 11:48:56 +0100 (CET)
Patrick Boettcher <patrick.boettcher@desy.de> wrote:

> Hi Mauro,
> 
> I pushed several changesets to my tree and would like to ask you to pull 
> them.

I'm assuming that you want me to pull from http://linuxtv.org/hg/~pb/v4l-dvb/, right?

Please, next time specify the pull url, since people may have more than one tree there.


> 
> - [PATCH] Add support for Winfast Dongle Hybrid
> - [PATCH] Emtec S810 (1164:2edc) support
> - [PATCH] Add Elgato EyeTV Diversity to dibcom driver

Hmm...

@@ -1774,7 +1775,7 @@ struct dvb_usb_device_properties dib0700
                        },
                },
 
-               .num_device_descs = 5,
+               .num_device_descs = 7,
                .devices = {
                        {   "Terratec Cinergy HT USB XE",
                                { &dib0700_usb_id_table[27], NULL },
@@ -1798,6 +1799,10 @@ struct dvb_usb_device_properties dib0700
                        },
                        {   "Asus My Cinema-U3000Hybrid",
                                { &dib0700_usb_id_table[39], NULL },
+                               { NULL },
+                       },
+                       {   "Leadtek Winfast Dongle Hybrid",
+                               { &dib0700_usb_id_table[46], NULL },
                                { NULL },
                        },

Just one card were added, but the count were incremented twice... It seems that
this patch contains a fix for Asus My Cinema-U3000Hybrid (btw, this reminds me
that ARRAY_SIZE() discussion we had).

Hmm...

$ hg log -r 9042 
changeset:   9042:80e9cb79ad03
user:        Patrick Boettcher <pb@linuxtv.org>
date:        Sun Sep 07 17:43:33 2008 +0200
summary:     Add support for Asus My Cinema U3000 Hybrid

September, 2008. For sure this were already sent upstream. We should break this
into two separate patches, and send the fix patch upstream. Could you please do
it?

> - Wipe out an obsolete documentation about Flexcop refactoring
> - documentation fix for /Documentation/dvb/technisat.txt
> 
> The most important one is
> 
> - [PATCH] software IRQ watchdog for Flexcop B2C2 DVB PCI cards

Hmm... is it really necessary to have a 1ms udelay here? As you know, udelay()
will run a do-nothing loop blocking the CPU until it finishes, while msleep()
calls schedule(), letting the processor to do something else while waiting.

There are very few cases where udelay() should be used: when the time should be
very precise. For most cases, msleep() do a better job.

> which fixes a problem with the recently added 2.8 revsion of the Technisat 
> SkyStar2. If possible we should get that into 2.6.29 in order to have a 
> proper support for this card.

Ok, after pulling it, I'll add to 2.6.29 upstream series.


Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Patrick Boettcher Feb. 12, 2009, 11:04 a.m. UTC | #1
Hi Mauro,

thanks for your review.

On Thu, 12 Feb 2009, Mauro Carvalho Chehab wrote:
> I'm assuming that you want me to pull from http://linuxtv.org/hg/~pb/v4l-dvb/, right?
>
> Please, next time specify the pull url, since people may have more than one tree there.

Exactly. I only have one repository. I tried to avoid redundant 
information :).

*ahem*

Not true: I forgot to mention it, sorry.

>> - [PATCH] Add support for Winfast Dongle Hybrid
>> - [PATCH] Emtec S810 (1164:2edc) support
>> - [PATCH] Add Elgato EyeTV Diversity to dibcom driver
>
> Hmm...
> September, 2008. For sure this were already sent upstream. We should break this
> into two separate patches, and send the fix patch upstream. Could you please do
> it?

Forget those patches for now. I'll check on it again.

>> - Wipe out an obsolete documentation about Flexcop refactoring
>> - documentation fix for /Documentation/dvb/technisat.txt
>>
>> The most important one is
>>
>> - [PATCH] software IRQ watchdog for Flexcop B2C2 DVB PCI cards
>
> --- a/linux/drivers/media/dvb/b2c2/flexcop.c    Wed Feb 11 11:30:08 2009 +0100
> +++ b/linux/drivers/media/dvb/b2c2/flexcop.c    Wed Feb 11 11:45:09 2009 +0100
> @@ -212,8 +212,7 @@ void flexcop_reset_block_300(struct flex
>        v210.sw_reset_210.Block_reset_enable = 0xb2;
>
>        fc->write_ibi_reg(fc,sw_reset_210,v210);
> -       msleep(1);
> -
> +       udelay(1000);
>        fc->write_ibi_reg(fc,ctrl_208,v208_save);
> }
>
> Hmm... is it really necessary to have a 1ms udelay here? As you know, udelay()
> will run a do-nothing loop blocking the CPU until it finishes, while msleep()
> calls schedule(), letting the processor to do something else while waiting.

As this function is called from within a spin_lock-protected area (inside 
a delayed_work) I have no choice, because calling schedule() is not 
allowed when being (close to) IRQ-level.

> There are very few cases where udelay() should be used: when the time should be
> very precise. For most cases, msleep() do a better job.

It might be, that his delay here is unnecessary, but I'm not sure. That's 
why I'd like to keep the udelay here for now, for 2.6.29 and maybe remove 
the delay entirely for 2.6.30 and see what the testers are reporting. 
(locally I will remove it for personal testing, but it will takes some 
weeks before I can be sure).

> Ok, after pulling it, I'll add to 2.6.29 upstream series.

Thanks,
Patrick.

--
   Mail: patrick.boettcher@desy.de
   WWW:  http://www.wi-bw.tfh-wildau.de/~pboettch/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mauro Carvalho Chehab Feb. 12, 2009, 1:41 p.m. UTC | #2
On Thu, 12 Feb 2009 12:04:29 +0100 (CET)
Patrick Boettcher <patrick.boettcher@desy.de> wrote:

> Hi Mauro,
> 
> thanks for your review.
> 
> On Thu, 12 Feb 2009, Mauro Carvalho Chehab wrote:
> > I'm assuming that you want me to pull from http://linuxtv.org/hg/~pb/v4l-dvb/, right?
> >
> > Please, next time specify the pull url, since people may have more than one tree there.
> 
> Exactly. I only have one repository. I tried to avoid redundant 
> information :).
> 
> *ahem*
> 
> Not true: I forgot to mention it, sorry.

:)

No problem.

> > Hmm...
> > September, 2008. For sure this were already sent upstream. We should break this
> > into two separate patches, and send the fix patch upstream. Could you please do
> > it?
> 
> Forget those patches for now. I'll check on it again.

Ok.

> > Hmm... is it really necessary to have a 1ms udelay here? As you know, udelay()
> > will run a do-nothing loop blocking the CPU until it finishes, while msleep()
> > calls schedule(), letting the processor to do something else while waiting.
> 
> As this function is called from within a spin_lock-protected area (inside 
> a delayed_work) I have no choice, because calling schedule() is not 
> allowed when being (close to) IRQ-level.

Ah, ok. In this case, you can't use a sleep function, so udelay() is fine. Yet,
waiting for 1ms seems to much on my eyes, especially if this code is called to often.

> > There are very few cases where udelay() should be used: when the time should be
> > very precise. For most cases, msleep() do a better job.
> 
> It might be, that his delay here is unnecessary, but I'm not sure. That's 
> why I'd like to keep the udelay here for now, for 2.6.29 and maybe remove 
> the delay entirely for 2.6.30 and see what the testers are reporting. 
> (locally I will remove it for personal testing, but it will takes some 
> weeks before I can be sure).

Seems fine to me.

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/linux/drivers/media/dvb/b2c2/flexcop.c    Wed Feb 11 11:30:08 2009 +0100
+++ b/linux/drivers/media/dvb/b2c2/flexcop.c    Wed Feb 11 11:45:09 2009 +0100
@@ -212,8 +212,7 @@  void flexcop_reset_block_300(struct flex
        v210.sw_reset_210.Block_reset_enable = 0xb2;
 
        fc->write_ibi_reg(fc,sw_reset_210,v210);
-       msleep(1);
-
+       udelay(1000);
        fc->write_ibi_reg(fc,ctrl_208,v208_save);
 }