Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3653567pxb; Mon, 24 Jan 2022 14:31:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVgM/94U8pFqPGRyewJkPYuc0B7GN468xn4bk2DZucoLMim3LIppifsEAEg7TYnTccsIk5 X-Received: by 2002:a63:864a:: with SMTP id x71mr12397046pgd.194.1643063486879; Mon, 24 Jan 2022 14:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063486; cv=none; d=google.com; s=arc-20160816; b=nOgQboP861cABCOV43rkZQA4SLWe7p9IprsbpfDEWf4Xi7wSKtoTO6WFtdw5BexoLg vu649kl3p4CAVlnIfn9pK/14weEG8lD+T3UYhiylWGWg1o3wZlknzjv6i6w2m2JGFuWp IHI9RvpsP67QF2jsSoOcNMz0MYikGlmp0iwBRwbxDGwnvBYciH7N9uawuZIYvXkglDOX ANjSbrC8OGwVToFp4f+iELI6ax7eoLtB9SF8Ey9Ff64POx7udH24t+KvqWVbmmnYHHhG 0WyHeUe3pMSZdeYJF4asCdGwuAKsxAjk8ITZHosrBBq+1sTIoV4saQf0URpSaT7JjbbQ 4ZSw== 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=66F7k5Peqa0qaUTd6pmt3qdilygyp+/FSUzTP9c6Bkc=; b=gROMAMDU2yRyf1Yd688fQRg0bsj90m3PPX5qyenConNrlZen4SP9pZJnF6AHyvcB8a eCfXaskf6OUTPlhaJorNeosZwXfHJ93msvoHydrJQCyw2bqKl0jxsyHZ0JyEJIeL1nY7 e/yfhpLTLEi8oUH8Vc3OPXGDEOABfw3Q9B47LQOQ0NZ9aRZsLhXnn0fkLZkD7iqSRibz r0FcNQx8zaeTGKAn6Vahuslb6zOS+b1Ng/+qDJDf+ZyMMoozJEW9+eWXv7hqNJZFy3k1 FmDS/xLZIxAJyHTvS7XYtVmynEgXF71bYEi6ceG7+iF4nTQ/+5Y1O3PoOvhIpq/2fZlY S4RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PXUVEcmd; 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 k189si14851652pgc.440.2022.01.24.14.31.14; Mon, 24 Jan 2022 14:31:26 -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=PXUVEcmd; 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 S1587290AbiAXW2D (ORCPT + 99 others); Mon, 24 Jan 2022 17:28:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1454804AbiAXVdn (ORCPT ); Mon, 24 Jan 2022 16:33:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B9E4C075D25; Mon, 24 Jan 2022 12:21:46 -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 ams.source.kernel.org (Postfix) with ESMTPS id 298E0B81257; Mon, 24 Jan 2022 20:21:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58A04C340E5; Mon, 24 Jan 2022 20:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055703; bh=1KHb9wvFXEyYvtRJab/HZafFYOYTD5JvDV83wTL6zN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PXUVEcmdNycSHkPqP2NFzmgdcLprvxv0m6E9rSeIq+Qs4EleP+9ibnsXyAGnXwRdB wCrFFiqUj1RYVpE3N49HvwaaulwYPHs3Su2yRFiHG2QzDl5XnZWIXSRsai41jdT38l OG94BfSFBLak0v5gcZTsBLluhTBfENv2UWVdudUI= 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.15 238/846] crypto: hisilicon/qm - fix incorrect return value of hisi_qm_resume() Date: Mon, 24 Jan 2022 19:35:55 +0100 Message-Id: <20220124184109.145101923@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 369562d34d66a..ff1122153fbec 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -5986,7 +5986,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