Re: [PATCH] drm/sysfb: ofdrm: Fix is_avivo() constant comparison bug
Thomas Zimmermann <[email protected]>
| Newsgroups | org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Am 25.08.26 um 12:41 schrieb [email protected]: > From: Shixiong Ou <[email protected]> > > The is_avivo() function has a logic error where it compares a constant > to another constant instead of checking the device parameter: > > (PCI_VENDOR_ID_ATI_R600 >= 0x9400) > > Signed-off-by: Shixiong Ou <[email protected]> I see this is a recent of an earlier patch I missed. I've r-b'ed that one and will merged it soon. Thanks for the fix. Best regards Thomas > --- > drivers/gpu/drm/sysfb/ofdrm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/sysfb/ofdrm.c b/drivers/gpu/drm/sysfb/ofdrm.c > index 819aed466727..1d95df522ad5 100644 > --- a/drivers/gpu/drm/sysfb/ofdrm.c > +++ b/drivers/gpu/drm/sysfb/ofdrm.c > @@ -238,7 +238,7 @@ static bool is_avivo(u32 vendor, u32 device) > /* This will match most R5xx */ > return (vendor == PCI_VENDOR_ID_ATI) && > ((device >= PCI_VENDOR_ID_ATI_R520 && device < 0x7800) || > - (PCI_VENDOR_ID_ATI_R600 >= 0x9400)); > + (device >= PCI_VENDOR_ID_ATI_R600)); > } > > static enum ofdrm_model display_get_model_of(struct drm_device *dev, struct device_node *of_node) -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, (HRB 36809, AG Nürnberg)