From patchwork Sat Oct 22 07:19:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7428 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1097843wrr; Sat, 22 Oct 2022 01:08:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7sFGhAwX63ACpmJjqEmDVpUNChjTOlvPxz4ruVjOpgWamteS5feK5JrGT507q3+Km5xtk9 X-Received: by 2002:a17:90b:4f4a:b0:20c:64e2:2bf1 with SMTP id pj10-20020a17090b4f4a00b0020c64e22bf1mr27986001pjb.30.1666426134557; Sat, 22 Oct 2022 01:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666426134; cv=none; d=google.com; s=arc-20160816; b=vsjPZv/UfJoheAJ3AoZiKmPDdCT4bHT8Mh2NxwOSrLn78LtdEY+5M/5ddoxMwVk3zF d7he4EjB5lpvaQdJSf6GfUFhA6ijyLMlrXY34urCyzjkAWReEygOcd275dO0tdTjpA9l I1yD03SJwgC2bXztozgrZUxSrMly43Exwm2ZE2Kt4Dws+YDby56Xiv6LytTlCozPwRNb ZZSPxQjVIVaQnEWhXYjf8OLjh5JysBLukUlmw9RGdN64+oBsjL+QyNqaXKoLiJ+qIc/b D2Ibbifacf/v82xgBHiPRLYPKxheQsWUbFP2LB4d76wd/t0HnCI2oGxMrQecARLS12pQ 2n9A== 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=gfxxX0aUX/pg6s0PohU/GMlYSATe2edQ4rb60JFnBQ4=; b=H3qH2T5/NUY/iKoJczaajHnhk43DUlgMwdDXMmoMw2HzdhCF1hF1DUjRNJsgIE5dD3 J8sn498aFAbvcruMyWhDP16muer7pn66JjWJdsDoqrY3F+16LuJWkLf9i07WlqrfiJun dzouq0WszPwMNk+u/eygf2tKa8HIkz1JDAncS/7ciHY9Fz6n1U3uoFcgKPKi3/7b1ofn NIP1O7773OF/hugNQ5dDUyKp5IL0EwRBpOs33H75c8eqW8RsHuDA2d2fNQOvAX4oAjlD FNdgmBpZhd3SruyOABiBINgZ7X9GAqCj+M67yvcP6NtYAbbyY+9jt1dAlRfB1QJNHtRA TA/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xWEU3kBE; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a170902d50600b00182b78df2f8si33166637plg.495.2022.10.22.01.08.41; Sat, 22 Oct 2022 01:08:54 -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=@linuxfoundation.org header.s=korg header.b=xWEU3kBE; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233061AbiJVIIX (ORCPT + 99 others); Sat, 22 Oct 2022 04:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232990AbiJVIEe (ORCPT ); Sat, 22 Oct 2022 04:04:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 592832C5688; Sat, 22 Oct 2022 00:52:01 -0700 (PDT) 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 696CDB82D9F; Sat, 22 Oct 2022 07:38:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0161C433C1; Sat, 22 Oct 2022 07:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424300; bh=D2jgQwQo364439T549ihHR/3+u5XK1iy4v8lN4klREE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xWEU3kBEhi7L0QPEJbjDbrz532+zo7C/pYSAbdmbnX5BZamM2y2hLGbuGjZpeu691 z9V6ZGBaXgi78rZgxG5iaKcRZ7rMwQv51HiwOtQmJxj8sabpqjQNx0nBJ4baUXGRdL fmkrCjFbYZVxXx50htks9V3K2k1vuOBV+cuVIyKE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Srinivas Kandagatla Subject: [PATCH 5.19 093/717] slimbus: qcom-ngd: use correct error in message of pdr_add_lookup() failure Date: Sat, 22 Oct 2022 09:19:32 +0200 Message-Id: <20221022072431.844276021@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747374450487707080?= X-GMAIL-MSGID: =?utf-8?q?1747374450487707080?= From: Krzysztof Kozlowski commit 5038d21dde818fe74ba1fcb6f2cee35b8c2ebbf2 upstream. Use correct error code, instead of previous 'ret' value, when printing error from pdr_add_lookup() failure. Fixes: e1ae85e1830e ("slimbus: qcom-ngd-ctrl: add Protection Domain Restart Support") Cc: Signed-off-by: Krzysztof Kozlowski Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20220916122910.170730-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/slimbus/qcom-ngd-ctrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1581,8 +1581,9 @@ static int qcom_slim_ngd_ctrl_probe(stru pds = pdr_add_lookup(ctrl->pdr, "avs/audio", "msm/adsp/audio_pd"); if (IS_ERR(pds) && PTR_ERR(pds) != -EALREADY) { + ret = PTR_ERR(pds); dev_err(dev, "pdr add lookup failed: %d\n", ret); - return PTR_ERR(pds); + return ret; } platform_driver_register(&qcom_slim_ngd_driver);