Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp36908imm; Tue, 17 Jul 2018 20:10:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcTioflNxbwDj9v6r/ugQDB1OLrBnB6kKFQpUmCjJlmNY6TfWfRriAiCp0WrspFj2wZqD1l X-Received: by 2002:a17:902:381:: with SMTP id d1-v6mr4120466pld.309.1531883451526; Tue, 17 Jul 2018 20:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531883451; cv=none; d=google.com; s=arc-20160816; b=IykpWvfhoyOKcyf5ULwXPzMgTVw1YACq0wfYIdicmFgtUEYnZc/c4w0D6nF3bus4Aj OKQSLqCfbPDxYzfnZFiKu6hb+0AZArRmslRrAEgv9qz4LQvQfsLN7DYgbm77fKCLdA19 G+LsxM6w+XbmRSk5Ovk59ZnCAcGfauPvENId9Wj0dkkN6LF5m+fk22O3XA9VZMf9tmH2 lhMhRuNUNh4gfXx15ge+czvstzCWm2Bd0RwaWeVLVmYtvi1DWLrf7vHV2nued0HaBBGL xMDsgLbs+xnfDMoAJl7b+TBoEP1Xv7/ygPSGs5YogFk1cAUcyp9jc5mrfL9q6wtr9ISh oUnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=W4DAR7Ao/jqKmayFKJ/o7UJJZicfygYAegTK+JCdM/M=; b=MRezOKJ69b61eYZSEwt/jVI6KM2YIj/QZy1IZqvxi5ZAUpQ+64ybIS09xCuYfGR0hp Jts5opo6FsKfsia+FateaPbrQkooZsHtE0fm44XOtc0paNH6/0AX/lZ+5NH/M+eYeNof 0MRG9WWdRKmEMU53A31/h1UczEeixV2jiZ4hA9VpwkSwqDZvW9NMlwNmSCE2NY12IrqA EpxdWVDaw8RejOFco2nOmAtriWfoa1ZRMBhW3YEIMKfD4YTf1SprIEX7Oo7Uygog+0XI YNpiK9c4dHK+75gYJJSf2skvlQle2d4uHJqofJDJhaSeVg4vEsEZFa0avWd9elgPLks2 PfCQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14-v6si2395839pgk.412.2018.07.17.20.10.36; Tue, 17 Jul 2018 20:10:51 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731470AbeGRDpT (ORCPT + 99 others); Tue, 17 Jul 2018 23:45:19 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:37402 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731225AbeGRDpT (ORCPT ); Tue, 17 Jul 2018 23:45:19 -0400 X-UUID: 9425e4b59815430d9393495179132829-20180718 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2037952199; Wed, 18 Jul 2018 11:04:20 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 18 Jul 2018 11:04:17 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 18 Jul 2018 11:04:17 +0800 Message-ID: <1531883057.8953.87.camel@mtkswgap22> Subject: Re: [resend PATCH v4 5/5] drm: mediatek: Omit warning on probe defers From: Sean Wang To: CC: , , , , , , , , , , , , , , , , , , , , , , Matthias Brugger Date: Wed, 18 Jul 2018 11:04:17 +0800 In-Reply-To: <20180717220328.792-6-matthias.bgg@kernel.org> References: <20180717220328.792-1-matthias.bgg@kernel.org> <20180717220328.792-6-matthias.bgg@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-07-18 at 00:03 +0200, matthias.bgg@kernel.org wrote: > From: Matthias Brugger > > It can happen that the clock drivers wasn't probed before the > ddp driver gets invoked. The driver used to omit a warning > that the driver failed to get the clocks. Omit this error on > the defered probe path. > so if we list drm device as a child device of mmsys we don't need the patch, and that make more sense. > Signed-off-by: Matthias Brugger > Acked-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c > index bafc5c77c4fb..6b399348a2dc 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c > @@ -374,7 +374,8 @@ static int mtk_ddp_probe(struct platform_device *pdev) > > ddp->clk = devm_clk_get(dev, NULL); > if (IS_ERR(ddp->clk)) { > - dev_err(dev, "Failed to get clock\n"); > + if (PTR_ERR(ddp->clk) != -EPROBE_DEFER) > + dev_err(dev, "Failed to get clock\n"); > return PTR_ERR(ddp->clk); > } >