linux-brain/drivers/gpu/drm/atmel-hlcdc
Peter Rosin 5b442859ab drm: atmel-hlcdc: prefer a lower pixel-clock than requested
commit 51a19d150b520f6cb42143f3bdffacd3c33d7ac5 upstream.

The intention was to only select a higher pixel-clock rate than the
requested, if a slight overclocking would result in a rate significantly
closer to the requested rate than if the conservative lower pixel-clock
rate is selected. The fixed patch has the logic the other way around and
actually prefers the higher frequency. Fix that.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Fixes: 9946a3a9db ("drm/atmel-hlcdc: allow selecting a higher pixel-clock than requested")
Reported-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Tested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: <stable@vger.kernel.org> # v4.20+
Link: https://patchwork.freedesktop.org/patch/msgid/1576672109-22707-6-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-11 04:35:36 -08:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel_hlcdc_crtc.c drm: atmel-hlcdc: prefer a lower pixel-clock than requested 2020-02-11 04:35:36 -08:00
atmel_hlcdc_dc.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
atmel_hlcdc_dc.h Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
atmel_hlcdc_output.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
atmel_hlcdc_plane.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00