dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@canonical.com>
To: Paul Menzel <paulepanter@users.sourceforge.net>
Cc: nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] nouveau: fix acpi edid retrieval
Date: Thu, 08 Nov 2012 21:56:59 +0100	[thread overview]
Message-ID: <509C1C9B.20402@canonical.com> (raw)
In-Reply-To: <1352407992.4254.4.camel@mattotaupa>

Op 08-11-12 21:53, Paul Menzel schreef:
> Dear Maarten,
>
>
> thanks for the patch.
>
>
> Am Donnerstag, den 08.11.2012, 17:19 +0100 schrieb Maarten Lankhorst:
>> Commit c0077061e7ea
> Please paste the commit summary for people not having a Git tree at
> hand.

The summary will go in the commit log, at which point you can simply do a search for it. :-)
But yeah maybe add it for the record.

"Commit c0077061e7ea (drm/nouveau/acpi: move definitions out of nouveau_drv.h)"

>> accidentally inverted the logic for nouveau_acpi_edid, causing it to
>> only show a connector as connected when the edid could not be retrieved with acpi.
>>
>> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
>> ---
>> diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
>> index 9a6e2cb..d3595b2 100644
>> --- a/drivers/gpu/drm/nouveau/nouveau_connector.c
>> +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
>> @@ -355,7 +355,7 @@ nouveau_connector_detect_lvds(struct drm_connector *connector, bool force)
>>  	 * valid - it's not (rh#613284)
>>  	 */
>>  	if (nv_encoder->dcb->lvdsconf.use_acpi_for_edid) {
>> -		if (!(nv_connector->edid = nouveau_acpi_edid(dev, connector))) {
>> +		if ((nv_connector->edid = nouveau_acpi_edid(dev, connector))) {
> One pair of parentheses can go now?
No, gcc will warn about it if you try, since it's an assignment not a equality operator.
>>  			status = connector_status_connected;
>>  			goto out;
>>  		}
> Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>
>
>
> Thanks,
>
> Paul

      reply	other threads:[~2012-11-08 20:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 16:19 [PATCH] nouveau: fix acpi edid retrieval Maarten Lankhorst
2012-11-08 20:53 ` Paul Menzel
2012-11-08 20:56   ` Maarten Lankhorst [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=509C1C9B.20402@canonical.com \
    --to=maarten.lankhorst@canonical.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=nouveau@lists.freedesktop.org \
    --cc=paulepanter@users.sourceforge.net \
    /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