Maarten Lankhorst
2012-Nov-08 16:19 UTC
[Nouveau] [PATCH] nouveau: fix acpi edid retrieval
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 at 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))) { status = connector_status_connected; goto out; }
Dear Maarten, thanks for the patch. Am Donnerstag, den 08.11.2012, 17:19 +0100 schrieb Maarten Lankhorst:> Commit c0077061e7eaPlease 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 at 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 at users.sourceforge.net> Thanks, Paul -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20121108/15d7b30d/attachment.pgp>
Maarten Lankhorst
2012-Nov-08 20:56 UTC
[Nouveau] [PATCH] nouveau: fix acpi edid retrieval
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 at 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 at users.sourceforge.net> > > > Thanks, > > Paul
Maybe Matching Threads
- [Bug 55412] New: Screen turns black during boot after driver tries to set mode on NV50
- [PATCH 1/5] drm: don't set the pci power state if the pci subsystem handles the ACPI bits
- [PATCH 1/5] drm: don't set the pci power state if the pci subsystem handles the ACPI bits
- [PATCH v2 1/4] drm: don't set the pci power state if the pci subsystem handles the ACPI bits
- [PATCH] drm: don't set the pci power state if the pci subsystem handles the ACPI bits