Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp590887ybm; Wed, 27 May 2020 03:11:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8GQIHcKPAbyY9FK80n0Sr4iun5X8lE/0ICD3+ZVAu2u/+qwkBPLeXUVS0v/oRl2YE1G/y X-Received: by 2002:a17:906:1313:: with SMTP id w19mr5621449ejb.79.1590574293942; Wed, 27 May 2020 03:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590574293; cv=none; d=google.com; s=arc-20160816; b=TWIADsurMUXnDmfQU7Cm8qkUdseqV1lhFVkD/wS83x0h917WBgC52/e5fncUB8Z95T QDGct+4Ju4/0DxuBa/SBc3jNXjQIHAMhPeOqkxr1jq77Am6+WPi3+3nV2hRcNs0t1XFq wB+WjlxJLm4NEzmZjzI096XRhmhjbPdz/FxSj8HO8GSQp0BVyVQ/mBKXQVewOns0s3MN /yvD7QkWfoWZt4fjZt925I/7EslrIAhaXBN+2p0u131un6+h2eNcVvMVaNrPM+oXNkr0 sKsXkGxm0MX7aZwFrhajAJjTFxeUSrTSv+84xonHYYsvqRSXbXgsVyg6dsea+V8tA+Pw LO0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=PCXZ/XVMi8KpMlGOTwhqCP9MMMe9ESFVI+WU4Q3c6Jk=; b=uO16p8eRujgzH2ImpAmrBned5+bvKy3OmeIzOKNdTtgNhiaOsgw6HdBz22Gzcnt3Wp cXOYjMJZM8nkPvKyXlwUyfDrOa6we313rtj17rCua6gXdaAb+7xWA5vWNGcVQcHLYmA3 zQA4dNOjG8+KKyEQt+Of+2KIAL4YDK/fWir0E8Okiw2kNXceI6lePJ9MWXGzvhAVfjbb ynHbgOmpjDNjj8FcJNYsDmJ3OvJyiAtaaXOKdP6vcPVimsBXFyVXHCNLr27WgkpzGu0F 446HfI6YViM3Y0O/ko8Ajun0/dMucVSWnNwjdTB+D25EvdFFRSLJWK+losdYqfLnQg6g 74Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I8hUHZ6S; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si1661569ejr.560.2020.05.27.03.11.10; Wed, 27 May 2020 03:11:33 -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=@gmail.com header.s=20161025 header.b=I8hUHZ6S; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387571AbgE0H2N (ORCPT + 99 others); Wed, 27 May 2020 03:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387523AbgE0H2M (ORCPT ); Wed, 27 May 2020 03:28:12 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C86C061A0F; Wed, 27 May 2020 00:28:12 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id j21so11375403pgb.7; Wed, 27 May 2020 00:28:12 -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; bh=PCXZ/XVMi8KpMlGOTwhqCP9MMMe9ESFVI+WU4Q3c6Jk=; b=I8hUHZ6SxFDEwHdk7/zeDaW/Z2P4AkgiDIFUitVnXJXeTb+IOLeTPT06lLpHqELqho cHkEkrWucnwxAI4w9z7QW+3XmUv+zgx2u7kPK3azIIIrFymuAxKAL2rCyR9HUboYPkld wqT/JAKpZN3Rkjfb3iniOF3m8C5DPT+SsWECsI3JVppNGION1BhqoLc424/hjUYe+gdf MRftOfeBuYnUlGuwdnwN/mCbfPthTvj4rWFgrDhEMnFAMYruktb7ow5C9Bp8aE97DvLs KQvPaaw1ZLWNhbSOq9Ad9O1TOPc/aVPRXPBgmT6xw+CPz2EOWGz/sLi6nJLgN5uQ6Lj+ DJNQ== 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; bh=PCXZ/XVMi8KpMlGOTwhqCP9MMMe9ESFVI+WU4Q3c6Jk=; b=B4GjnkveWqg9Rwd7MMGOBNKm0btiln8IF++JsLZAZc05qa2/4+iA/9Z4S4QHHY9nIQ HwtONYf8UbMlRjVOOhco06ZpU4kRx68Y+478vbiueTiqAaMUpWk9KgVnEdTLoBKL2Qs/ XVhwZ8YS+GlCOpmu1nk0L7XDkSBqJcTZNM+H4ZJQCq2lPuJKhekSzFOxZ5yPbD06fqOV DrCiYP3BRgNqBoA7i9n0SMMHHLSMmjYgMSYGl42WgdirvhEQqiVVJXMF7hteYAwdzL40 fiDcv+8mBVTNzBI+Hyj7cOcrLAjKebbk7dcimZbkRCanpmroz3WeTZUgQ1MoZXsh+5bM un4A== X-Gm-Message-State: AOAM532Nk75pixx+KRdxDFPrG32bB3uGCtrOm9SA4OJ4kZK4p/dNR8T1 sPoKlf+c3gb0MTD+/iilJpg= X-Received: by 2002:a63:4b41:: with SMTP id k1mr2609543pgl.452.1590564491949; Wed, 27 May 2020 00:28:11 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([103.206.191.44]) by smtp.gmail.com with ESMTPSA id q201sm1371842pfq.40.2020.05.27.00.28.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 May 2020 00:28:11 -0700 (PDT) From: dillon.minfei@gmail.com To: robh+dt@kernel.org, p.zabel@pengutronix.de, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, mturquette@baylibre.com, sboyd@kernel.org, andy.shevchenko@gmail.com, noralf@tronnes.org, linus.walleij@linaro.org, broonie@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org, dillonhua@gmail.com, dillon min Subject: [PATCH v6 6/9] clk: stm32: Fix ltdc's clock turn off by clk_disable_unused() after kernel startup Date: Wed, 27 May 2020 15:27:30 +0800 Message-Id: <1590564453-24499-7-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590564453-24499-1-git-send-email-dillon.minfei@gmail.com> References: <1590564453-24499-1-git-send-email-dillon.minfei@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: dillon min stm32's clk driver register two ltdc gate clk to clk core by clk_hw_register_gate() and clk_hw_register_composite() first: 'stm32f429_gates[]', clk name is 'ltdc', which no user to use. second: 'stm32f429_aux_clk[]', clk name is 'lcd-tft', used by ltdc driver both of them point to the same offset of stm32's RCC register. after kernel enter console, clk core turn off ltdc's clk as 'stm32f429_gates[]' is no one to use. but, actually 'stm32f429_aux_clk[]' is in use. Fixes: daf2d117cbca ("clk: stm32f4: Add lcd-tft clock") Signed-off-by: dillon min --- Changes since V5: separate '[PATCH v5 5/8]' to two, add Fixes tags. drivers/clk/clk-stm32f4.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.c index 42ca2dd86aea..fa62e990c539 100644 --- a/drivers/clk/clk-stm32f4.c +++ b/drivers/clk/clk-stm32f4.c @@ -129,7 +129,6 @@ static const struct stm32f4_gate_data stm32f429_gates[] __initconst = { { STM32F4_RCC_APB2ENR, 20, "spi5", "apb2_div" }, { STM32F4_RCC_APB2ENR, 21, "spi6", "apb2_div" }, { STM32F4_RCC_APB2ENR, 22, "sai1", "apb2_div" }, - { STM32F4_RCC_APB2ENR, 26, "ltdc", "apb2_div" }, }; static const struct stm32f4_gate_data stm32f469_gates[] __initconst = { -- 2.7.4