Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8437909rwr; Thu, 11 May 2023 00:57:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sAbibaQ5cBg/XpqTP+OKG9fPVXpoyA6RdyqsMqYfU3INj7MrDC+557wOkTZxRXHEEuxXX X-Received: by 2002:a17:903:1110:b0:1aa:ff41:31a7 with SMTP id n16-20020a170903111000b001aaff4131a7mr26743825plh.13.1683791843292; Thu, 11 May 2023 00:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683791843; cv=none; d=google.com; s=arc-20160816; b=lCCpbYaRn2lzBA7Sf0mDQf46w4rRwN87DlAg2ZahRxo/JstHg/mDF/PNFxsTw1ohFR 23fg559QcoJQnGTnC4a8u+TT5ipxGJr15vublTVtZipqLyOj/u4GohrnZwacLx2Uv1aV IoErU+P6l6FdCZFbhnnoUCmBcDGSjXc4NfJz3XB/cWKTmNVGmPGDxHYRaJsCskY2Nl5E NkueW/gdOFffEhpw/5JwxfEoGvn0HM9KQBjq4KYgVhtkPgtjCA6OrgGiP7ns1kQDVvJU Ig4H7bd7XdAtJd9nQGZutgV2FiR2SvMe2XzNPfX0yQR6WfqrfyQjZETaGEOABoZypPYr 0h9Q== 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:date :message-id:subject:references:in-reply-to:cc:to:from:feedback-id :dkim-signature:dkim-signature; bh=wYFYldVZ7F6H2DOpsymRO/OM8vDYBZCnRDNSUpMOjpE=; b=lR4pO7lIYxj6+DSwQzUTq9abZQmBNY27Amq4jSex8HLPv299pnKgJ8YzCEQYz48IHK YRtZfr5euplaEN2jubHWqUusAYkYydKYN2b9wIf/cifgMXKgP/cRabjnGBWijfPm80yG t0abpYzvCVcmdtAGQtp9QA2UxwQb4JxBNSArY6BC4rHBHtKvrzsGySJQv5jwlQuOnidv aqgHK+gYk6ORr1E8zhF9jrB7D/HNvtQoMiaSVmLxc37RMNYSuhe9j4m1RAKCeeNidL8u BG2ff576Z+cz+UIMyQbauludWFcCv9GIOLAH/yr+Fg/7DL0ghmUTAGZ2azHybwkzJ0Vy o1Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=e+RYGBqn; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=k0CrTwxQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a63ab07000000b0052c9e4521a1si5999818pgf.673.2023.05.11.00.57.11; Thu, 11 May 2023 00:57:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=e+RYGBqn; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=k0CrTwxQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237364AbjEKHdk (ORCPT + 99 others); Thu, 11 May 2023 03:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237420AbjEKHdS (ORCPT ); Thu, 11 May 2023 03:33:18 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C05E8689 for ; Thu, 11 May 2023 00:32:45 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 601E65C084A; Thu, 11 May 2023 03:32:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 11 May 2023 03:32:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1683790364; x=1683876764; bh=wYFYldVZ7F6H2DOpsymRO/OM8vDYBZCnRDN SUpMOjpE=; b=e+RYGBqnkGYFVQEo2Mac00EHhWQefHpqIMtmXgDynoceEB6PhIO 2shdgrz7H0fIvxJW4MImc2s12FN49MaDCKhORtZcOSUr8pp2Kopy5wxKFOatkdaV +VFevbWkFI86HXZO+fk0Dfk8C5/04XwWA40lOIN380Q2XTQYL9yK20Qt7/SE455w 6NArPYlrAbqehZXYZt/77evofgzO/0BESWyvaqIU7woK+usMj6/9EWq0B9eIBeyb iJ59LznmTG9nqhe3hXIBvYuyJ4QQCFZzL/jm1MZQeoOqJMg9bgSY6cnRS9kEiSiE o/uIFG78u2eOvpmv3DQ3EN6GkHdYcpidxrw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1683790364; x=1683876764; bh=wYFYldVZ7F6H2DOpsymRO/OM8vDYBZCnRDN SUpMOjpE=; b=k0CrTwxQd8aP88MVJO8COQ+0xCOYfjH/wWc6CfsXnFOeK4rDyfM oD1ljUCBVj1KqsVWyVjmxHKkP226T7TcVE1t8wj4TSWlT3SL6iftJySJy9D8rGHM KOzAvzkvKOLYA3Gad+EiXgb1/AZZ/OkmytE8XvQ8k0FQGaI9Wau8EWSNYlq5xbRA 4j9shG28HOOjWaZqWGAJCUVVmG2UqC1zm8hid3f6MCoHyHoYT3U72kW8vcDYcxn0 m+G/KwrW60Ydwxh+Tr9ZIAQ/cGDFMlM22urAqc6jC58GfnDIYZ60PseX9GecAHKc Cc/p5imo2FqNztI7/I+hqrKywoOeiWwbz7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeegjedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevjghfuffkffggtgfgofesthejredtredtjeenucfhrhhomhepofgr gihimhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtf frrghtthgvrhhnpeelieffgfdvteejjeeujeeiheeuvdetieegheethffhieefgeelkedu keetgeeuffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 May 2023 03:32:43 -0400 (EDT) From: Maxime Ripard To: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Jernej Skrabec , Samuel Holland , Boris Brezillon , Paul Kocialkowski , XuDong Liu Cc: hust-os-kernel-patches@googlegroups.com, Dongliang Mu , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org In-Reply-To: <20230430112347.4689-1-m202071377@hust.edu.cn> References: <20230430112347.4689-1-m202071377@hust.edu.cn> Subject: Re: (subset) [PATCH] drm: sun4i_tcon: use devm_clk_get_enabled in `sun4i_tcon_init_clocks` Message-Id: <168379036200.796072.421403145532970427.b4-ty@cerno.tech> Date: Thu, 11 May 2023 09:32:42 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 30 Apr 2023 19:23:46 +0800, XuDong Liu wrote: > Smatch reports: > drivers/gpu/drm/sun4i/sun4i_tcon.c:805 sun4i_tcon_init_clocks() warn: > 'tcon->clk' from clk_prepare_enable() not released on lines: 792,801. > > In the function sun4i_tcon_init_clocks(), tcon->clk and tcon->sclk0 are > not disabled in the error handling, which affects the release of > these variable. Although sun4i_tcon_bind(), which calls > sun4i_tcon_init_clocks(), use sun4i_tcon_free_clocks to disable the > variables mentioned, but the error handling branch of > sun4i_tcon_init_clocks() ignores the required disable process. > > [...] Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime