LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Hans-Peter Jansen <hpj@urpla.net>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-dvb-maintainer@linuxtv.org, video4linux-list@redhat.com,
linux-kernel@vger.kernel.org
Subject: Re: [GIT PATCHES] V4L/DVB fixes
Date: Wed, 9 Jan 2008 16:43:51 +0100 [thread overview]
Message-ID: <200801091643.52658.hpj@urpla.net> (raw)
In-Reply-To: <20080107073818.368243b9@gaivota>
Am Montag, 7. Januar 2008 schrieb Mauro Carvalho Chehab:
>
> Hans Verkuil (1):
> V4L/DVB (6916): ivtv: udelay has to be changed *after* the eeprom
> was read, not before
boils down to this patch:
89dab3573aa1d95fd222ee4551f964bfa4c16823
drivers/media/video/ivtv/ivtv-driver.c | 4 ++++
drivers/media/video/ivtv/ivtv-i2c.c | 5 +----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/media/video/ivtv/ivtv-driver.c
b/drivers/media/video/ivtv/ivtv-driver.c
index 6d2dd87..10d6faf 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -1076,6 +1076,10 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
ivtv_process_eeprom(itv);
}
+ /* The mspx4xx chips need a longer delay for some reason */
+ if (!(itv->hw_flags & IVTV_HW_MSP34XX))
+ itv->i2c_algo.udelay = 5;
+
if (itv->std == 0) {
itv->std = V4L2_STD_NTSC_M;
}
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c
b/drivers/media/video/ivtv/ivtv-i2c.c
index 44678fe..36e54f7 100644
--- a/drivers/media/video/ivtv/ivtv-i2c.c
+++ b/drivers/media/video/ivtv/ivtv-i2c.c
@@ -541,7 +541,7 @@ static const struct i2c_algo_bit_data
ivtv_i2c_algo_template = {
.setscl = ivtv_setscl_old,
.getsda = ivtv_getsda_old,
.getscl = ivtv_getscl_old,
- .udelay = 5,
+ .udelay = 10,
.timeout = 200,
};
@@ -718,9 +718,6 @@ int init_ivtv_i2c(struct ivtv *itv)
sizeof(struct i2c_adapter));
memcpy(&itv->i2c_algo, &ivtv_i2c_algo_template,
sizeof(struct i2c_algo_bit_data));
- /* The mspx4xx chips need a longer delay for some reason */
- if (itv->hw_flags & IVTV_HW_MSP34XX)
- itv->i2c_algo.udelay = 10;
itv->i2c_algo.data = itv;
itv->i2c_adap.algo_data = &itv->i2c_algo;
}
where the logic in hunk #1 was switched, resulting in a now misleading
comment over there.
How about something in the line of:
/*
* We started with a bigger udelay in order to fulfill the needs of the
* mspx4xx chips: cut it down here for all other members of the family.
*/
Cheers,
Pete
next prev parent reply other threads:[~2008-01-09 15:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-07 9:38 Mauro Carvalho Chehab
2008-01-09 15:43 ` Hans-Peter Jansen [this message]
2008-01-09 18:30 ` Mauro Carvalho Chehab
-- strict thread matches above, loose matches on Subject: below --
2008-02-12 21:02 Mauro Carvalho Chehab
2008-01-11 21:42 Mauro Carvalho Chehab
2007-12-13 22:45 Mauro Carvalho Chehab
2007-12-12 1:05 Mauro Carvalho Chehab
2007-11-04 23:18 Mauro Carvalho Chehab
2007-10-17 17:17 Mauro Carvalho Chehab
2007-09-14 16:41 Mauro Carvalho Chehab
2007-08-23 17:04 Mauro Carvalho Chehab
2007-08-20 19:55 Mauro Carvalho Chehab
2007-07-30 19:15 Mauro Carvalho Chehab
2007-07-03 19:20 Mauro Carvalho Chehab
2007-06-09 11:13 Mauro Carvalho Chehab
2007-05-13 16:38 Mauro Carvalho Chehab
2007-03-26 3:36 Mauro Carvalho Chehab
2007-03-26 21:55 ` Linus Torvalds
2007-03-27 11:57 ` Mauro Carvalho Chehab
2007-03-27 16:24 ` Linus Torvalds
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=200801091643.52658.hpj@urpla.net \
--to=hpj@urpla.net \
--cc=akpm@linux-foundation.org \
--cc=linux-dvb-maintainer@linuxtv.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=torvalds@linux-foundation.org \
--cc=video4linux-list@redhat.com \
--subject='Re: [GIT PATCHES] V4L/DVB fixes' \
/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
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).