drm/radeon: fix logic error in atombios_encoders.c
Subsystems (2)
PATCH 1/1 drm/radeon: fix logic error in atombios_encoders.c
From: Alex Deucher <[email protected]>
Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=50431
--- drivers/gpu/drm/radeon/atombios_encoders.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/atombios_encoders.c +1 -1
@@ -1625,7 +1625,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_SETUP ,0 ,0 );atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE ,0 ,0 );/* some early dce3.2 boards have a bug in their transmitter control table */ -if ((rdev->family !=CHIP_RV710 ) || (rdev->family !=CHIP_RV730 )) +if ((rdev->family !=CHIP_RV710 ) && (rdev->family !=CHIP_RV730 ))atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE_OUTPUT ,0 ,0 ); }if (ENCODER_MODE_IS_DP (atombios_get_encoder_mode (encoder)) && connector) {
Signature · 1 line
1.7.7.5
Quoted 8 lines · On Mit, 2012-11-14 at 09:13 -0500, [email protected] wrote:
From: Alex Deucher <[email protected]>
Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=50431Reported-by David Binderman <[email protected]>Signed-off-by Alex Deucher <[email protected]>
drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode) · line 1628
Quoted 13 lines
drivers/gpu/drm/radeon/atombios_encoders.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/gpu/drm/radeon/atombios_encoders.c +1
-1@@ -1625,7 +1625,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_SETUP ,0 ,0 );atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE ,0 ,0 );/* some early dce3.2 boards have a bug in their transmitter control table */ -if ((rdev->family !=CHIP_RV710 ) || (rdev->family !=CHIP_RV730 )) +if ((rdev->family !=CHIP_RV710 ) && (rdev->family !=CHIP_RV730 ))
Ouch, the compiler didn't warn about this always evaluating to true?
Signature · 2 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Debian, X and DRI developer
Quoted 16 lines · Michel Dänzer
Quoted 8 lines · On Mit, 2012-11-14 at 09:13 -0500, [email protected] wrote:
From: Alex Deucher <[email protected]>
Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=50431Reported-by David Binderman <[email protected]>Signed-off-by Alex Deucher <[email protected]>Reviewed-by Michel Dänzer <[email protected]>Quoted 3 lines
drivers/gpu/drm/radeon/atombios_encoders.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 12 lines
drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode) · line 1628
Quoted 10 lines
drivers/gpu/drm/radeon/atombios_encoders.c +1
-1@@ -1625,7 +1625,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_SETUP ,0 ,0 );atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE ,0 ,0 );/* some early dce3.2 boards have a bug in their transmitter control table */ -if ((rdev->family !=CHIP_RV710 ) || (rdev->family !=CHIP_RV730 )) +if ((rdev->family !=CHIP_RV710 ) && (rdev->family !=CHIP_RV730 ))Ouch, the compiler didn't warn about this always evaluating to true?
Nope. At least not on any of my machines.
Quoted 5 lines
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer