<div dir="ltr">Hi Daniel,<div><br><div>I've modified my patches and resend them, hope I do the right work flow this time.</div><div>I am not good at english, so please forgive my dull :-(</div><div>I spent about two hours to figure out what does the "sob line missing" means.</div><div>sob means Signed-off-by in case some others don't know. :-)</div><div><br></div><div>Please don't hesitate to criticize if I think I didn't do the right thing.</div><div><br></div><div>Thanks, John</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 4:21 PM, Daniel Vetter <span dir="ltr"><<a href="mailto:daniel@ffwll.ch" target="_blank">daniel@ffwll.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Mar 15, 2015 at 08:59:11PM +0800, John Hunter wrote:<br>
> I'm not sure whether this is right, as far as I can see, for the<br>
> macro 'list_for_each_entry', if not use the tmp_connector, it does<br>
> make sense.<br>
><br>
> Hope I am right with that.<br>
<br>
</span>Nice catch and looks correct. But please follow patch submission<br>
guidelines from Documentation/SubmittingPatches. Here specifically:<br>
- sob line missing<br>
- Additional comments/questions should be below a line with just '---' so<br>
that git apply-mbox drops it.<br>
- Polish the commit message a bit. This wasn't too harmful since we<br>
already look at connector, which has the same effect as the loop for any<br>
non-cloned configs. Only when we have a cloned configuration is it<br>
important to look at other connectors. Furthermore existing userspace<br>
always changes dpms on all of them anyway.<br>
<br>
Thanks, Daniel<br>
<span class="im HOEnZb">> ---<br>
> drivers/gpu/drm/drm_atomic_helper.c | 4 ++--<br>
> 1 file changed, 2 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c<br>
> index bc17019..2abded1 100644<br>
> --- a/drivers/gpu/drm/drm_atomic_helper.c<br>
> +++ b/drivers/gpu/drm/drm_atomic_helper.c<br>
> @@ -2027,10 +2027,10 @@ retry:<br>
> WARN_ON(!drm_modeset_is_locked(&config->connection_mutex));<br>
><br>
> list_for_each_entry(tmp_connector, &config->connector_list, head) {<br>
> - if (connector->state->crtc != crtc)<br>
> + if (tmp_connector->state->crtc != crtc)<br>
> continue;<br>
><br>
> - if (connector->dpms == DRM_MODE_DPMS_ON) {<br>
> + if (tmp_connector->dpms == DRM_MODE_DPMS_ON) {<br>
> active = true;<br>
> break;<br>
> }<br>
> --<br>
> 1.9.1<br>
><br>
><br>
> _______________________________________________<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>
<br>
</span><span class="HOEnZb"><font color="#888888">--<br>
Daniel Vetter<br>
Software Engineer, Intel Corporation<br>
+41 (0) 79 365 57 48 - <a href="http://blog.ffwll.ch" target="_blank">http://blog.ffwll.ch</a><br>
</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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards<br></div><div>Junwang Zhao</div><div>Microprocessor Research and Develop Center</div><div>Department of Computer Science &Technology</div><div>Peking University</div><div>Beijing, 100871, PRC</div></div></div>
</div>