Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3574718pxb; Mon, 24 Jan 2022 12:34:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlqUWfFMBL3ZqQoBcZ96jyTctIBhB+SAgNcpaBSDvkQwMa/7I4vhHvEpNNnT9c7oPdzQ6X X-Received: by 2002:a63:724b:: with SMTP id c11mr12993204pgn.576.1643056484121; Mon, 24 Jan 2022 12:34:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056484; cv=none; d=google.com; s=arc-20160816; b=0u8E9yIWlPq36mr1zqPlhKQKxAQx2UKsVTiCDyxnJuLun4eo0Y2pY5P0WEcKkvp85m bgku/x1ma/W8KA5QLY6MjIFAygmF9IvuzdqFDP+C43XLcWWR6P/befxaFeyekKRpc5mX iG54mDrwpbUCtCPm/64ILl5oKxGHXEuqIc8qAMX4iKCHH873zmd4Fo2PS6A2txzXt9cI tQgRhAsEVnetM7SbCJXqplvn2XgylhC3jVNIl3TJkk6I3Yqj8jEqBw9bUwvs0owz6cRs ZsHAuM+WqRhMUpo51BpVXa9CgFag91d0Xu1c/ynV+807K4i3OY8s1nwgmApEqXyovAOR FmSA== 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=bUpIbZv5QIyOszpCrix6Cqac6OYS40hFFnFJZOZwcXy9w2Z/fnkpyabK/E9/94jSik WvGAanq4Prm6GOCIyKHxU+5/VOj2X8qBod5FCi2X2A0JwMjf1B/Un+Vhx2nQqvzWTyLf OZj+I5SzSaKKXIzHhud5x9LFzIxX4tZ1dT/Att5a4rlikOO+HPljLHXHJvM4uIk2wlc/ RdIvMkcJEe55F/j5a93QRxKE9pXmqkmgPT5yW4QIxKMeKLT70Ch4ckKhlANTbrSKYjSb 2zgoTKq1EaKaSJtXGNEH/uVMIZNU6y+lkVS8ew5UDPS8RQY+yMhSMxMDJGKOkd2JxeOv iOEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=e276yz+0; 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 l11si15137538pfu.6.2022.01.24.12.34.19; Mon, 24 Jan 2022 12:34:44 -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=e276yz+0; 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 S1350861AbiAXTnU (ORCPT + 99 others); Mon, 24 Jan 2022 14:43:20 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:54526 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344766AbiAXTb3 (ORCPT ); Mon, 24 Jan 2022 14:31:29 -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 957F1B810BD; Mon, 24 Jan 2022 19:31:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4B7EC340E7; Mon, 24 Jan 2022 19:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052682; bh=PlU0BGXYhEPw+yxn5LNeHuz6RZoUF0+GF9AQ5NrEnq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e276yz+0dCbmXDQbEJN5GEjeNMJmGqFPdFZPsWYe3ZFEFXXPBK4uYS7VsWrmjrXyc nXf7mttieCkyB98F3UWUtBfqJLUEX4xdrnE2Yo4H+WGISbJv1pdSNMITYcPyxgjrLS aGzQ+awENObHwz9qh4niokv21tjDZoI5Vwf5YPbc= 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.4 141/320] clk: stm32: Fix ltdcs clock turn off by clk_disable_unused() after system enter shell Date: Mon, 24 Jan 2022 19:42:05 +0100 Message-Id: <20220124183958.442819685@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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