Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4294322ybc; Fri, 22 Nov 2019 00:04:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyQ5/Qxm1fMTI8xG4ZODfh87SoWIkRt9ZQ+nw1XNQabPaqjTN6HoKY87FNWzejb1FpBLqri X-Received: by 2002:a17:906:48b:: with SMTP id f11mr20509380eja.225.1574409860847; Fri, 22 Nov 2019 00:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574409860; cv=none; d=google.com; s=arc-20160816; b=KYM/C7aYrK66JZQlD7mhsffoKpcVDkStFjDLVWUFyz8y+DnM6EhYAycJcYO+qu4gWG 7lcX/kSrPm2qq3eqLDHTnSpMvYNWeaU5LtfMXPrf/fKSpQ6rowFJwOHh84BvELEA1Ybn Ulkz9+Yex/EBDrCdOdFiWRiYtVK38RtRhfQ+TGdmcfORkvDlsmNwpWROS3LqS36K1M+b xTVPfd2klkVYsdkc+inXQ7nHmR4Aw3V3+bMBcHb9Wj/83THE50m4wIcbBdRQguzN5q5y 5niBvjnj6u7opjow1OfGy2E1KkEuw6Su2SAU/e9MkMu0DpfPZFOBw9xk2yA0l8jkGdoe Kyow== 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=biiWaCmeF2zekF9ph9b3ZsgnAyXW/XZddTvqnNdWtZI=; b=sDd8StkJJAMBl5A/o5si0RMNapSZp89YkjqtyHLzXfnzWrw7RGTDhW/9asFBz7hH7F pSwwq/1QYaA/UDlYm1nInGpjZBfs3RQYKQvixfVoKSrDByBTQ6G6wtehyE5bjru0RiKY ybBODRycMYxFXIkqCWqvjh4Q5l9mg1UadJgGXhp6jqBtzqBOfc9k9zH4VbbW8Z26R2U2 0POBFg9n14q0D6WalINI/H3zZTClBo7UN4sIw6QogO284QIoxARoy53Y8fQWIXGpnXuq 9er7eVlimb7qsU2kHoYXx2vi0O3ElbWrbqyxYnxz/3ZRR7+oezjT8dnR5JHv9RjOAMu1 zuug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UBj+tYl7; 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 c1si4113069eds.170.2019.11.22.00.03.56; Fri, 22 Nov 2019 00:04:20 -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=UBj+tYl7; 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 S1726775AbfKVH6s (ORCPT + 99 others); Fri, 22 Nov 2019 02:58:48 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:31415 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726248AbfKVH6r (ORCPT ); Fri, 22 Nov 2019 02:58:47 -0500 X-UUID: 995ad331f2ab4f46a3820f39bf312b57-20191122 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=biiWaCmeF2zekF9ph9b3ZsgnAyXW/XZddTvqnNdWtZI=; b=UBj+tYl7o9PnBzb8JAMkkcAghNv1ZKFDCo9BnYhfPiCD+tgcKL5SWitrbPEE07xrbjCFBmvsH/G+upGp27sMPLuxWXBotj+fV6v4HMdYPyl9nkdv9QeTBV5eIvEwp+FdjeN7tZTgqjoPB+f2ewwuSZU/YumK1cR4RBquWG74viE=; X-UUID: 995ad331f2ab4f46a3820f39bf312b57-20191122 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 62595625; Fri, 22 Nov 2019 15:58:42 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 22 Nov 2019 15:59:03 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 22 Nov 2019 15:59:04 +0800 Message-ID: <1574409521.12825.0.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: Fri, 22 Nov 2019 15:58:41 +0800 In-Reply-To: <20191118061806.52781-1-pihsun@chromium.org> References: <20191118061806.52781-1-pihsun@chromium.org> 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 SGksIFBpLUhzdW46DQoNCk9uIE1vbiwgMjAxOS0xMS0xOCBhdCAxNDoxOCArMDgwMCwgUGktSHN1 biBTaGloIHdyb3RlOg0KPiBU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