Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3982301pxb; Tue, 25 Jan 2022 00:37:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJylKvPUYyi3J6o4fUhD9pSH+3k1LJLtU9qoP/rHpNjDjkPqw1ytjS4kPR4rUzvGFertP5Td X-Received: by 2002:a63:6806:: with SMTP id d6mr14611458pgc.353.1643099831270; Tue, 25 Jan 2022 00:37:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099831; cv=none; d=google.com; s=arc-20160816; b=uyo3HgHQJFRMJ/yqf7S+lwbliCaYChFV6FiL3cXWuLW8Re0sGHA3V2PxjNi1NAKVdw xqrJj7pXNeBUMOsATWw3lSVRgftMMv2//HZej7IQ+hQjMmInXVSLa0DEs+XoXxrqEvNZ 91comCkX+uGfp3o2XcXncfORcdjpPMGpDUC84PnZqjbxnFiYW2lC6cv8XcDtcaSAXl2e Q4ApYF33ec66DBM0aUSvld22yC717Iu/jVC6a9V6nlmj7sDDpEVxzY7XSV1F9VZGT1xM YjfIEwH4RZWX+hVsJm94yzEkCkn4h6Hjh6Irp+0zz0FJXt++m0n6SCZrBlTlZ8Nmiv5U aaEg== 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=qfKT0cRuqw45MG8w7YbuPf+DpBwmi3Mq46m1p79m+YA=; b=UlGJgkH9VAhSLea/vkYmfwi625Pnr8YORqVE4b9739AoyDAJyyv9x9n6HhxXaVOdG9 UscuByhdyqsypuEOo5dN/Gxd3NCMyKqO/jFk1w4KG++ZFKAyjJSnj8d9wGRcsUWoD9n0 JG866+qJprOrxolP0IkAb5zT96ZN06sHPQLF4kYxozHifZJEqLsUDr5LL074zPyKA325 XR38Auiz7XxPQ9Nhp5uR/dj+IaFk/3SqJCPYkKYcBDEF1GwF+pozbNpHgJ0fdHmo7LIX LI/7+qQUWxLHVMoVsnViMbmEXX15gie6VMVMNRfvm6Zik6XE2fAnCSUt1v4tOgL47J65 toag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pNUg5T9O; 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 m21si1483006pjn.63.2022.01.25.00.36.43; Tue, 25 Jan 2022 00:37:11 -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=pNUg5T9O; 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 S1315419AbiAYCxV (ORCPT + 99 others); Mon, 24 Jan 2022 21:53:21 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:58932 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349099AbiAXVGs (ORCPT ); Mon, 24 Jan 2022 16:06:48 -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 4B566B81188; Mon, 24 Jan 2022 21:06:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F0AFC340E5; Mon, 24 Jan 2022 21:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058402; bh=uJ1++earz7G6KZn++LZyYdU2fw7m5hLElXi2bBZLUwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pNUg5T9OGsWu/bCGV2bQVrDQdzDKjlIYJWCYzGg/OVLya0+Lhnt1pffYVGa7Gpo// 5v7LG7GtzCpA7QuNLRAQlrhWRmyCJt7M+TbIWC8+s0dskEUy4FLJb/16X5Sdx6cd/L GCAp2gtDGZH9L26HbMOrY3M6+dKNyqwGXCHYmpOg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Weili Qian , Herbert Xu , Sasha Levin Subject: [PATCH 5.16 0278/1039] crypto: hisilicon/qm - fix incorrect return value of hisi_qm_resume() Date: Mon, 24 Jan 2022 19:34:27 +0100 Message-Id: <20220124184134.628311296@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: Weili Qian [ Upstream commit 3f9dd4c802b96626e869b2d29c8e401dabadd23e ] When hisi_qm_resume() returns 0, it indicates that the device has started successfully. If the device fails to start, hisi_qm_resume() needs to return the actual error code to the caller instead of 0. Fixes: d7ea53395b72 ("crypto: hisilicon - add runtime PM ops") Signed-off-by: Weili Qian Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/hisilicon/qm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 52d6cca6262e2..70b0405494db5 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -6038,7 +6038,7 @@ int hisi_qm_resume(struct device *dev) if (ret) pci_err(pdev, "failed to start qm(%d)\n", ret); - return 0; + return ret; } EXPORT_SYMBOL_GPL(hisi_qm_resume); -- 2.34.1