From patchwork Thu Jun 10 20:05:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12313871 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 056AFC48BDF for ; Thu, 10 Jun 2021 20:07:53 +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 CBFB46136D for ; Thu, 10 Jun 2021 20:07:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBFB46136D 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=W3Fei1G3DakY2RVIC6KI5iDeHZo8vT26k/PDrWGJSvo=; b=RERMvfgGk0e8K2 4WoPqwyPE8PemAN+AIlLlJ7noQJH5vAn/TO9dCTpkfEjf0DoAxpVUiJ9Cb51aDZVj3vj/Xhm98O2s BQDtE62OpBnJUYatOo9XNxlpzlxkcs+LvwQH5VEFfAst2U0in/CgtHeEXNJx2/L17waEid090CTVH VncVwCw6+fbVRqDYQWRH6/kcQTW2fJYlHne9aSeVBNlFuAGR5v1c+T6AGfO/b4oOmhGMQWOpHGj8p dCLtVI9NcGQ1gLE1aELx0Pk3kD5rUepDnjG1baKr5cDig6dySj8Eg4GZBzIrvVZ84pPPWGDFHDtjo zzVzqmAzmQJztuXPqnag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrQw1-002KgM-I1; Thu, 10 Jun 2021 20:05:49 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrQvl-002Kbd-Gr; Thu, 10 Jun 2021 20:05:34 +0000 Received: by mail-ed1-x535.google.com with SMTP id g18so32505175edq.8; Thu, 10 Jun 2021 13:05:32 -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=Yec5z1rTz/gbfswMoHozIs3lpOfgznp00BzpVVk/Y+g=; b=NOuXijbMtdHHPd9iVu7KVaqKOLJiCO6mDkLyrAfA8TCBEgbaNfOZSGejLdDs1wzAlu 3grHvfoY1U2GHv23+pdNMdpFQ/2UWGtam+AwbP/Ss2BkbD12kZlc49W3LRrWBjkWD2Zh zKyPwuA4UD7FL7RJvdIZ5jwk++z6gWCgiNsOvnfiRJzj+dSYOkIlnx/YB1F6G+pNu1kk OnzVNL4lDTTM05/aWhmItgYIp5TyT0iXLmRKSryvTxd9rr1a+HJvQa4vbDDDehMaotMT qcsdRITcR49C+Bv5Ig44Rzib47bLAM2dadY1vkLAZzeShDiItV89QZMuZkPgt7nEAHil z7jQ== 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=Yec5z1rTz/gbfswMoHozIs3lpOfgznp00BzpVVk/Y+g=; b=a4JuF45dID0pR0gDHLIrsbOkgrIkGn3vf1vVFVzQ4wxaCGpf+d3kHD7abkpbA9EFmT A+xFvUBkRh5EpDnneIsf1JyrfPzysNJfmooBKUf52PD9fKisHIrVsyyidcMIklEWCfgT 4uXE87txIXPFIokBqgGBogScVh37fxp4GN48W+f52Oi1S+3LDJI4/vjznkrn4zPt/muH Ti1qn1+RpFu8ZMrcEmAccp60IeBBSTHaO0OSPa7ftiGPaehbFdsJDEmThJTQzu8Hv/SL Sy5ECrb8+w7/OM6ShffqSskoB+7+3dPPrIBVK7rVA2BOcEHvnswFPdMW0edDWs4eNWvN vvaA== X-Gm-Message-State: AOAM532eswShuUomEHqh9Ij/8Vs1REuQKT315Cw987hMASfBknMufnOy rmDgF9xbXli0Y99Hj89R2lg= X-Google-Smtp-Source: ABdhPJw8ysHlGGhrLeKg1ByZDwKEQ4Hrf+NERoFbfhuIwwdHbUN7ir+SmisAX+3iBZdTEAx9aU5IhA== X-Received: by 2002:aa7:c753:: with SMTP id c19mr194068eds.33.1623355531760; Thu, 10 Jun 2021 13:05:31 -0700 (PDT) Received: from localhost.localdomain ([188.24.178.25]) by smtp.gmail.com with ESMTPSA id du7sm1800978edb.1.2021.06.10.13.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 13:05:31 -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 v3 2/6] clk: actions: Fix SD clocks factor table on Owl S500 SoC Date: Thu, 10 Jun 2021 23:05:22 +0300 Message-Id: <196c948d708a22b8198c95f064a0f6b6820f9980.1623354574.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210610_130533_584137_6C30D369 X-CRM114-Status: GOOD ( 12.71 ) 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 v3: - Added Reviewed-by tag from Mani 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 }, };