Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2164977yba; Mon, 6 May 2019 00:27:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0jDSmPFMr0KIooSXJa1rCZORlB7doYjxhFoJv6oI4TdVPMmxm2KOkuDLXJskTOGT4ymEE X-Received: by 2002:a17:902:b210:: with SMTP id t16mr30399156plr.84.1557127674839; Mon, 06 May 2019 00:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557127674; cv=none; d=google.com; s=arc-20160816; b=muH0xsk3RA5iMgv6v2rqqKvkwDFHDN1jf0kbEu5KwrOhV49sBnyR8DjBZVlrrHXLHy LTHfaOvTb3RfhBmcvakQG9LSCG3Ld1GUWTLNB63Vs/YSJZtKEaEIU8wXyEzWhra/CobK NMQgqWgAZ/LoyWollu9U4ETPyDDLfNAGKEpn0j2BF95JHbBVdMP2IfzJKYOnG7Fk3q+m MySeiKu8PKh9gHEzGMXGiX1iNjKD6zJSaZLlypvVi6pfHHn7icneK0/AfRmgkxAZVl6c G6VAUqKr0+z8AKdAiamJzQpdvsQv3uoXdeTaVCsxrITuyelt1nXeeZSH4xljrZzIsYQG NV3g== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WNzn2D4LRFx0zq3ZMJPIJy2EHlJS0W/qRQO2E0djUbU=; b=DKlpFFvHwdv79sM1b/oP+TyPEQhaB1wM7V6Ie6fMA2PBcyAZ/pw40iG+HtvsevKLFY d1NtYyq2BE5VSdBscp4n0p4R9TnJHKfnsKT1Yk1QsRMy7xQJtgDhkjH/ZfohmsAao211 BNL0uZV6rfhip5fu52G53xRZDZyuouCuROY+7ZTSjTSXeZv4w1uiL5DjxrVgUkZDKbYU H3sQJV6Q6w1Ox90PU4ATAcQkx7OSUUfM8ntvcbqbmiJ9rMhfCTys+Tl1powWvundw5UI AF4U8SbbgbrrL+rTs9Ls+9GH2IAAcV3jTtgubU0RyyD56AbXF0S6xecMYhcEhER57KLX 4o2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BNjPq9C+; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si13743338pgb.229.2019.05.06.00.27.39; Mon, 06 May 2019 00:27:54 -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; dkim=pass header.i=@linaro.org header.s=google header.b=BNjPq9C+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726369AbfEFH0D (ORCPT + 99 others); Mon, 6 May 2019 03:26:03 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:35681 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726346AbfEFH0D (ORCPT ); Mon, 6 May 2019 03:26:03 -0400 Received: by mail-qt1-f193.google.com with SMTP id d20so3557157qto.2 for ; Mon, 06 May 2019 00:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WNzn2D4LRFx0zq3ZMJPIJy2EHlJS0W/qRQO2E0djUbU=; b=BNjPq9C+fBd/dv+/34M6FL3Z2Pm8FqkPX6Z0HermdNoQMhO2azmmLW0MQfnj03p0b7 G6hf2mwmU8G01N1ZkBrVVnNTG3r/otxtMeOTBFZyxhj9vjvZCeYarFlh3Z+YyBY0s7Q/ n5Ij8Ly4cHNdL1GIhiFJUJEIk2EyVcRbn5+YyKfmsJgOjDdssNnRASzFPFZlWcaJ1nZL 6qsOPoYcGCuqWRDZU55zWXSw6lOexvFw8+spMo1mmr7iFZQvKXYQdHz2IovIeSjmrZGM B4ttVnpCIIV/hKVyr9iZSiQvZCjroyPAYOk7dvqikc9cLkahrr/tOydJFEwW4Kjn48A2 qiAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WNzn2D4LRFx0zq3ZMJPIJy2EHlJS0W/qRQO2E0djUbU=; b=tClw+cLsgwUelZPTLvwZay1m41W1T+j64VmtwzsiVUcq0Td/eu2YlkmcYsOTbp2TB+ mnjDYAp2+HxHsG8SbIYqd4dOUjFqNcgttq92PFnS+kh0RLkmHS6U/uJy7J7e/LQPkxs5 MYBZ/TvOFvzesmjcmV/SP4U44BQ6+iICO1Rx6GNeKXOnUPuYQutA1/8mAaLgodKmxNrL W1nLpA1ZBCrS0KfufwuH9kstogLbpyUKQz/RU03qfBM4edpzaF3X5PT7n6C6sLzl3Hal zPInELe84j+ZuRCxGZ83GYbw0EFbwzvzH+FjcJ/D4OEyhpQgE1h/zE1+N08ZTce2xD3K OzGA== X-Gm-Message-State: APjAAAUyvqIJI2s7nq0gIzcQWZYcJgcpo0+YiPwBI9IbdoN+dXcgdBYH /KlZQeQ4wJFEPtP8lpftYIASbm1YjgewhZMPWDd6pA== X-Received: by 2002:aed:3fad:: with SMTP id s42mr20026506qth.335.1557127562156; Mon, 06 May 2019 00:26:02 -0700 (PDT) MIME-Version: 1.0 References: <1556114601-30936-1-git-send-email-fabien.dessenne@st.com> <1556114601-30936-3-git-send-email-fabien.dessenne@st.com> <03f53dcc-816f-c017-f420-5eacc1fa486d@st.com> In-Reply-To: <03f53dcc-816f-c017-f420-5eacc1fa486d@st.com> From: Benjamin Gaignard Date: Mon, 6 May 2019 09:25:51 +0200 Message-ID: Subject: Re: [PATCH 2/2] drm/stm: ltdc: return appropriate error code during probe To: Philippe CORNU Cc: Fabien DESSENNE , Yannick FERTRE , Vincent ABRIOU , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre TORGUE , "dri-devel@lists.freedesktop.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le ven. 26 avr. 2019 =C3=A0 14:30, Philippe CORNU a= =C3=A9crit : > > Hi Fabien, > and thank you for your patch, > > Acked-by: Philippe Cornu > > Philippe :-) > > On 4/24/19 4:03 PM, Fabien Dessenne wrote: > > During probe, return the "clk_get" error value instead of -ENODEV. > > > > Signed-off-by: Fabien Dessenne Applied on drm-misc-next. Thanks, Benjamin > > --- > > drivers/gpu/drm/stm/ltdc.c | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > > index 521ba83..97912e2 100644 > > --- a/drivers/gpu/drm/stm/ltdc.c > > +++ b/drivers/gpu/drm/stm/ltdc.c > > @@ -1145,8 +1145,9 @@ int ltdc_load(struct drm_device *ddev) > > > > ldev->pixel_clk =3D devm_clk_get(dev, "lcd"); > > if (IS_ERR(ldev->pixel_clk)) { > > - DRM_ERROR("Unable to get lcd clock\n"); > > - return -ENODEV; > > + if (PTR_ERR(ldev->pixel_clk) !=3D -EPROBE_DEFER) > > + DRM_ERROR("Unable to get lcd clock\n"); > > + return PTR_ERR(ldev->pixel_clk); > > } > > > > if (clk_prepare_enable(ldev->pixel_clk)) { > >