Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1538908rwb; Sun, 14 Aug 2022 06:16:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6qNBGnctEIfjo34xuVubLW5cUOU3EoQRutzMd4CLue3jGysT2bww/cYAPiF1SAs6++5KRY X-Received: by 2002:aa7:c7da:0:b0:440:d482:36b5 with SMTP id o26-20020aa7c7da000000b00440d48236b5mr11019981eds.21.1660483018554; Sun, 14 Aug 2022 06:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660483018; cv=none; d=google.com; s=arc-20160816; b=XaHsxCnA9rpl97m9iiBQJkDQo96FnfYLa0zrz8b60Nmt0s0raw47ZCIYxvNMHAt+lt VTKNJ0ldZnlxSnN+WcmCsNFaSo+QWll3htE75sAD9CoC5u2qO5m6YBRJ6sVKUoSz4Fex piyt2N16ArJNdm5+4loi/9OTCbQrFDbHdt1losfuTTluCr3hYjJTnggUSnf7lpbsFDsf ieAVL22oyUdwwelHyNamDrFFodHhvC3ciXi0pelqpuPEiO9nG7eT7x28UV8yT5LbINJT 53hpBH/oTQ+TPaYv/ONXUfAQLjMxtCqzboaxoqt76i9im0obXtQ13ka9NgFrES3TDTay NsMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=N6io3A2B3gOnjaLctJK+AORdD68hnIfgj9pgUADE+0k=; b=VF26c3dlXMiPdyNwtHgJcNfywb193SQch1pLXw+JzgKYRugcfLFehWb+qiu86+RYVR V+Xryab8PxQLHq+l8jqD8pid7cwlZdFHMsTeAcKfV1TnIZBnJb1c8RQGYtA3cj5l+mKN M+0AB6cVf73lHVXm9uMozUGBoMJPuy/Xy4u+e4+Q4QaXboFzs/fqclNDpUiuAd2Rgeyc AZRuYj4kMKC0gBC7F1tcT+S81pVusT3lXJjcZFLS+0yGom6V0OJH7P8J2eXTH5Q9sTb0 AJN1IZ9mUe95UZ6tBAXBvRQpy+sEyE7b2yFZ3cuOGvp9x1MhSOJwb4g0P9aYBi5JHMGM pf3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iDymSYVb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a056402269200b0043e1c8b6187si6761943edd.1.2022.08.14.06.16.28; Sun, 14 Aug 2022 06:16:58 -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=@gmail.com header.s=20210112 header.b=iDymSYVb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230483AbiHNNMr (ORCPT + 99 others); Sun, 14 Aug 2022 09:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbiHNNMo (ORCPT ); Sun, 14 Aug 2022 09:12:44 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1F5D10566; Sun, 14 Aug 2022 06:12:41 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id az6-20020a05600c600600b003a530cebbe3so2745118wmb.0; Sun, 14 Aug 2022 06:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=N6io3A2B3gOnjaLctJK+AORdD68hnIfgj9pgUADE+0k=; b=iDymSYVbtnceEseY6LJGZvvSnhJThnz5nk0Q4aG1XvngKwqALSlMzSHEt5oiOtxMNa iykN/V+qXWXlzW8CvsZz8GuslLVxE36eKD8c9lULIGUp4cHAl/JjnUDAfL05J3f3MLgU DF9mZNHLDjepLmjxkPedIxjF7VbzQ5WLbujUw78wSS5TLIb2knhl35zxAmb2R3rk6oTw 7rSCQzcD1UOm456dKHjkSpbCv0Nnrc3JrRThCMEJlqLCsKIqZ845YKqad9BhuVWJ+cij S4yq0Ts/sfyqpyhImBFfMHP7X0RMTajYmsK+9ymbPGcb6rwHUiNidokSD4tayAOAJoJF jX4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=N6io3A2B3gOnjaLctJK+AORdD68hnIfgj9pgUADE+0k=; b=fSxaD2Y+6VOUCNSsGFW99yqcGVKk5+JXH/jAWqziGGeVPLnA3r0U6ZUkGvrt5faOcd pYTJxAZuso5c8TuYiYbYZDMcDhyupcECdZFwHxsL5THD9H607thnWKzRA2rEttq5AoPU 8phZwkgndOBL+nvoX8UsD1zc1oLpOJu2A9Kh2AW7DAkKNixCzWeCj17//EPzsmuEpgWj byQ6OYfaECOtvMHwWdQV9netf2VWrcnhJ1PqAxeM9sBaxGiAEyWwBBPAQzgjGNdfUBPn 3XmfqMtT57cleMUMy38v3X80/Ornr0q18FRfQGFfWwPR9PnPwiWiHNJJ0vv7TkbH6slK 0ELA== X-Gm-Message-State: ACgBeo1dMW2E01LVtuzl4JzvHkTZgwYO17jp7yoahrcLBX0e9sAziz/X hR9kT0LjQc7BCCdVUuiUa3cpIczmhdLNsKLKsYA= X-Received: by 2002:a05:600c:5114:b0:3a5:cb1f:6bf3 with SMTP id o20-20020a05600c511400b003a5cb1f6bf3mr6961219wms.65.1660482760270; Sun, 14 Aug 2022 06:12:40 -0700 (PDT) MIME-Version: 1.0 References: <20220814040806.7523-1-kernel@undef.tools> In-Reply-To: <20220814040806.7523-1-kernel@undef.tools> From: Peter Geis Date: Sun, 14 Aug 2022 15:12:28 +0200 Message-ID: Subject: Re: [PATCH] media: rockchip: rga: Fix probe rga_parse_dt bugs To: Jarrah Gosbell Cc: Jacob Chen , Ezequiel Garcia , Mauro Carvalho Chehab , Heiko Stuebner , Linux Media Mailing List , "open list:ARM/Rockchip SoC..." , arm-mail-list , Linux Kernel Mailing List , phone-devel@vger.kernel.org, Ondrej Jirman Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On Sun, Aug 14, 2022 at 6:10 AM Jarrah Gosbell wrote: > > 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"); If this can return EPROBE_DEFER, shouldn't this be dev_err_probe instead of dev_err? > + return ret; > + } > > pm_runtime_enable(rga->dev); > > -- > 2.35.1 > > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip