Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1970592ybj; Wed, 6 May 2020 08:25:25 -0700 (PDT) X-Google-Smtp-Source: APiQypJfIGseQnGKAOJK5SVfEY+p0tkXeNVWCMukIaH2DbKzr6qYL4vlEF4pmkkDABt1559kG5XC X-Received: by 2002:a17:906:1f16:: with SMTP id w22mr8077078ejj.327.1588778725071; Wed, 06 May 2020 08:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588778725; cv=none; d=google.com; s=arc-20160816; b=frmvdmI3WVOXNUnC6JUuzWL+ymwTCiMS2t18u/3BPne8zKMWNxVosduSbQmDRHnmd8 wkTDC0oZvjr/JR231UESH6dww8qJumgh4D9GLgEXW2AgbbteTtPE4Yvsui9ktPSd6j84 Ok9L0lb9HZmQw1PqSAEifEzYkrUwoQK/dm9vl2SowxZzvy/8iLE2wUX5RAeTmLTE0NaS tUrKS/ZfLV4QJHWl2j0d68fKWvjp7SWpBa2tSO3Q+UMXh16LJ5iVwc29JVT29Zx53wvw bj/ZBaFOPIoyXCX+RybEY10rDyTwIxI3mFqMpQ/JF6QslQG9cHrCFo9RcFeTbS355Ut0 hG6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UTLapDh6d6sa8JwxWOzYsk+xzBhP38ZyiktZuaXRCHI=; b=C0tkNhsz5TemysRX3kPhA+uSA2ChkTQYOPYufR2ENYVAZ88rlpEtLWUGL2r72fbLUH mMQlLrs9tZdKvY/vacggnYbJ2AxL2AuEXv2IgiXIaTDuuzlbOM4WSf78TRsdWRKn7lQ8 s2Yx6zpYwxJtbQfk4UFsZVKISfPLgVGmNuNj5jHMhvq4GHGlxGbsR54KBFhsyV0VIYWs cCWIjIa3Dxgdps8v2K9eS2Wt5H4inqWdn20Nyd76ayMWwwI0ayA1NHnbQU5hkigPFs1k W1KVBoZVq6P/xk/bVgtavjNLAyMoC97nLUMEVD6WBhrtO/YXL5I3zMUaLFAV8WkjySLe 7ZFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U4pPQvxD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si1392352ejd.302.2020.05.06.08.25.01; Wed, 06 May 2020 08:25:25 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=U4pPQvxD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729573AbgEFPWc (ORCPT + 99 others); Wed, 6 May 2020 11:22:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729408AbgEFPWb (ORCPT ); Wed, 6 May 2020 11:22:31 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B0BC061A0F; Wed, 6 May 2020 08:22:31 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id b188so2300896qkd.9; Wed, 06 May 2020 08:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UTLapDh6d6sa8JwxWOzYsk+xzBhP38ZyiktZuaXRCHI=; b=U4pPQvxDSFslfW9caqLL2iEZJPKAkK07gBRE9swSmx0eoxQPVz7uvid/DnJKkfomyj Qku3qbx38HEbSOfJ/7i1rK5VqUxEEibBDynvO2JtYd8jsPBuOJSqRmf9xKjBERGYKZ/c GwVO3uJ4W5YsQBhphnG0UlxOfdAiZY7MMHh26coLua4rQMY57/bVZgjbvxIjci01AlO0 ewa6+hKVqoH/lycs4MtAmlJ7rV8I6a8g+DuNUjC4k+8dyl5ql2VwKPagDk4SP6AXwoEm 8Z9eD0tLqSjlyEQl7gwggn3e8qjA6oVWT0Y0XI689Qu2uoxVdNMYqB78Auf/W78dQsFR AQDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UTLapDh6d6sa8JwxWOzYsk+xzBhP38ZyiktZuaXRCHI=; b=rgzrYk9Scp4Td9oizt3XIr0dLm0dndAzaMwO7+HPSEAOkfokZTrxmEHtFHhqV1qW3x RaHTI3CAr3/hmcZg4bQg/1BswXK+h31iUQJUS5MUsMefCDjlap1HqQDYMWLFuGIEsmoY WCJgloHBvKdgaw5NQKfylC3opLEu5QYNsUpdbCm2N8eNVEhhgpQcsjocL017bLSHt60L 1fqNsCDyVyekVbmcUGxxrIO+mW5ENDRbs+Xl0dCyOyupmAiNaO+QZTH5v92UkbMwYXf2 OnmkmOvRmCWqkHe6pwPBmyveEi63AXs96JAhwDPJKt5fIwIMEkaQm9ZIVlBV5HTEUwo8 mM6Q== X-Gm-Message-State: AGi0PuZ4EFC6XPHYdtoECMzHfiwXWv8DscfSp8CXaETUJpT1cRs5/7kc fIlmy7IXpr3D2kp3L3t/fqroCjx9UIORBVAbjVA= X-Received: by 2002:a37:a7d6:: with SMTP id q205mr6564216qke.85.1588778550313; Wed, 06 May 2020 08:22:30 -0700 (PDT) MIME-Version: 1.0 References: <20200506054920.109738-1-eizan@chromium.org> <20200506154832.v2.2.If340fa06d86053aaea25841b36741fe69c3126dd@changeid> In-Reply-To: <20200506154832.v2.2.If340fa06d86053aaea25841b36741fe69c3126dd@changeid> From: Enric Balletbo Serra Date: Wed, 6 May 2020 17:22:19 +0200 Message-ID: Subject: Re: [PATCH v2 2/5] [media] mtk-mdp: handle vb2_dma_contig_set_max_seg_size errors during probe To: Eizan Miyamoto Cc: LKML , Andrew-CT Chen , Minghsiu Tsai , Houlong Wei , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Mauro Carvalho Chehab , Linux ARM , linux-media@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eizan, Thank you for your patch. Missatge de Eizan Miyamoto del dia dc., 6 de maig 2020 a les 7:51: > > This is a cleanup to better handle errors during MDP probe. > > Signed-off-by: eizan@chromium.org As I commented on the first patch you should drop the above line. > Signed-off-by: Eizan Miyamoto Other than that: Reviewed-by: Enric Balletbo i Serra > --- > > Changes in v1: > - remove unnecessary error handling labels in favor of err_m2m_register > > drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c b/drivers/media/platform/mtk-mdp/mtk_mdp_core.c > index aeaed2cf4458..9b24b8d46eb7 100644 > --- a/drivers/media/platform/mtk-mdp/mtk_mdp_core.c > +++ b/drivers/media/platform/mtk-mdp/mtk_mdp_core.c > @@ -193,7 +193,11 @@ static int mtk_mdp_probe(struct platform_device *pdev) > > platform_set_drvdata(pdev, mdp); > > - vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32)); > + ret = vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32)); > + if (ret) { > + dev_err(&pdev->dev, "Failed to set vb2 dma mag seg size\n"); > + goto err_m2m_register; > + } > > pm_runtime_enable(dev); > dev_dbg(dev, "mdp-%d registered successfully\n", mdp->id); > -- > 2.26.2.526.g744177e7f7-goog > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek