drm: atmel-hlcdc: actually disable scaling when no scaling is required
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 27 May 2016 14:09:25 +0000 (16:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:47:35 +0000 (09:47 -0700)
commitc6a2cb3a3b2431f2f8ebbac9b8fcc75f24e2e814
tree5d9d205e5587f3ad1d5aaae157873f55bd0b43cb
parentf956468c5b6ca1e4a1048564706b06b8fc4a79b2
drm: atmel-hlcdc: actually disable scaling when no scaling is required

commit 1b7e38b92b0bbd363369f5160f13f4d26140972d upstream.

The driver is only enabling scaling, but never disabling it, thus, if you
enable the scaling feature once it stays enabled forever.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Alex Vazquez <avazquez.dev@gmail.com>
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Fixes: 1a396789f65a ("drm: add Atmel HLCDC Display Controller support")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c