Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2809474pxb; Sun, 15 Nov 2020 19:08:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAUsVNBNbg2XFpH5OqhFRYBKb8cjkzWWgvRrDXYHvM30I29pErfeywzXmcaMb/EzpyF84C X-Received: by 2002:a17:906:5e45:: with SMTP id b5mr12702320eju.46.1605496080373; Sun, 15 Nov 2020 19:08:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605496080; cv=none; d=google.com; s=arc-20160816; b=MCsTPco8OWYhD88M2HU05g8P9DiEtdPeEjBczlQpckdJvlmh++p7E5KLAqG370D3hg R2ZTISXSJjxPsuRhMDQ7nmUIQc3pLMsa7zMiHZVnhi16TB8EV0B7KuaQ/pCG642eWR2y duyitIsDibieCKtZm0x1up7WU29DCSsqBE3e7w8KHvfgtMFIGSAEHnyoTVT0SaKbRBGY yme8mq+8F4vli7eM5jVxuqgwjl3cCVOS0gDNIF8hzINM+E2PQz8mbiqcdCp6lZOPAv1q SSZPphOsJag8xuVXIJCXAZCAPmb2yKbfL3gkcUFfy/RCphfgYxIE7XeMXk2PY1xPnEIU nGlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=cKiCkNN3OCuKtUcLYic4igji7CGKYazH7sX6dGGEFJY=; b=vUE6NGRohxshjTewS1TXUaFGo9sAGoS5TmJyIxKDeGmShkj5SJEHbL2HdJu2LwBecQ iHU4FVt/L+ivsbojcpo7eeogJvGyM9OyH4N8YoBBrFNQFP16pfhDYyuSBiyXWyIuXuiu 9hyWlMnmFrndWFC6LhXkbjxkjoYolv3ZU2gZoX0tpiF3nNMlRaejGdaQjTQK5+/EeIHl IrSLn6P3ezRimtpmQek0R4H/69//L4dPpon8dRr2r5FE7invxvpc1+eg/oDWQJPdFt1+ mlbxSUxc0GTeaqaI98H4JJa1EinJyloO03/pT6N0rE9Ag37DgtsFYOB0n1cd7Kf5Ebb+ Sn3w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si10906388edr.253.2020.11.15.19.07.37; Sun, 15 Nov 2020 19:08:00 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728332AbgKPBJZ (ORCPT + 99 others); Sun, 15 Nov 2020 20:09:25 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:7501 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727524AbgKPBJZ (ORCPT ); Sun, 15 Nov 2020 20:09:25 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CZ9vb0T4Qzhb83; Mon, 16 Nov 2020 09:09:15 +0800 (CST) Received: from [10.174.177.160] (10.174.177.160) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 09:09:15 +0800 Subject: Re: [PATCH] drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind() To: =?UTF-8?Q?Jernej_=c5=a0krabec?= , , CC: , , , References: <1605186891-47282-1-git-send-email-wangxiongfeng2@huawei.com> <6119042.uhm7frSX9h@jernej-laptop> From: Xiongfeng Wang Message-ID: Date: Mon, 16 Nov 2020 09:09:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <6119042.uhm7frSX9h@jernej-laptop> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.160] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On 2020/11/14 2:01, Jernej Škrabec wrote: > Hi! > > Thanks for the patch. > > Dne četrtek, 12. november 2020 ob 14:14:51 CET je Xiongfeng Wang napisal(a): >> Fix to return a negative error code from the error handling case instead >> of 0 in function sun8i_dw_hdmi_bind(). >> >> Fixes: b7c7436a5ff0 ("drm/sun4i: Implement A83T HDMI driver") >> Reported-by: Hulk Robot >> Signed-off-by: Xiongfeng Wang >> --- >> drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c >> b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c index d4c0804..f010fe8 100644 >> --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c >> +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c >> @@ -208,6 +208,7 @@ static int sun8i_dw_hdmi_bind(struct device *dev, struct >> device *master, phy_node = of_parse_phandle(dev->of_node, "phys", 0); >> if (!phy_node) { >> dev_err(dev, "Can't found PHY phandle\n"); >> + ret = -ENODEV; > > That should be EINVAL because DT node doesn't have mandatory property. > > With that fixed, you can add: > Reviewed-by: Jernej Skrabec Thanks for your review! I will fix it in the next version. Thanks, Xiongfeng > > Best regards, > Jernej > >> goto err_disable_clk_tmds; >> } > > > > > . >