]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
drm/radeon/kms: fix resume regression for some r5xx laptops
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 19 Nov 2010 23:27:04 +0000 (23:27 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Nov 2010 02:02:04 +0000 (12:02 +1000)
I had removed this when I switched the atom indirect io methods
to use the io bar rather than the mmio bar, but it appears it's
still needed.

Reported-by: Mark Lord <kernel@teksavvy.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atom.c

index 8e421f644a5435d44b6a0bc26f0edf3039b78c21..05efb5b9f13e841d265e3219d33e279e781de22f 100644 (file)
@@ -112,6 +112,7 @@ static uint32_t atom_iio_execute(struct atom_context *ctx, int base,
                        base += 3;
                        break;
                case ATOM_IIO_WRITE:
+                       (void)ctx->card->ioreg_read(ctx->card, CU16(base + 1));
                        ctx->card->ioreg_write(ctx->card, CU16(base + 1), temp);
                        base += 3;
                        break;