Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3586913pxb; Mon, 24 Jan 2022 12:54:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhidtiO5f9I8KItb278HYyALRe7OJOpUcoBgi88rVSLwuZCyHfuxnQl53HxbQFLTudxmNj X-Received: by 2002:a17:902:b218:b0:149:936b:8306 with SMTP id t24-20020a170902b21800b00149936b8306mr16426274plr.134.1643057660160; Mon, 24 Jan 2022 12:54:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057660; cv=none; d=google.com; s=arc-20160816; b=IPbRVh0HBIKGsX6UzCI8i6WGxqYvHJ3zPBBr5hmsj42pKMWfc/jcPsuy6Yeuv3Xd6/ Udz3o26fjVwoNd4sJZTDLj35IEblXld4vTVW+s12K8wdTtR3Hlfb5LyYZWVSqvoPCzDc YwSbZyoAYK3WONq4N4D4RjrVJ3/u4BUFHydOnRFIEWpO9b6egtJtwllnEzr0vTJpEbJt iUW1A9A3HXyXoDn22GMe5wXoYPltWJK+9Yf5pe3GLo6HZk2Lw04l3+7/cFfSxBvbKMKF FNB6iaiIM3Oi+YRKxWDg4pJBtHrSp+Js5OWEIbe6Thl/Crb4LlVuWGubd8y2OOzgj2dv FgiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DMy8RTH1YcFt3oToGAbYZdjVPIxvr3Pi8vm4pyND16c=; b=QTYPYwWCKJhiE4+/Tmrv77f+N735RX9oondrHzCzxaI/mojWm0CD8SKyl7A1zng/fj VJitzA4qk+Ea2o/bC2uTquJA7f8VrQHdLuvsTD9B/FNICUWoUABmrKLifP3Dt74qvWJt kHiysZrN99qby6ihMwgxjoPvRnUjAMoP9ecplhnzVtuTfsuWJmSZyVVudGsxJxWlEvS9 91hr7oh47+eJr9ZxZF3MbO56hRcwjnRTerVSx88q9TtJXEGIYhRAo2ZBJdpRCUWpH+wT 9lqc+3UYUDztlZwjILGsgibddVbqiow+VWy0NKq2U31fJVRJhe/hzYIpL0un72qkfM4k Ik2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bc61rIyC; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si14444953pgl.726.2022.01.24.12.54.05; Mon, 24 Jan 2022 12:54:20 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=bc61rIyC; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379714AbiAXUPE (ORCPT + 99 others); Mon, 24 Jan 2022 15:15:04 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:41894 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358277AbiAXTyr (ORCPT ); Mon, 24 Jan 2022 14:54:47 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 57CCBB8122F; Mon, 24 Jan 2022 19:54:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FE7FC340E5; Mon, 24 Jan 2022 19:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643054084; bh=PlU0BGXYhEPw+yxn5LNeHuz6RZoUF0+GF9AQ5NrEnq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bc61rIyCtgE3Y3eb6rGqotXfZlMgN3OoG09ENsVc7Xz/ljcUaCGxTlwJ63xN/f9ej WEshwVCJrLUUhBYdG1h99t24jGGbmI3/FlD/MqGiFxTiJQ12anqOWBVWylORbSPCAJ hZ1vQhHdoF6tf4nHyhMdDYgXbFFFTznulXEor6us= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dillon Min , Patrice Chotard , Gabriel Fernandez , Stephen Boyd , Sasha Levin Subject: [PATCH 5.10 273/563] clk: stm32: Fix ltdcs clock turn off by clk_disable_unused() after system enter shell Date: Mon, 24 Jan 2022 19:40:38 +0100 Message-Id: <20220124184033.880776185@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dillon Min [ Upstream commit 6fc058a72f3b7b07fc4de6d66ad1f68951b00f6e ] 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. stm32f469/746/769 have the same issue, fix it. Fixes: daf2d117cbca ("clk: stm32f4: Add lcd-tft clock") Link: https://lore.kernel.org/linux-arm-kernel/1590564453-24499-7-git-send-email-dillon.minfei@gmail.com/ Link: https://lore.kernel.org/lkml/CAPTRvHkf0cK_4ZidM17rPo99gWDmxgqFt4CDUjqFFwkOeQeFDg@mail.gmail.com/ Signed-off-by: Dillon Min Reviewed-by: Patrice Chotard Acked-by: Gabriel Fernandez Acked-by: Stephen Boyd Link: https://lore.kernel.org/r/1635232282-3992-10-git-send-email-dillon.minfei@gmail.com Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/clk-stm32f4.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.c index 5c75e3d906c20..682a18b392f08 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 = { @@ -211,7 +210,6 @@ static const struct stm32f4_gate_data stm32f469_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 stm32f746_gates[] __initconst = { @@ -286,7 +284,6 @@ static const struct stm32f4_gate_data stm32f746_gates[] __initconst = { { STM32F4_RCC_APB2ENR, 21, "spi6", "apb2_div" }, { STM32F4_RCC_APB2ENR, 22, "sai1", "apb2_div" }, { STM32F4_RCC_APB2ENR, 23, "sai2", "apb2_div" }, - { STM32F4_RCC_APB2ENR, 26, "ltdc", "apb2_div" }, }; static const struct stm32f4_gate_data stm32f769_gates[] __initconst = { @@ -364,7 +361,6 @@ static const struct stm32f4_gate_data stm32f769_gates[] __initconst = { { STM32F4_RCC_APB2ENR, 21, "spi6", "apb2_div" }, { STM32F4_RCC_APB2ENR, 22, "sai1", "apb2_div" }, { STM32F4_RCC_APB2ENR, 23, "sai2", "apb2_div" }, - { STM32F4_RCC_APB2ENR, 26, "ltdc", "apb2_div" }, { STM32F4_RCC_APB2ENR, 30, "mdio", "apb2_div" }, }; -- 2.34.1