Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3977851pxb; Tue, 25 Jan 2022 00:29:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvTjqSOEaTd9Ht/tKPUhvxZv88j4l/PdwmDPJwh4Jl+qFO+WWpMclPdPexdFBQllzqcuYw X-Received: by 2002:a17:906:9b87:: with SMTP id dd7mr15207891ejc.126.1643099363985; Tue, 25 Jan 2022 00:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099363; cv=none; d=google.com; s=arc-20160816; b=aA8k51PKcW31Yk56BGuiD5FW66rzOeV7qmUTGN+5hZvaC3QLNgKoZ8xqmB5xtHrfRs Tlz/2rcUkT1wpUOjkHoWGpOoT5QRPDOlidQZLJg15mIRX48KzbpScsh7/4yAQJyfflpE fsAp9kh1i8EyD1i25yBAfLD40YR9nhEdg8nmksvLoovIgK17442MujmPD0CmLuivgSEv xSlZJ8NLbD1v1upGHzowyDlf2c+io/PfoJYbOI3dFHuZ339qJc9N+1HtwYQk0EKabV/u GvA4WsSlAwENxEnE6Kae+VZgQChdw0OWu+3l1ZJCzzMs8I5vULjrWjexeZMc7rP+Ez/d AFoQ== 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=RvHvG4qBO6n6PCgKud3INoENmziZlo+omKkeuLwJqeo=; b=pow9U5bwExw3qMgTZ+3ampFaAMg+EJs536llvEQZmvt8+W+gFaFzW2qG6Rw8/CQe1c 2pbNc35jJ7feWMmFyRUIwBGrequWZyWDcUqDjYBaqt5FaBeD0xnWzs2bA7FMO45JFf42 s8bNrO6KaZUCyIEGw3rTIyxm7TTmtUB3ad6H4s1Ff5eBM5D0K1bVD5eaol8U+l9SecOM 6zeXt14LLyF14uhPA8CdcSIxZN3GjMM9/wFYXCpbfNhhnNg08ZSXsMzENNjc+5s8OUtd oewxxh2oSn7DOPRCLs4FHvGOMiUswR9EQ87xqT4jC2bbrDXPgxf2rLydRtVu76uVfxD9 ednw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dev97sv+; 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 e26si8667986edr.119.2022.01.25.00.28.59; Tue, 25 Jan 2022 00:29:23 -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=Dev97sv+; 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 S1344494AbiAYCfk (ORCPT + 99 others); Mon, 24 Jan 2022 21:35:40 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:54792 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384748AbiAXUac (ORCPT ); Mon, 24 Jan 2022 15:30:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 891E561534; Mon, 24 Jan 2022 20:30:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67D4BC340E5; Mon, 24 Jan 2022 20:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056230; bh=OVzwfhHa7Q06DLO2v8bPDfakvQ8TrsmIfo76CKfzYyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dev97sv+dlTwPp8fnm4Up+Ago+6OFvbI2gAp3bIShZ+1Orq+5/aHd/WGD12La5uOs vWPI2u9InkBcg+Hjra4SNjl/tLetaJHAhYPy+MlBeTZN8HPEXw3QEwC3lD2S0WNcYN vJIuoXoGodWKQb9zPUUVaI0j944CKYDFiNPD+iUM= 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.15 415/846] clk: stm32: Fix ltdcs clock turn off by clk_disable_unused() after system enter shell Date: Mon, 24 Jan 2022 19:38:52 +0100 Message-Id: <20220124184115.292450401@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 af46176ad0539..473dfe632cc57 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