From: Stefan Ringel <stefan.ringel@arcor.de>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: linux-media@vger.kernel.org, dheitmueller@kernellabs.com
Subject: Re: [PATCH 6/12] tm6000: tuner reset timeing optimation
Date: Wed, 10 Feb 2010 16:59:12 +0100 [thread overview]
Message-ID: <4B72D7D0.9030304@arcor.de> (raw)
In-Reply-To: <4B6FF418.3000303@redhat.com>
Am 08.02.2010 12:23, schrieb Mauro Carvalho Chehab:
> stefan.ringel@arcor.de wrote:
>
>> From: Stefan Ringel <stefan.ringel@arcor.de>
>>
>> Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
>> ---
>> drivers/staging/tm6000/tm6000-cards.c | 11 +++++++----
>> 1 files changed, 7 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/staging/tm6000/tm6000-cards.c b/drivers/staging/tm6000/tm6000-cards.c
>> index 1167b01..5cf5d58 100644
>> --- a/drivers/staging/tm6000/tm6000-cards.c
>> +++ b/drivers/staging/tm6000/tm6000-cards.c
>> @@ -271,11 +271,14 @@ static int tm6000_tuner_callback(void *ptr, int component, int command, int arg)
>> switch (arg) {
>> case 0:
>> tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN,
>> + dev->tuner_reset_gpio, 0x01);
>> + msleep(60);
>> + tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN,
>> dev->tuner_reset_gpio, 0x00);
>> - msleep(130);
>> + msleep(75);
>> tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN,
>> dev->tuner_reset_gpio, 0x01);
>> - msleep(130);
>> + msleep(60);
>> break;
>> case 1:
>> tm6000_set_reg (dev, REQ_04_EN_DISABLE_MCU_INT,
>> @@ -288,10 +291,10 @@ static int tm6000_tuner_callback(void *ptr, int component, int command, int arg)
>> TM6000_GPIO_CLK, 0);
>> if (rc<0)
>> return rc;
>> - msleep(100);
>> + msleep(10);
>> rc=tm6000_set_reg (dev, REQ_03_SET_GET_MCU_PIN,
>> TM6000_GPIO_CLK, 1);
>> - msleep(100);
>> + msleep(10);
>> break;
>> }
>> }
>>
> This sequence and the timeouts are board-specific. Please add a switch(dev->model) and
> test for your specific board, since your sequence will break for example 10moons, where
> you really need a longer delay to work.
>
>
What for tuner modell have you, xc2028, xc3028 or xc3028L ? I have
xc3028L, And it can reset faster. I'm adding a switch(dev->modell).
--
Stefan Ringel <stefan.ringel@arcor.de>
next prev parent reply other threads:[~2010-02-10 15:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 23:04 [PATCH 6/12] tm6000: tuner reset timeing optimation stefan.ringel
2010-02-08 11:23 ` Mauro Carvalho Chehab
2010-02-10 15:59 ` Stefan Ringel [this message]
2010-02-10 16:08 ` Mauro Carvalho Chehab
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=4B72D7D0.9030304@arcor.de \
--to=stefan.ringel@arcor.de \
--cc=dheitmueller@kernellabs.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/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