Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2074886ybp; Thu, 10 Oct 2019 01:43:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOEc2PHk1jg9CkJK0ktjhoHfEaMcSo0iNA+nSHWOPMDHQKCDFGF+FZOQA6XogKB/6vpOsd X-Received: by 2002:a17:906:11d8:: with SMTP id o24mr7019882eja.224.1570697039840; Thu, 10 Oct 2019 01:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570697039; cv=none; d=google.com; s=arc-20160816; b=o4a+wGRMDVb/g6prQRZhStI6pyThp106RgreZHm2ZoJnItI5Uacri9+2Oka3EiGSLO cDrufIO36Y0nHeIlNl0J8BJWvtL3+6CDnQ4x5+CrVohIV1BKZQIwGfpnz4WKftcNqEoG bzKt+XJfXaMLkTOv+7I+hPQYfbSNs7i9h71cfk+fvA2C8tFDwVv+BCjAEqtRgxdBK20U 1prc3uZaSg3fFyu+EBBJCgQpaCtIM8My+vc4aVGJFGSblrpqnuOSVc7vpyaI6U610nhP P8FQstoK8e4EIrTuKo0VJWVtrKdfJWcnCjpXiXAnhyEFrEfC8ZaFpiJEUSAF2qPvwf58 P4Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z1Uo4cB9yOSynznXlmaxJHonESqz8I5Vaw6TZHLVr5I=; b=wV9O+xHXPx/EVgAS+kty3qx38f+W9mm0YQrzfzzEIuoURduewHa3XXyCJSfqTXJoxK 1NrLIo1xD1mqGvGrm1yiVnukA1nWSztuW7qie7NiS6wAvJGThfXXsrySyGwfe6E9X4BS tKrmNZld7THp1EA0hY2UuX/uqIDsh8akJSOdNEqmT1yPdecnYnAkz55P0Z/MB2kG8TcF tMYD22oeKiNv571GotNT5xJUUTRZuQ/DHG0X3rKoGaYZvIZoCJ1ceyESC+JkGJA+z8kc W+M3rWg9jnmv7UoP7wIu5udaLPjVaSvd+AGgQR8CFWvsihEhX54MdN+OBr3YTGWZn+gR t4Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J1ELj8v9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v57si3289847edc.171.2019.10.10.01.43.36; Thu, 10 Oct 2019 01:43:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J1ELj8v9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388114AbfJJIk2 (ORCPT + 99 others); Thu, 10 Oct 2019 04:40:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:44560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387493AbfJJIk1 (ORCPT ); Thu, 10 Oct 2019 04:40:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF46720B7C; Thu, 10 Oct 2019 08:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696827; bh=IzsSl5RJoQIY9CfSt/mZ/FS85qR1vAUixNJ0vwRnrxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J1ELj8v9FSHeC3uVqe0Wu8D4u5Z5vB7GL9gS6mlOzNBdwQj6J69EIvmDfP3viMp03 BrgJw9UVh/4GDddPVjAhj5JdEpiMfUjR0s0lhdsCpJN8puej99Alm5VSURjkCbhO3t Li/D972vwPPPbM2K6Qg0YwR1GwY7hd7quUXFORiI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tomi Valkeinen , Adam Ford , Jyri Sarha Subject: [PATCH 5.3 066/148] drm/omap: fix max fclk divider for omap36xx Date: Thu, 10 Oct 2019 10:35:27 +0200 Message-Id: <20191010083615.450362990@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomi Valkeinen commit e2c4ed148cf3ec8669a1d90dc66966028e5fad70 upstream. The OMAP36xx and AM/DM37x TRMs say that the maximum divider for DSS fclk (in CM_CLKSEL_DSS) is 32. Experimentation shows that this is not correct, and using divider of 32 breaks DSS with a flood or underflows and sync losts. Dividers up to 31 seem to work fine. There is another patch to the DT files to limit the divider correctly, but as the DSS driver also needs to know the maximum divider to be able to iteratively find good rates, we also need to do the fix in the DSS driver. Signed-off-by: Tomi Valkeinen Cc: Adam Ford Cc: stable@vger.kernel.org Link: https://patchwork.freedesktop.org/patch/msgid/20191002122542.8449-1-tomi.valkeinen@ti.com Tested-by: Adam Ford Reviewed-by: Jyri Sarha Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/omapdrm/dss/dss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/omapdrm/dss/dss.c +++ b/drivers/gpu/drm/omapdrm/dss/dss.c @@ -1090,7 +1090,7 @@ static const struct dss_features omap34x static const struct dss_features omap3630_dss_feats = { .model = DSS_MODEL_OMAP3, - .fck_div_max = 32, + .fck_div_max = 31, .fck_freq_max = 173000000, .dss_fck_multiplier = 1, .parent_clk_name = "dpll4_ck",