Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp713363pxv; Thu, 15 Jul 2021 14:12:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQyE65UXEKS3lvTWK7jBbu899rMe++ijBX25AUW2/exzW18/uLtxa/SL+ibgjKTTDsSXru X-Received: by 2002:a05:6402:647:: with SMTP id u7mr9765437edx.113.1626383542435; Thu, 15 Jul 2021 14:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383542; cv=none; d=google.com; s=arc-20160816; b=eO1uoHwcFyCfNYX1IgVzbvj7DDkn6DvtTaghe21RMsrpbe8MyDCCMdl6/5JlUZM4+z PS7Auw59U9mrWYFJqtsHbr3zUkA9X33/qjOFAm3vjJbXCa9fQru249w1DBoxPGtAFSG3 y+BhrQApTcSFFT4kcbYyAZumnzU37sF0YMUVv7dfhRgZp8K07nN9Ts4upmURZvgbqQdf cMxIr3VrD8CZQTAbwejAM06q6tBgNVn9DxVvZWdzqc0D++NPSt/mSdwI9pAc5YSRCw4s 2nrCJVkQaMPYsZK7gwGcytXWDmyZogH3YsRnkVfdyoWOa1XZI4VGAsuuWnpqT5IsZJIV VQSA== 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=Lxp+X++P8Nz+4drLkGTpwJUoajbTqhqxBq9kvmbFaNk=; b=abofyI2dCs72IaCHZL7WRosDlsnO7uzmmSPoxHm9QhtxjNtu0wzEiYzte8Ek/EANpb xbppKcbNOtoStaV2P+VXRnh2Kt+cCwPvNmbB4FfyiX81mdeRG44FzVkRVA8dTWpV05Tu KR8icX/yhnvAiaVL3KrWRiDDF/R3dgBbu826eFFDVF+qY7ubpVP/Tg8cY933PLB74x4t IZDHmeAAXrIGWO09DnwCCDLDxSfQjTsR539z3SmRCK0quv2XkjjOJBSVTlKRHLmxaI2e SnA2EcLORp6xqeIa2o93GKZ1kxj320FORljZMrNLhL920lyNF7CGW3hOU8aje8JERq9K u9wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bSq7IoJh; 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 t12si10185058edc.33.2021.07.15.14.11.59; Thu, 15 Jul 2021 14:12:22 -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=@linuxfoundation.org header.s=korg header.b=bSq7IoJh; 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 S1345078AbhGOTan (ORCPT + 99 others); Thu, 15 Jul 2021 15:30:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:46432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242835AbhGOTJR (ORCPT ); Thu, 15 Jul 2021 15:09:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5CA33613F3; Thu, 15 Jul 2021 19:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375885; bh=Ct3Y7jkwoKYSQltROAjqMjbfy7zwRvvP9DDxZboJejs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bSq7IoJhYalNf2oee/PNYD7BM4jVZzcscnBQfsOX2NVWxGNbhfBi7QNK4Dkd6jmJC zq1wvtIdaYZjLLSRWaoosFDxVPRS+XyqnvFIBv26shN0khnq999Ng9CzAhnJD1xNDR VURnWv+hrIyDwo5VP7krf4yO9LXriAh70jUihGm4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Feifei Xu , Lijo Lazar , Alex Deucher , Sasha Levin Subject: [PATCH 5.13 036/266] drm/amd/pm: fix return value in aldebaran_set_mp1_state() Date: Thu, 15 Jul 2021 20:36:31 +0200 Message-Id: <20210715182620.679432868@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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: Feifei Xu [ Upstream commit 5051cb794ac5d92154e186d87cdc12cba613f4f6 ] For default cases,we should return 0. Otherwise resume will abort because of the wrong return value. Signed-off-by: Feifei Xu Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c index dcbe3a72da09..16ad4683eb69 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c @@ -1779,10 +1779,8 @@ static int aldebaran_set_mp1_state(struct smu_context *smu, case PP_MP1_STATE_UNLOAD: return smu_cmn_set_mp1_state(smu, mp1_state); default: - return -EINVAL; + return 0; } - - return 0; } static const struct pptable_funcs aldebaran_ppt_funcs = { -- 2.30.2