Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp627489ybm; Wed, 27 May 2020 04:14:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmti7OeGs9z3bToMdrVA7PuQYiZqBkaMOrI8nSZScP1y59Mg0eBFrVehKbP2yd+0YlCkD7 X-Received: by 2002:a50:b2e1:: with SMTP id p88mr15112311edd.198.1590578040864; Wed, 27 May 2020 04:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590578040; cv=none; d=google.com; s=arc-20160816; b=QNZBxGoVITK5N6WaOgWkQnq0pXGmrtHKXxU5n/Awbvkqd96dwQAeU4QhwVBiRoEX1j gzIAEdD1H1W8JsGkl0bBkWQsZAiN/mzS/ZPJBkJOJ7m7KeM42cffSJtSrzIu9g6rij9l 82YGV7X0kBy8cOsdyAVUHFEfbzQ/KNrR8nV2TYdz+njE/qvuAs7UodPkMW8bEOm7AnHj m+szdChYW1lu9o+Axk3wg8h60fNRYhMKE3xnZk6zIlIPEzNIGWp2U+hGnDnCM/HAdl5T 0awF8ZPOxUgzvNE5ox0DtzWnEAC/QJGl2Z+uQ5w/5+iVMU7HxqJrRr+CzYjZhQyswDjf 3vqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=ExRWKKtWjwjMfUMo3XFsagCD3+PJwFwlQH9y9gF24co=; b=patlD/VJ47jDQjs2S5MqWJLpngKu9BT5zBAm4qWEnXg4w9nl+Z2wIg++gwwM0AeemG OfqJY84/V8wuyGB2PL4E5Q37JBB9+HZFdZnY5dg5skK0uJ6iyTlHRjlSmykyUdOH2DNr 0EKLAeBgTIuWvPw2hPnpBDeL+KThjW/pH3PSB9Yqoq4qohnXJQvDEyXjd5Y4Ej/GtvFM todrVBEWGm+iuzK7ZKPCc+jGWUcHYfE8agubC90+oTWhQj3B3+aqsAiK7kBO0b9aZvU0 FHM1BOSIA0AptSeqDXDqSoMfqGMlZkI/kVmsP5cX4ba0anN5EmZtcZZW0gc6S919CZAy t7fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oIUSl5eM; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si1731919ejg.46.2020.05.27.04.13.37; Wed, 27 May 2020 04:14:00 -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=@kernel.org header.s=default header.b=oIUSl5eM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388125AbgE0IfL (ORCPT + 99 others); Wed, 27 May 2020 04:35:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:40484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388119AbgE0IfJ (ORCPT ); Wed, 27 May 2020 04:35:09 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0503E2084C; Wed, 27 May 2020 08:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590568509; bh=ExRWKKtWjwjMfUMo3XFsagCD3+PJwFwlQH9y9gF24co=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=oIUSl5eMOR1MZzMDvtFWB0YQE3IPL/ZM/1HMr0RMhTmwYvrsKFVWiQAh4G6mHvd+Q 3H28kUP+38zAqybb2CWyvvgwuV3h90u5Tfnvz/c4lyACL6RqPaJ15NHoJ0zHzmZxK2 qYZPvrf1QmWw+rQ4Uy7yVLf9PFu9DpYQJomN8HPg= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1590564453-24499-7-git-send-email-dillon.minfei@gmail.com> References: <1590564453-24499-1-git-send-email-dillon.minfei@gmail.com> <1590564453-24499-7-git-send-email-dillon.minfei@gmail.com> Subject: Re: [PATCH v6 6/9] clk: stm32: Fix ltdc's clock turn off by clk_disable_unused() after kernel startup From: Stephen Boyd 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 To: airlied@linux.ie, alexandre.torgue@st.com, andy.shevchenko@gmail.com, broonie@kernel.org, daniel@ffwll.ch, dillon.minfei@gmail.com, linus.walleij@linaro.org, mcoquelin.stm32@gmail.com, mturquette@baylibre.com, noralf@tronnes.org, p.zabel@pengutronix.de, robh+dt@kernel.org, sam@ravnborg.org, thierry.reding@gmail.com Date: Wed, 27 May 2020 01:35:08 -0700 Message-ID: <159056850835.88029.9264848839121822798@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting dillon.minfei@gmail.com (2020-05-27 00:27:30) > From: dillon min >=20 > stm32's clk driver register two ltdc gate clk to clk core by > clk_hw_register_gate() and clk_hw_register_composite() >=20 > 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 >=20 > 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. >=20 > Fixes: daf2d117cbca ("clk: stm32f4: Add lcd-tft clock") > Signed-off-by: dillon min > --- Acked-by: Stephen Boyd