* [PATCH] nouveau: fix acpi edid retrieval
@ 2012-11-08 16:19 Maarten Lankhorst
2012-11-08 20:53 ` Paul Menzel
0 siblings, 1 reply; 3+ messages in thread
From: Maarten Lankhorst @ 2012-11-08 16:19 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Commit c0077061e7ea 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-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
---
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))) {
status = connector_status_connected;
goto out;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] nouveau: fix acpi edid retrieval
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
0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2012-11-08 20:53 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: nouveau, dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1237 bytes --]
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.
> 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?
> status = connector_status_connected;
> goto out;
> }
Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>
Thanks,
Paul
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] nouveau: fix acpi edid retrieval
2012-11-08 20:53 ` Paul Menzel
@ 2012-11-08 20:56 ` Maarten Lankhorst
0 siblings, 0 replies; 3+ messages in thread
From: Maarten Lankhorst @ 2012-11-08 20:56 UTC (permalink / raw)
To: Paul Menzel; +Cc: nouveau, dri-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-08 20:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.