From patchwork Thu May 27 13:16:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12284227 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C794C47089 for ; Thu, 27 May 2021 13:20:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C09561019 for ; Thu, 27 May 2021 13:20:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C09561019 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LwOx+oOS0rr2LjcXz3Af5ECoLey/lGdyOuOpEJdTryY=; b=2rgMB6TPbk8rl+ Tol12oPJq5mv0n7era5Q17EFSo5AaSnWQNKKe5sCzYAJLs7h+yAkxduFM6drXMeS1vtthAtHSUPKq 7oR25PYeLetBa6EDEPxictHGOFOYCzndw0HH+8947aamm3q/GYi1bVAB8l1wUHft735vuXdYT3hXo qSlmW/BASgc4HfVYIDsQ+5prEu5Kd/HpJ5Wjo23DBqNLH6cey96pCVL46wzLRu+5M5jPL6zgeSoa3 fuptcv9mP3Ey6xzY/ymlqbkaUW+M5obaMGD7K0v/tB9NPZuQD2vapiTEuUwsPoHcVBaFjNnFGiIvo dF3/NlhVU6gSVDLd2HhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmFtG-006AWk-JM; Thu, 27 May 2021 13:17:38 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmFsZ-006AGK-Lu; Thu, 27 May 2021 13:16:53 +0000 Received: by mail-ej1-x631.google.com with SMTP id lz27so7961974ejb.11; Thu, 27 May 2021 06:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=crig0bzSf2SgCM+EYnsItW6y8m075yiQFudfhyHny3Y=; b=r3zXf9PXJyaSQoeJL0J7o4RLGNp5T8/of+o46r92qRwQKZ1BWDPxsELPIOQGpGmiqe J6HLZ9bdg6F1GGSvs72BLDYYzV7pyCsY5BkYsMQITnRb2/Wad4ntcqUDG4JpYvGZG59u UkqdNJqpw8IuRywypTBg2tXJ4Ef627VrmCDxiBf+OBtCMUz6mW7A6L0EvX2GR1Mqub72 iVVLFi0s+1IRBTKOdT9FBAQLB5lDnV7NkZx9E/DqUfUFSbqewPdBwhlv+vVX0Z8YDVqp 6HVFjptIyTqPIuHTfaJMAY40nyumpfu7pR+TEQ+2c5q1UaDt08p5v661Eyf+g1UYslRN Y3TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=crig0bzSf2SgCM+EYnsItW6y8m075yiQFudfhyHny3Y=; b=gcbx9BMT/M9okJuEoL21/yh3sXfrApsrS0BMaxD8FPLsMFWYqB13SQSpiX5u4uCfRt AecdiHG+9GXWV+/Fx3HVdEzq04hQoxFeApw5fz7Etx5kkxDtj5PGAWJh754YchB2eHI5 T0QdKP2GPzZ4BOXwjjXLtky3ZXSmWzyxlqoRD7ZznjpdYB1twujyMWEm8OQOSKHcJwfG h6RFIYW6wBUJM6imDYbP6jL11aOiAdyQdC3drG9BEBMmFzWqhWqejNXm0wZuuXOZO/qA xC82vD0L1vrrH6blweAqec6RpzdGN75KPe2eHyofg6qOUi/lyf9qx5utP+qeUYt9qx8O Xawg== X-Gm-Message-State: AOAM532Ebbv7EaUW1iVF2MG/7iU7qIk8Dt8KsZXiKUqP4eacqgx5nkDy uaQRwVOqID1vnTj4pOQZ7/g= X-Google-Smtp-Source: ABdhPJzWexKK6TMKAp90yIfRFCp6HKY74EqmgszOQNQRVH1ZHIm9OHCpUKYJvMuf5POc2v8mscTVgA== X-Received: by 2002:a17:906:3715:: with SMTP id d21mr3883315ejc.34.1622121409962; Thu, 27 May 2021 06:16:49 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id r23sm1104206edq.59.2021.05.27.06.16.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 06:16:49 -0700 (PDT) From: Cristian Ciocaltea To: Stephen Boyd , Rob Herring , Manivannan Sadhasivam , =?utf-8?q?Andreas?= =?utf-8?q?_F=C3=A4rber?= , Michael Turquette , Edgar Bernardi Righi Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/6] clk: actions: Fix SD clocks factor table on Owl S500 SoC Date: Thu, 27 May 2021 16:16:40 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210527_061651_806822_94A23FEC X-CRM114-Status: GOOD ( 12.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Drop the unsupported entries in the factor table used for the SD[0-2] clocks definitions on the Actions Semi Owl S500 SoC. Fixes: ed6b4795ece4 ("clk: actions: Add clock driver for S500 SoC") Signed-off-by: Cristian Ciocaltea Reviewed-by: Manivannan Sadhasivam --- Changes in v2: - Re-added entry "{ 24, 1, 25 }" to sd_factor_table, according to the datasheet (V1.8+), this is a valid divider drivers/clk/actions/owl-s500.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/actions/owl-s500.c b/drivers/clk/actions/owl-s500.c index 75b7186185b0..42abdf964044 100644 --- a/drivers/clk/actions/owl-s500.c +++ b/drivers/clk/actions/owl-s500.c @@ -127,8 +127,7 @@ static struct clk_factor_table sd_factor_table[] = { { 12, 1, 13 }, { 13, 1, 14 }, { 14, 1, 15 }, { 15, 1, 16 }, { 16, 1, 17 }, { 17, 1, 18 }, { 18, 1, 19 }, { 19, 1, 20 }, { 20, 1, 21 }, { 21, 1, 22 }, { 22, 1, 23 }, { 23, 1, 24 }, - { 24, 1, 25 }, { 25, 1, 26 }, { 26, 1, 27 }, { 27, 1, 28 }, - { 28, 1, 29 }, { 29, 1, 30 }, { 30, 1, 31 }, { 31, 1, 32 }, + { 24, 1, 25 }, /* bit8: /128 */ { 256, 1, 1 * 128 }, { 257, 1, 2 * 128 }, { 258, 1, 3 * 128 }, { 259, 1, 4 * 128 }, @@ -137,8 +136,7 @@ static struct clk_factor_table sd_factor_table[] = { { 268, 1, 13 * 128 }, { 269, 1, 14 * 128 }, { 270, 1, 15 * 128 }, { 271, 1, 16 * 128 }, { 272, 1, 17 * 128 }, { 273, 1, 18 * 128 }, { 274, 1, 19 * 128 }, { 275, 1, 20 * 128 }, { 276, 1, 21 * 128 }, { 277, 1, 22 * 128 }, { 278, 1, 23 * 128 }, { 279, 1, 24 * 128 }, - { 280, 1, 25 * 128 }, { 281, 1, 26 * 128 }, { 282, 1, 27 * 128 }, { 283, 1, 28 * 128 }, - { 284, 1, 29 * 128 }, { 285, 1, 30 * 128 }, { 286, 1, 31 * 128 }, { 287, 1, 32 * 128 }, + { 280, 1, 25 * 128 }, { 0, 0, 0 }, };