Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp385304ybl; Wed, 11 Dec 2019 20:50:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyVv4p6ijas7L5J3niUi5c4RSba65DAAx/7jSJXFpxXEv2XgyksTnQlALpqmJfqIA//AHi/ X-Received: by 2002:a9d:366:: with SMTP id 93mr6110115otv.183.1576126200624; Wed, 11 Dec 2019 20:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576126200; cv=none; d=google.com; s=arc-20160816; b=n64tu3GHKg8b6KXoHfzhjYvKvQjXDEejH+6ewp2o/hpkUKtg7fDhUhRpfT4LYsh0G1 8R1p75GsipQEEGzvLaDXhTug87q5DgQKZA85txWafZeHBLcAi+bN/Pdzhp//TzF4Sv2S 1PpI6KCfcYza8fn8GFqShaaBxisdqI0SUOVcGtSnmW5tBvG1MGGOLJ56OPtG9eZ5jkQh TGIiDAha19GVu7QhSCQbdZ83w5ELLTCqRtYOA4zLF6lfkmsB0Hw4kiexH5aTuKdEnlS5 o7UGBUpcTkOl4WhBcHSdetcoOKOQMtideOxcdnY3mRG7+Emtz4EtlAAGeLN5JKkC3TvN waBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=E+WerAWO7LXcxAkqLk99bj1sr3WlUYbo9Q9kI8fEORY=; b=goCErgTpJdvlithzGT7/bOX1/pRimQQilGcx0z6vZwKSwVuaZAV6lhL61iL2Mu4SjM LP+xkl3szjTh2eHMl6MX2dR29lJpRYscrW+LUYZ1dDd2vYut8b/5/x0BXgDNdLnbTYvw 4nYG/yxSaDbxp33xNmf9PdEeYyLFnp0HWH2sbHyL/QtSpWPbW2awt4fFNTRdEV5+NWBB A9XJ29ksZQn+t++ZHZp0a7bpSvClUVlopZfFWb/UxzK0ufkKVveeUaR6OVUUPNzxHyiy DhcRbxNjFm7wsJUDDTnvYbqMg7a+fwpUK/Y7/8yg4NFQ4NXgO+RghUqWX2hVYIfjq5mj xIDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IPUJTxwI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si2277207otd.292.2019.12.11.20.49.46; Wed, 11 Dec 2019 20:50:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IPUJTxwI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727858AbfLLEtM (ORCPT + 99 others); Wed, 11 Dec 2019 23:49:12 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:57056 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726689AbfLLEtM (ORCPT ); Wed, 11 Dec 2019 23:49:12 -0500 X-UUID: d8f23ae9e30540f2b273bd87852f6fe0-20191212 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=E+WerAWO7LXcxAkqLk99bj1sr3WlUYbo9Q9kI8fEORY=; b=IPUJTxwI2NNddllHMyhFySNdSF1bZRmbJz/aH5sxtX9jyyRd44Mj3teUXlS+8/PFMrAQBZBGCiDn6VwPsrrwrfeBOJvTgGP0CNsZitfo3H/5tv+JaMuBb92Nzj0Y7EdMg/JCv0NUb6qs6MK/ev3OiB2qRjTbpHQT/VP7lxDZObU=; X-UUID: d8f23ae9e30540f2b273bd87852f6fe0-20191212 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1797774077; Thu, 12 Dec 2019 12:49:05 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 12:48:44 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 12:48:54 +0800 Message-ID: <1576126139.29693.2.camel@mtksdaap41> Subject: Re: [PATCH] drm/mediatek: Check return value of mtk_drm_ddp_comp_for_plane. From: CK Hu To: Pi-Hsun Shih CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , Sean Paul , "open list:DRM DRIVERS FOR MEDIATEK" , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , open list Date: Thu, 12 Dec 2019 12:48:59 +0800 In-Reply-To: <1574409521.12825.0.camel@mtksdaap41> References: <20191118061806.52781-1-pihsun@chromium.org> <1574409521.12825.0.camel@mtksdaap41> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIFBpLUhzdW46DQoNCk9uIEZyaSwgMjAxOS0xMS0yMiBhdCAxNTo1OCArMDgwMCwgQ0s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