Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2097598ybt; Fri, 3 Jul 2020 00:19:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjEGGSk1xIzPQwuHT+r9r8+i/HSINAtii4/mKiHEAqvjtETR11LtTH5xMfStmNt0mYQrls X-Received: by 2002:a17:906:5912:: with SMTP id h18mr31116236ejq.259.1593760748229; Fri, 03 Jul 2020 00:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593760748; cv=none; d=google.com; s=arc-20160816; b=b8dngJJAs/uLG4isMLJ0scAXIqm9nk1xKoxIJaM6+nN99uUu3vP85Yjy0cZwSLFKX2 MOqLY/BMblyoZDqzMo5fREymmeacc9rqXvpxFu4KTFHBa+8eN0rIMOD5p3jSPgx6kjRy g+X0YNtINivIOQl1yj3mQyIdIREhWDxuZ3c6U9a0Bat39E+wgd83dwl79NOiCM9hRuA6 qyLPyGnxtCnQ5w+EQqjaHQWTngdTVB2gW/jiRxGXspygM2x4rcWIfRpfN8Bw2YZ3hXgG iJfX/v503IYqTdDwP7f9ftdQrZ1I5paMtX3Fyxle8XLbzGPv2dt1ot2zAR7yEzWoWAUK REQA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=tpCp46YgYhG/QrH4ChjpFQLXP5Ol+QOmEFujaXnFEPI=; b=DkIE0202sLqSOm7e6zlE6eVE94nycs6N/iu0t6DRtBbKoDAMK0+fkP/8gG0tr+kB7E i51qrWjNVprLpZPRxbSDiPGfrtN1gt6VwROb9USh3UeCcnEhkHEsNVuvdjMsJIOUn9r4 N4JSrpdDH9mQ6q4v/nycysPlZhzKq4NbNaTKzSTdDgdrOlfTV0lhPitoRiZ2ysJWTmSl Gr2ypALObfgj7lVMaJmPaWZnXL3ijyfTdWea1/fd8KcU52asLnXEXYfC+FrzNpvYxBLN 2YB3f7FFgD+AVqq0TCN3T4sBmLSR0+18yK7ynHxv4u/p+gm8rLBstQhxuPma2H9nHxeS KLHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="JFeFvps/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si7849797edk.328.2020.07.03.00.18.45; Fri, 03 Jul 2020 00:19:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="JFeFvps/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgGCHRi (ORCPT + 99 others); Fri, 3 Jul 2020 03:17:38 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59178 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbgGCHRi (ORCPT ); Fri, 3 Jul 2020 03:17:38 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0637HWoL115147; Fri, 3 Jul 2020 02:17:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1593760652; bh=tpCp46YgYhG/QrH4ChjpFQLXP5Ol+QOmEFujaXnFEPI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=JFeFvps/w2XpkSxRKOeoGYS+r9rHLogTZ3ryq3TPoNHlrFsoSe73PrTb/r1LNGu1e MoALpJE2Yvc8JCUNQ26yAkS3aRQ5Qaqb5I8S/egTIQBrt/xU2z1SB9+r9GsxG+REy4 eVNfNSyPqlsZR1ZlGZ0K0s9P3a0o0dhMru/IqdyU= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0637HWPh031794 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 3 Jul 2020 02:17:32 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 3 Jul 2020 02:17:31 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 3 Jul 2020 02:17:31 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0637HTNE007840; Fri, 3 Jul 2020 02:17:30 -0500 Subject: Re: [PATCH] omapfb: dss: Fix max fclk divider for omap36xx To: Adam Ford , CC: , Bartlomiej Zolnierkiewicz , Dave Airlie , Rob Clark , , , References: <20200630182636.439015-1-aford173@gmail.com> From: Tomi Valkeinen Message-ID: Date: Fri, 3 Jul 2020 10:17:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200630182636.439015-1-aford173@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/06/2020 21:26, Adam Ford wrote: > The drm/omap driver was fixed to correct an issue where using a > divider of 32 breaks the DSS despite the TRM stating 32 is a valid > number. Through experimentation, it appears that 31 works, and > it is consistent with the value used by the drm/omap driver. > > This patch fixes the divider for fbdev driver instead of the drm. > > Fixes: f76ee892a99e ("omapfb: copy omapdss & displays for omapfb") > > Cc: #4.9+ > Signed-off-by: Adam Ford > --- > Linux 4.4 will need a similar patch, but it doesn't apply cleanly. > > The DRM version of this same fix is: > e2c4ed148cf3 ("drm/omap: fix max fclk divider for omap36xx") > > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c > index 7252d22dd117..bfc5c4c5a26a 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c > @@ -833,7 +833,7 @@ static const struct dss_features omap34xx_dss_feats = { > }; > > static const struct dss_features omap3630_dss_feats = { > - .fck_div_max = 32, > + .fck_div_max = 31, > .dss_fck_multiplier = 1, > .parent_clk_name = "dpll4_ck", > .dpi_select_source = &dss_dpi_select_source_omap2_omap3, > Reviewed-by: Tomi Valkeinen Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki