From mboxrd@z Thu Jan 1 00:00:00 1970 From: p.zabel@pengutronix.de (Philipp Zabel) Date: Thu, 28 May 2015 13:13:28 +0200 Subject: [PATCH] drm: atmel_hlcdc: Add support for get_timings In-Reply-To: <20150526112853.688d26b7@bbrezillon> References: <1432199216-1139-1-git-send-email-davidcdueck@googlemail.com> <20150526112853.688d26b7@bbrezillon> Message-ID: <1432811608.3228.43.camel@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Boris, Am Dienstag, den 26.05.2015, 11:28 +0200 schrieb Boris Brezillon: > Hi David, > > On Thu, 21 May 2015 11:06:56 +0200 > David Dueck wrote: > > > drm_panel supports querying timing ranges. If the supplied mode does > > not work with the hlcdc we query the panel and try to find a suitable > > mode. > > This patch looks good to me. > > Philip, Thierry, could you confirm this is the correct way of dealing > with timing ranges. I wonder about two things: This implementation minimizes the sum of absolute differences between chosen and typical values. I wonder if it would be better to try and minimize the difference between the chosen and nominal vertical refresh rate. Is this something that should be done earlier, in create_panel_output, so that the connector's modes already contain the corrected settings? regards Philipp > > > > Signed-off-by: David Dueck > > --- > > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 118 +++++++++++++++++++---- > > 1 file changed, 98 insertions(+), 20 deletions(-) > > > > diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c > > index 9c45130..ea36c24 100644 > > --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c > > +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c > > @@ -20,6 +20,7 @@ > > */ > > > > #include > > +#include