From: Jamie Lokier <jamie-yetKDKU6eevNLxjTenLetw@public.gmane.org>
To: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: Linus Walleij
<linus.ml.walleij-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org,
STEricsson_nomadik_linux-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org,
andrea.gallo-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org,
Linus Walleij
<linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
Subject: Re: [PATCH] ST DDC I2C bus driver v1
Date: Fri, 8 May 2009 18:19:33 +0100 [thread overview]
Message-ID: <20090508171933.GC8681@shareable.org> (raw)
In-Reply-To: <20090506083800.64de0104-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
Jean Delvare wrote:
> > By setting bit 7 resp bit 4 of I2C_CR it will be switched from
> > plain I2C to DDC1 or DDC2 respectively.
> >
> > I didn't add code for it since it cannot be tested on this
> > reference hardware, but if you like I can try to add that
> > in anyway. Would be a module parameter to select mode
> > plain I2C/DDC1/DDC2. Would that be nice?
>
> I am totally lost. To the best of my knowledge, DDC1 and DDC2 are
> protocols on top of I2C. Other I2C controllers don't have anything like
> a "DDC mode", they just do I2C and you can connect monitors if such is
> your desire.
No. (I really should finish and post my generic DDC driver at some point...)
The E-DDC specification *says* it's just an I2C bus, but that is not
reality if you want to work with real hardware of all ages and be robust.
DDC1 is not I2C at all, and it's not compatible with I2C.
DDC2 (actually it's DDC2B) and E-DDC are I2C, but both can get
confused when talking to a DDC1 or dual-mode device. The very first
data read over DDC2 can easily fail when it's to a dual-mode device.
Same if there has been no activity for 2 seconds.
With some devices and cables, DDC2 needs slower timings than I2C.
And you can (rarely but possibly) corrupt a monitor if you plug/unplug
it in the middle of a DDC2 transaction - something which is not
allowed for in true I2C - so all future attempts to read that
monitor's info fail the checksum. This is probably the reason for one
of the quirk workarounds in Linux's EDID code.
-- Jamie
prev parent reply other threads:[~2009-05-08 17:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 11:52 [PATCH] ST DDC I2C bus driver v1 Linus Walleij
[not found] ` <63386a3d0905050452v5ade99cav7265c38d74699a8c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-05 13:40 ` Ben Dooks
[not found] ` <20090505134002.GO32548-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2009-05-05 20:38 ` Jean Delvare
2009-05-05 21:04 ` Linus Walleij
[not found] ` <63386a3d0905051404oc7f4688j6b9219b3a9201172-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-06 6:38 ` Jean Delvare
[not found] ` <20090506083800.64de0104-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-05-08 17:19 ` Jamie Lokier [this message]
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=20090508171933.GC8681@shareable.org \
--to=jamie-yetkdku6eevnlxjtenletw@public.gmane.org \
--cc=STEricsson_nomadik_linux-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org \
--cc=andrea.gallo-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=linus.ml.walleij-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org \
--cc=linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).