Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3712424pxb; Mon, 24 Jan 2022 16:05:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkUF1+s32LRgaB97NCm4y8s39ZuKw73R3Bqye6SF3zhbfO4y5utbK2SbUA6iT9ulkvx5OJ X-Received: by 2002:a17:902:d4c3:b0:14a:3575:2843 with SMTP id o3-20020a170902d4c300b0014a35752843mr16430638plg.40.1643069103772; Mon, 24 Jan 2022 16:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069103; cv=none; d=google.com; s=arc-20160816; b=mG+U0c+k0JQLSZrtb1G/ppe/Ta0i8OrSgoPcHTS5mfr6P+FU/KYrqWc6soEWjrXQ+g nxEeFzVgHQlkXUdgBUefaGff07nA0i5sAWFrxkGE0kxZvx9nqu0UdkUXzKSkAaInvmuE 8tESGQ9QwVUHXL3FqBpxNi3q6oGI0c+/ypz6jBcTmplikL+Ex66iNSfMYJ2e1uhdWp4P Ta87otDr7uFq5PtoXBD3vI4G4BCAMiVaiIybjzfJQboiVFM3FyBG3uqn1mQR3vH2i1Bm yHoRM4ts8Wm08wyheIL30AYR2C4zJinUmjXOlU2FUbtDqwnk3MzqgLpNP16KCASrEQ/H +BEg== 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=XAkcV+F3OI7YqXpQKmseMAKyKot+cRGj/vLKX0hqBCM=; b=m5x5UUtyly6gcPkxobvbUeiSEF7THxA025xkzUbXq92r8ncij6Blc2bO3uKfLJi7dr p0l8kGzzi2s+Thb/OECpVvGUl9tf3fMBRTKEX8hn7PQKPQSap4LjQTYwDQcQQQ6EisDH PDFoJ9iXE3vDWOLm6bCJNWslD+lu+msEnRXKa0ZMHhV+Yb880bkRNjGGj9j7CvlEfAno HvG+es1gUKaMQyNCHLwcrziy6IksdG8Mrs5RMd7Wlvtgek/1EnAWpA1A3V9w/lJZVsz5 +w9zUwF1ffoUhJ9UV2qSgT6jyJB6u0u1x1d0VVWQVlxCOUuy/730nsS6hpZaDyFVGNt1 QYGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kqBIs3K9; 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 k1si9406150pgn.306.2022.01.24.16.04.51; Mon, 24 Jan 2022 16:05:03 -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=kqBIs3K9; 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 S2367854AbiAXX4l (ORCPT + 99 others); Mon, 24 Jan 2022 18:56:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1846416AbiAXXPz (ORCPT ); Mon, 24 Jan 2022 18:15:55 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63D25C0604CF; Mon, 24 Jan 2022 13:24:08 -0800 (PST) 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 00622614C9; Mon, 24 Jan 2022 21:24:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7FA4C340E4; Mon, 24 Jan 2022 21:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059447; bh=REBuG4OoCqpO2dEgywiMEnlKX2lH4hWXFOcoOtaLmws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kqBIs3K9j84lHej5as9GL+6WVJSycKSmxuAcTRR0T0lx4NhT4mMF07BvgjsNx58mF PUfwTf2Zw13BYolNN4Nt6OO4hC6Rd0Q9eVWpHSL5wkBRx5z1tsj9+fUFuasAXZbO+m xdnv5Iwgc00+ED6VNRax7p1gs/djwWobx6WwxcGY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aric Cyr , Qingqing Zhuo , Martin Leung , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.16 0586/1039] drm/amd/display: add else to avoid double destroy clk_mgr Date: Mon, 24 Jan 2022 19:39:35 +0100 Message-Id: <20220124184145.038092690@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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: Martin Leung [ Upstream commit 11dff0e871037a6ad978e52f826a2eb7f5fb274a ] [Why & How] when changing some code we accidentally changed else if-> if. reverting that. Reviewed-by: Aric Cyr Acked-by: Qingqing Zhuo Signed-off-by: Martin Leung Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c index 26f96ee324729..9200c8ce02ba9 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c @@ -308,8 +308,7 @@ void dc_destroy_clk_mgr(struct clk_mgr *clk_mgr_base) case FAMILY_NV: if (ASICREV_IS_SIENNA_CICHLID_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) { dcn3_clk_mgr_destroy(clk_mgr); - } - if (ASICREV_IS_DIMGREY_CAVEFISH_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) { + } else if (ASICREV_IS_DIMGREY_CAVEFISH_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) { dcn3_clk_mgr_destroy(clk_mgr); } if (ASICREV_IS_BEIGE_GOBY_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) { -- 2.34.1