Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1227788rwb; Sat, 13 Aug 2022 21:28:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7AG2lFlbvyxaHavd/TZN9sOMl/l5vfZs7f6otlu3OHLOxM721LY/fm4nGwsDBH56BhJdrh X-Received: by 2002:a17:90b:1645:b0:1f7:252a:3eb3 with SMTP id il5-20020a17090b164500b001f7252a3eb3mr21559134pjb.5.1660451336357; Sat, 13 Aug 2022 21:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660451336; cv=none; d=google.com; s=arc-20160816; b=Nj0AN1fWUwIJLenquXnPqhOeooLmsSeytw856g5N4+64S3SwrPFkDMl+KceY3KKfEj jMU7L6grQ0FIIdkMsbLs6zC04RDYAq7pUv4zNez5Ogh9E623E9nz9630CTzq4XE1Zz7I RcIR5LEMulrihkOn2XJtgrfa0Iw6sf+CbPKASD8WHkVfqPBJBp5bOtKKPOq6e/xJk9Kh 1cgxIU9WuYC6O3PrLA689du2DGsjwlnyBsDxxIUe1n4nXxpGgeSVoJZYhXoaqfV7PoZF TefhGX4D5uv1EEylo/yFkuZTkNRpWgc5MZeRG9UkF1AsI0wNkDDo7ADCbfZRzIcknAqs S7zQ== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=xlxrEcPRt7QJWiPNqdAOJW0gyVsucqKY52m23/gcz0s=; b=YgWc5cGLDTD1vjsPhTaJa8w28KL3507myDjG9Y3nWQ27hwLHn5ZhRGdwfts/frkyQr Wc3tl2cDBJAwm8pB0Lm9wfZirVS3ZrVRKvfjyrDzNxtNQZkQKEVDNsxEVfsOmMrArVFc TQO9AdQ/ycRoKi7dk2j3uBBdwkTD+gX7WPHR5MpifBUDzbIi4hgGrZpV53N0TAftYlrY UVxbvOtFj5DDU0LGfLUTjDvYcMAn4V32F1c833xdlh3Z0oUbEPzJgl3CzzrO9ubUoa31 lbSBAO1QSc4+us37OGk7cbPD2VasnhPUX++VIsfz0YM95ekj+7tdQBOrGR080t7GUUFB AEjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@undef.tools header.s=fm1 header.b=CAQnaZV5; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=TTs0mHOj; 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=QUARANTINE sp=NONE dis=NONE) header.from=undef.tools Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a17090a4b0800b001f58bc773e1si10436686pjh.156.2022.08.13.21.28.22; Sat, 13 Aug 2022 21:28:56 -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=@undef.tools header.s=fm1 header.b=CAQnaZV5; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=TTs0mHOj; 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=QUARANTINE sp=NONE dis=NONE) header.from=undef.tools Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230297AbiHNEJE (ORCPT + 99 others); Sun, 14 Aug 2022 00:09:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230083AbiHNEJB (ORCPT ); Sun, 14 Aug 2022 00:09:01 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC621EC68; Sat, 13 Aug 2022 21:08:59 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BB56F5C0095; Sun, 14 Aug 2022 00:08:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 14 Aug 2022 00:08:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=undef.tools; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1660450138; x=1660536538; bh=xlxrEcPRt7QJWiPNqdAOJW0gy VsucqKY52m23/gcz0s=; b=CAQnaZV5IL6WKgz00DfL1kamOOP/xG1fVaLzcKmtd 1CycTSnv24tctUzn9/hZ67r4VyIbWM6TChEsQ6kc3izGLEk1rOwl+O3MECSfE6ji j5dgK8m0Avm2H7+aasfWFRjLYDHEZvKWq9sUgxMt1h0rz00hsWm0P81hzmeLr9rG B63r19iWaf7hlaLyvLVfAmyqmGZbWOOTPwrT9dz7yw0QZMjz/UP06zz+hmepcFgq wf4BDdl4BNKtjBe6WG3JIRYikhlFUxmkyjDnO3al/7mkQHeovJ2FvyHv5YRlTfyM 1Rl4TlkeridmQf3JS4+37RD2HV72SCclmd8UGPZW16A3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1660450138; x=1660536538; bh=xlxrEcPRt7QJWiPNqdAOJW0gyVsucqKY52m 23/gcz0s=; b=TTs0mHOjagr7WiUI13hjrxCJCz/NggxcY5MBG9u07nLJNdTQGNP 01LEwIVS6EhTe4yR5QpuwjXpdklznUE5+NCkHtRzoAu9vF2lV0NUQEzP2YeKfnxv dm1s9ScWU7PDZLqjZUucqWZqyUczfo91Kis6KxyJGSFKI+eOKnfX8AqripYoyLCV yKJMim070JOLJGCOnIc7eR2uQsJdSuFy0SD1s26KUNHAuAraYtlO4kh6SclsoXfV QVrVZkt6PUrgka6mOetCpIrb7vyklHqOZxJMZNOfr5fB8oHlK+O1G6kb7X3bsxSj B0DGR7ef5q/PskfA4s3t3ewRkmnEFm7gWdg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdegledgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheplfgrrhhrrghh ucfiohhssggvlhhluceokhgvrhhnvghlsehunhguvghfrdhtohholhhsqeenucggtffrrg htthgvrhhnpeejueevgfejfeeghffhfeehvdffleetheekkedvfeehieetuedtheevgefh geekhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hkvghrnhgvlhesuhhnuggvfhdrthhoohhlsh X-ME-Proxy: Feedback-ID: id76147eb:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 14 Aug 2022 00:08:54 -0400 (EDT) From: Jarrah Gosbell To: Jacob Chen , Ezequiel Garcia , Mauro Carvalho Chehab , Heiko Stuebner , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: phone-devel@vger.kernel.org, Ondrej Jirman , Jarrah Gosbell Subject: [PATCH] media: rockchip: rga: Fix probe rga_parse_dt bugs Date: Sun, 14 Aug 2022 04:08:07 +0000 Message-Id: <20220814040806.7523-1-kernel@undef.tools> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: Ondrej Jirman rga_parse_dt is missing a error return, so if some of the resources return DEFER_PROBE, probe will succeed without these resources. Signed-off-by: Ondrej Jirman Signed-off-by: Jarrah Gosbell --- drivers/media/platform/rockchip/rga/rga.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c index 2f8df74ad0fd..b88dd7ed2036 100644 --- a/drivers/media/platform/rockchip/rga/rga.c +++ b/drivers/media/platform/rockchip/rga/rga.c @@ -815,8 +815,10 @@ static int rga_probe(struct platform_device *pdev) mutex_init(&rga->mutex); ret = rga_parse_dt(rga); - if (ret) + if (ret) { dev_err(&pdev->dev, "Unable to parse OF data\n"); + return ret; + } pm_runtime_enable(rga->dev); -- 2.35.1