Re: [PATCH] omapfb: dss: Handle return error in dss_init_ports.
From: Arvind Yadav <hidden>
Date: 2017-02-09 10:04:03
Also in:
linux-omap, lkml
Hi, Yes, We will have to handle cleanup of partially initialized ports. As per your suggestion, I have done the changes. Thanks -Arvind On Wednesday 08 February 2017 07:51 PM, Bartlomiej Zolnierkiewicz wrote:
On Wednesday, February 08, 2017 11:25:47 AM Bartlomiej Zolnierkiewicz wrote:quoted
Hi, On Tuesday, February 07, 2017 05:41:37 PM Arvind Yadav wrote:quoted
Hi, In dss_init_ports, There is no need to add dss_uninit_ports before returning. Because it's already take care in dss_bind. dss_bind is handling dss_uninit_ports in error path.It doesn't handle cleanup of partially initialized ports,BTW by "partially initialized ports" here I mean cases like i.e. dpi port fully initialized and sdi one not initializedquoted
please look at the code: ... r = dss_init_ports(pdev); if (r) goto err_init_ports; ... err_runtime_get: pm_runtime_disable(&pdev->dev); dss_uninit_ports(pdev); err_init_ports: if (dss.video1_pll) dss_video_pll_uninit(dss.video1_pll); ... dss_uninit_ports() is not called on partially initializeddittoquoted
ports (when dss_init_ports() returns an error we go straight into err_init_ports label and skip dss_uninit_ports())quoted
-Arvind On Monday 06 February 2017 08:58 PM, Bartlomiej Zolnierkiewicz wrote:quoted
dpi_uninit_port() & sdi_uninit_port() skip not fully initialized portBest regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics