Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7848156ybn; Mon, 30 Sep 2019 22:14:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCay/z1l84hFofAh8M4b82Qk1peE4KT01WPbg2aIBUiUR/OJH2dh7IU3iNXrd3k02XlMCK X-Received: by 2002:a17:906:ccd6:: with SMTP id ot22mr22863319ejb.1.1569906879619; Mon, 30 Sep 2019 22:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569906879; cv=none; d=google.com; s=arc-20160816; b=cTqqMBnPXfFsNijoKUYnyq4FUT1tgrJnumtyKSG12TgPJndINcDuueevOGqAshVr13 INoHSWBIWeWkMBU6d8UnHaGqM68ZP+03QIU9n63PRpMX+eoUh1nobW3q6p/ibnpCefa3 F2deZ/ax18f9/M/AVXvC7XoKvMVL6q5sOHppvZBRnomQU/SOaBYG2vqcC25Ll3ChsCWL TwBuL7pdloFuRP5wMT4GkJzBuOnDJ1p63zGkJ6LjeURF8KIMByTmcxLkaQDwbc82pEsZ cgN/HGbTPK2Tol9CI+23teyCDQZRe8f6R/0D1djJ3BlfnKe/SUzAbJiKyrNWXAO9xIYB VrqQ== 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=4AH9Rku5UAfzvf7FCp4zmCl9cmUhkBiAtoPrnnSOE8Q=; b=FP9WNnhAiVnYHvIpNs3UQFsDP+5TIWW4/uJgfmvn70u5kdTDeEDmV27H5G5+3CJV/8 ElU1iMvSifRzobE38KnEZtKHc0SWti9gl5VAYgpQK49TT1/TstBVoReruP+/oj27zirM q54pb357TbsE3739J5FH07fXpzrpxPXqEPlQNNQB4ewFtH9WnX4106m+PShomk+sgRuj O6+QvpjADm28JEQmGvlqjGum7MeXVn0453Lj0IrBqj4O0sRB8ahKoKPyc/S3q0k31z9D I/8dgXbfc3BGZqClK6Oiou9SXqRtzyHKIArBwf4jBcCDtP+gyHoptzbEFAYO0FWXTdrZ c/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XmkiTIUG; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si8112967ejx.107.2019.09.30.22.14.14; Mon, 30 Sep 2019 22:14:39 -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=@ti.com header.s=ti-com-17Q1 header.b=XmkiTIUG; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728758AbfJAFNE (ORCPT + 99 others); Tue, 1 Oct 2019 01:13:04 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35370 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbfJAFNE (ORCPT ); Tue, 1 Oct 2019 01:13:04 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x915CnIx005144; Tue, 1 Oct 2019 00:12:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569906769; bh=4AH9Rku5UAfzvf7FCp4zmCl9cmUhkBiAtoPrnnSOE8Q=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=XmkiTIUGZb5Mtvqe2EYoaup70LorYQU7ZYPKDyC+253KGhwPUxoVn4ugNW+j7Abwu aI7jI6X+Aymvl7rOahgoSF1OzuJJhVZPj0fVfIsnZjsxQ+/ZsSdQlUJEVwslyVe7tP Wn6ibrAfw4Hf6HVQxjDTwn0Iemsux3rfEtKbrq68= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x915Cn3X100427; Tue, 1 Oct 2019 00:12:49 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 1 Oct 2019 00:12:48 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 1 Oct 2019 00:12:48 -0500 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x915CjD7053183; Tue, 1 Oct 2019 00:12:46 -0500 Subject: Re: [PATCH] drm/omap: Migrate minimum FCK/PCK ratio from Kconfig to dts To: Tomi Valkeinen , Adam Ford CC: "H. Nikolaus Schaller" , Tony Lindgren , Linux-OMAP , Adam Ford , =?UTF-8?Q?Beno=c3=aet_Cousson?= , dri-devel , devicetree , Linux Kernel Mailing List References: <20190510194229.20628-1-aford173@gmail.com> <854f6130-c8a8-81cb-aa76-4830f218ae54@ti.com> <0473526e-df0a-94a5-5c22-debd0084ab16@ti.com> <36369388-e9c8-22cd-8c19-e2bdf2d0389b@ti.com> <23eba53a-9304-2ceb-d97e-01891ec0b3ed@ti.com> <04306a5e-f9be-35a4-1aa1-5795d780e289@ti.com> <3777f1b1-2d9a-334b-b9e7-99dfda2ae29b@ti.com> <6cd7c9f0-cb26-588b-dfd1-faf462732549@ti.com> From: Tero Kristo Message-ID: <2cff2d77-485d-c9a5-ea9b-a9146a81218e@ti.com> Date: Tue, 1 Oct 2019 08:12:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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 01/10/2019 08:07, Tomi Valkeinen wrote: > On 30/09/2019 20:48, Tero Kristo wrote: > >> Hmmh, after some testing, it seems there is bad stuff happening with >> the divider clock implementation, I am re-working it as of now. >> Basically what is wrong is that with a divider max value of say 16, >> the driver attempts to craft the max value into a mask, but this ends >> up being 0x1f. If the max value is 15, it ends up into 0xf which is >> correct. > > Ok, that explains the max not working. > > It doesn't explain the other issue, where the TRM says the max div is > 32, but it does not work. But taking the max div from the old SoCs, 16, > is not correct either, as it seems that dividers up to 31 work ok. If someone knows for sure that dividers higher than 16 are fine on omap36xx, we can add this under omap36xx-clocks.dtsi. Anyway, let me fix the broken divider max logic first, that seems to be more pressing issue. -Tero -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki