Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3539840ioa; Tue, 26 Apr 2022 05:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWhHjEIcNoHAUf3DhzOxGdFDA2xPR9IbvdrF3EqCAOpd0oex66lvSLXkYIfk8wLH61Ppqd X-Received: by 2002:a05:6402:2c4:b0:425:ac5c:4376 with SMTP id b4-20020a05640202c400b00425ac5c4376mr24950577edx.10.1650977012956; Tue, 26 Apr 2022 05:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650977012; cv=none; d=google.com; s=arc-20160816; b=QNtTXsVDFhlEDDT2nAB+ZfWldf90LAfTSCJPfk+y6dw59KuNVheIqS/82AB6I2s6Fh TIzq/DfKcpplAEdsj8XJ/n5X0pCcJLR4xIkiV3ravsE7XbzcuKSoF5LhbTzpSobxyP0C 9Daunsgc3imsQKnVEkQIdOjNZyi4rkclo/ArcfOWP07cHzzoMEERXswwReiUDomo8Zw3 FRe5LxE3T+OPI1/8esKS0+fG3qr2i0aCDPk6I2b+g6g2L4h77w1iGlJbzvVrBW6faBsy h7GpaJGICAWpb8n8GqsHnIaSfA+xOBa0e9yfVKgmHqUJv1fl4b+Km4ft7PtuQtKOhW36 s/9g== 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=KWjbiOtRHeBTFPU7xcekFVu2PqoPpi7n4c2BD+GkZms=; b=QR2hgtv8+aoG/ySJWcAJpalwXfS1OSvpI0ps/TPAEFAk+dOsbrrDFqViRMdH2hL1hC fzIIl4fl/F0vE2AOvOYC2ea5vTP4vrf3t1oEXm5xH8wzWGFUR0302upM20IL2iN3G4o9 AcAmCTpBFWTmBEh+hpxQp/t1FzE96hkbjbg06AWex2p0DzzoJsN3h/V9CPa/8SQCLGFa glAG3Snq1EfjNT7GEvZkR1HnIKlsLuN8zmWhfFAMYqv5lUOux5rD6+AxcT3esc1jYXVP Q55mLnmcQ7v9rlIvjsbTjp14XvL3+jDin2sDTvHeP19Shz1lxQ14tPlXkuD8YI3B9ibx y7tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AKSC3gCK; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020aa7c908000000b00425b8e21a14si9845167edt.383.2022.04.26.05.43.08; Tue, 26 Apr 2022 05:43:32 -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=AKSC3gCK; 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 S1347086AbiDZJJv (ORCPT + 99 others); Tue, 26 Apr 2022 05:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346654AbiDZIuO (ORCPT ); Tue, 26 Apr 2022 04:50:14 -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 DAE6316D986; Tue, 26 Apr 2022 01:38:31 -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 0D2CFB81CFA; Tue, 26 Apr 2022 08:38:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57D8FC385A4; Tue, 26 Apr 2022 08:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650962308; bh=/gJsLD6N+b5xNTzzF4Bzt0cAnW+Ky2AHaiBFQ8+lpCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AKSC3gCKW53B8ySQ/31OlZ7khNvd33iGHo4xy5XdVZSe+tAimd3h9ttA5cFLlyknu TOdyRWF3hkPbsAcxtL40S+aLX6HBZvjas/zZf2vgppkI7cXaD3HycQWQPBeOc2Z7ER pF9Glv2iyLdPjkLrpViwgNm4aYB+/BorCQC+xxCg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Biju Das , Heiner Kallweit , Philipp Zabel , Sasha Levin Subject: [PATCH 5.15 054/124] reset: renesas: Check return value of reset_control_deassert() Date: Tue, 26 Apr 2022 10:20:55 +0200 Message-Id: <20220426081748.837896691@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220426081747.286685339@linuxfoundation.org> References: <20220426081747.286685339@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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 From: Heiner Kallweit [ Upstream commit da18980a855edf44270f05455e0ec3f2472f64cc ] Deasserting the reset is vital, therefore bail out in case of error. Suggested-by: Biju Das Signed-off-by: Heiner Kallweit Reviewed-by: Biju Das Link: https://lore.kernel.org/r/b2131908-0110-006b-862f-080517f3e2d8@gmail.com Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin --- drivers/reset/reset-rzg2l-usbphy-ctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-rzg2l-usbphy-ctrl.c b/drivers/reset/reset-rzg2l-usbphy-ctrl.c index 1e8315038850..a8dde4606360 100644 --- a/drivers/reset/reset-rzg2l-usbphy-ctrl.c +++ b/drivers/reset/reset-rzg2l-usbphy-ctrl.c @@ -121,7 +121,9 @@ static int rzg2l_usbphy_ctrl_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(priv->rstc), "failed to get reset\n"); - reset_control_deassert(priv->rstc); + error = reset_control_deassert(priv->rstc); + if (error) + return error; priv->rcdev.ops = &rzg2l_usbphy_ctrl_reset_ops; priv->rcdev.of_reset_n_cells = 1; -- 2.35.1