From patchwork Wed Oct 2 12:06:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 174982 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp666289ill; Wed, 2 Oct 2019 05:06:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrRJF94mGo92CVoURGex2PDrrdmiNDOBgWSSvcjl6l1ez42U2Pb2FySlb0TaHxvJXXD3bG X-Received: by 2002:a50:8961:: with SMTP id f30mr3253990edf.144.1570017992521; Wed, 02 Oct 2019 05:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570017992; cv=none; d=google.com; s=arc-20160816; b=HFrRlGEYB152Zq8PeItLn6HyYy3Z5VxgZUXKLMhAxwM5Ep2VD3i2SCmtsHrZc8Eh2p xuWqvSArkeM1dw0UhjSVFK68u4Ia9ItpLl6paKaNaThseUnMRvs+qLJBfdMEdrItk3yp DxG+Qjm6T8gjqypW1mILynZgsgac0FwUhpS1R1Tk7r8rXXl0MIHyIUBRV0s12lyM4Aq/ +WhxTWQ1D2GXeWEW6IVJ2w6l58rfBFipdtZEEVV5Rln73YTIYPiNXsA8SHLKkZvvDr5X nWl5yk9LDhpGvxd2CaGGnfnQZ+ckROsO2mG29b85nncUs3XIwjHhPt7gftJqF4WHp7K0 rTPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=aPvd+C7TqqygO08W7se1h60SDZdqTkcv2apX3jlsElc=; b=SuTxuANpRt4BwiGYRtlXQ6d6mMyS0vYZpG9kJ9HN8dqfbBAniiT2R++0UVdiviocPs 7+TuTLkPIz91EHTfC90GHtlbexo7gSbiQhBcoEfvd93Kco55IQuB2K1CMAkK20stLo07 kZaBi51fnN488mZr0d0ZUMwWV8N2r+5uuSTTGDgnkNukebgRosq4EaLF9Urcoqh/DwqG LkIE2CyXSUwHFNWvUzhsewpOR3yCYYJtqLKEsSo8NFCEzPN3q1Ubnt/iYjPpuDKq2Zow 8L6a5XHKc9Xw+gDhqNpMZbc5vfwlTcZsJBQwjox759l79x3/U1S4YtkJ/JYx6UsRKvd2 0UXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=h1LREXFk; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 kt5si10508029ejb.283.2019.10.02.05.06.32; Wed, 02 Oct 2019 05:06:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=h1LREXFk; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726208AbfJBMG3 (ORCPT + 5 others); Wed, 2 Oct 2019 08:06:29 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:49904 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfJBMG2 (ORCPT ); Wed, 2 Oct 2019 08:06:28 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x92C6OWb005404; Wed, 2 Oct 2019 07:06:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570017984; bh=aPvd+C7TqqygO08W7se1h60SDZdqTkcv2apX3jlsElc=; h=From:To:CC:Subject:Date; b=h1LREXFkk2kqME2lNiNQ7CMazyvqgnNHJsESMQD3lbK65MLaTCHeMM2upjecqdK2b c+pOE6yeanLXN9ndaDV59BDkq7kykQwJBNg/9vWpVEP1HpDcjCp1wPiHP+bcMom9uU 0VxObHjkbntP72qw2OcqHLVJpCDKQG9Qowr+T0dk= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x92C6OHM070787 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Oct 2019 07:06:24 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 2 Oct 2019 07:06:13 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) 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; Wed, 2 Oct 2019 07:06:13 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x92C6L3h046205; Wed, 2 Oct 2019 07:06:21 -0500 From: Tero Kristo To: , , CC: , , , Subject: [PATCH 0/4] clk: ti: re-work divider clock support Date: Wed, 2 Oct 2019 15:06:07 +0300 Message-ID: <20191002120611.26121-1-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi, The existing divider clock support appears to have an inherent bug because of the bit field width implementation and limitation of divider values based on this. The limitation by bit field only is not enough, as we can have divider settings which accept only certain range of dividers within the full range of the bit-field. Because of this, the divider clock is re-implemented to use min,max,mask values instead of just the bit-field. -Tero -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki Acked-by: Tony Lindgren