dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Shirish S <shirish.s12@gmail.com>
Cc: Jean Delvare <jdelvare@suse.de>,
	Shirish S <s.shirish@samsung.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm: edid: add support for E-DDC
Date: Wed, 22 Aug 2012 10:52:26 +0300	[thread overview]
Message-ID: <20120822075226.GD4421@intel.com> (raw)
In-Reply-To: <CAE=Z4VA7V5kkVzTMXDBqY7xR_mbeyArwhvfzL5+Vga=VrLagYQ@mail.gmail.com>

On Tue, Aug 21, 2012 at 04:28:20PM -0700, Shirish S wrote:
> On Tue, Aug 21, 2012 at 7:56 AM, Ville Syrjälä <
> ville.syrjala@linux.intel.com> wrote:
> 
> > On Tue, Aug 21, 2012 at 06:55:53AM -0700, Shirish S wrote:
> Here are my earlier comments on Jean's patch:
> > http://lists.freedesktop.org/archives/dri-devel/2012-February/019069.html
> >
> >
>  If i am not wrong am doing exactly what you have said in you comments.
> 
> This seems a bit wrong to me. The spec says that the ack for the
> segment address is "don't care", but for the segment pointer the ack is
> required (when segment != 0).
> The variable segFlags is "dont care for block 0 and 1 wheras".
> 
> With I2C_M_IGNORE_NAK we would in fact end up reading segment 0 from a
> non E-DDC display, if we try to read segment != 0 from it. Of course
> we shouldn't do that unless the display lied to us about what extension
> blocks it provides.
> 
> So I'm not sure if it would be better to trust that the display never
> lies about the extension blocks, or if we should just assume all E-DDC
> displays ack both segment addr and pointer. The no-ack feature seems
> to there for backwards compatibility, for cases where the host always
> sends the segment addr/pointer even when reading segment 0 (which your
> code doesn't do).
> 
> To handle it exactly as the spec says, I2C_M_IGNORE_NAK should be split
> into two flags (one for addr, other for data).
> 
> Hence i have split the i2c_msg into 3, segment pointer,offset(addr)
> and data pointer.

I was referring to the addr and data phases of the segment pointer.
According to the spec the ack for the addr is always optional. But I
suppose no sane device would nak the addr, while acking the data.

-- 
Ville Syrjälä
Intel OTC

  reply	other threads:[~2012-08-22  7:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21  7:10 [PATCH] drm: edid: add support for E-DDC Shirish S
2012-08-21  7:10 ` Shirish S
2012-08-21 10:31   ` Paul Menzel
2012-08-21 11:18   ` Daniel Vetter
2012-08-21 13:52     ` Shirish S
2012-08-21 11:26   ` Ville Syrjälä
2012-08-21 13:55     ` Shirish S
2012-08-21 14:56       ` Ville Syrjälä
2012-08-21 23:28         ` Shirish S
2012-08-22  7:52           ` Ville Syrjälä [this message]
2012-08-23  8:54             ` Daniel Vetter
2012-08-23 14:06               ` Shirish S
2012-08-23 23:23                 ` Daniel Vetter
2012-08-24  0:29                   ` Shirish S
2012-08-23 14:03             ` Shirish S
  -- strict thread matches above, loose matches on Subject: below --
2012-08-30  6:53 [PATCH V6] " y
2012-08-30  6:53 ` [PATCH] " y

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=20120822075226.GD4421@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jdelvare@suse.de \
    --cc=s.shirish@samsung.com \
    --cc=shirish.s12@gmail.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