<br><br><div class="gmail_quote">On Wed, Aug 29, 2012 at 4:08 AM, Ville Syrjälä <span dir="ltr"><<a href="mailto:ville.syrjala@linux.intel.com" target="_blank">ville.syrjala@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Aug 25, 2012 at 03:13:56PM +0530, Shirish S wrote:<br>
</div><div><div class="h5">> The current logic for probing ddc is limited to<br>
> 2 blocks (256 bytes), this patch adds support<br>
> for the 4 block (512) data.<br>
><br>
> To do this, a single 8-bit segment index is<br>
> passed to the display via the I2C address 30h.<br>
> Data from the selected segment is then immediately<br>
> read via the regular DDC2 address using a repeated<br>
> I2C 'START' signal.<br>
><br>
> Signed-off-by: Shirish S <<a href="mailto:s.shirish@samsung.com">s.shirish@samsung.com</a>><br>
> ---<br>
> drivers/gpu/drm/drm_edid.c | 22 ++++++++++++++++++----<br>
> 1 files changed, 18 insertions(+), 4 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c<br>
> index a8743c3..cde7af0 100644<br>
> --- a/drivers/gpu/drm/drm_edid.c<br>
> +++ b/drivers/gpu/drm/drm_edid.c<br>
> @@ -254,6 +254,8 @@ drm_do_probe_ddc_edid(struct i2c_adapter *adapter, unsigned char *buf,<br>
> int block, int len)<br>
> {<br>
> unsigned char start = block * EDID_LENGTH;<br>
> + unsigned char segment = block >> 1;<br>
> + unsigned char xfers = segment ? 3 : 2;<br>
> int ret, retries = 5;<br>
><br>
> /* The core i2c driver will automatically retry the transfer if the<br>
> @@ -264,7 +266,12 @@ drm_do_probe_ddc_edid(struct i2c_adapter *adapter, unsigned char *buf,<br>
> */<br>
> do {<br>
> struct i2c_msg msgs[] = {<br>
> - {<br>
> + { /*set segment pointer */<br>
<br>
</div></div>Missing whitespace after '/*'. Perhaps just drop the comment. I don't<br>
see much value in it.<br>
<div class="im"><br></div></blockquote><div>Done. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> + .addr = DDC_SEGMENT_ADDR,<br>
> + .flags = segment ? 0 : I2C_M_IGNORE_NAK,<br>
> + .len = 1,<br>
> + .buf = &segment,<br>
> + }, {<br>
> .addr = DDC_ADDR,<br>
> .flags = 0,<br>
> .len = 1,<br>
> @@ -276,15 +283,22 @@ drm_do_probe_ddc_edid(struct i2c_adapter *adapter, unsigned char *buf,<br>
> .buf = buf,<br>
> }<br>
> };<br>
> - ret = i2c_transfer(adapter, msgs, 2);<br>
> + /* Avoid sending the segment addr to not upset non-compliant ddc<br>
> + * monitors.<br>
> + */<br>
<br>
</div>Wrong indentation and comment style is wrong. I'm guessing this didn't go<br>
through <a href="http://checkpatch.pl" target="_blank">checkpatch.pl</a>.<br>
<br></blockquote><div>I never got tha above as either an error or warning in the checkpatch,</div><div>anyways have uploaded patch set 5 incorporating your comments. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Otherwise looks OK to me.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Ville Syrjälä<br>
Intel OTC<br></font></span></blockquote><div><br></div><div>- Shirish </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
dri-devel mailing list<br>
<a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dri-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</div></div></blockquote></div><br>