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)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 21 Jun 2016 12:15:11 +0000 (14:15 +0200)
commit1b7e38b92b0bbd363369f5160f13f4d26140972d
tree5ba8b7ab83751ce74c0fa6d0e1359c92acbaae2b
parent58a2ab3af722550b2e4e8155eb08660e16c20ee6
drm: atmel-hlcdc: actually disable scaling when no scaling is required

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")
Cc: <stable@vger.kernel.org>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c