Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4570087iog; Wed, 22 Jun 2022 01:14:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1svFblRzmY2vrp+NmuUjgCsRka9AInOVFmizR9ROuFCP/L17SmMKY+OGtD6Vip1e/22Tg9V X-Received: by 2002:a17:90b:4382:b0:1ea:f4b6:1e29 with SMTP id in2-20020a17090b438200b001eaf4b61e29mr2471132pjb.159.1655885651665; Wed, 22 Jun 2022 01:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655885651; cv=none; d=google.com; s=arc-20160816; b=hKsP5xhVZnjxfdpgrAwzuR9w1y/xTfXIcaJffNfVPIB6zDObfvj9jexN6C/zTWbjpn FP+E/HMx+kzDN9xwVnAocvwVMZcBdXXefZwcCOQposHxXzF8zOkQzDLbyY/eyNZwYwxG JeaoYcRHlmScydHhxcu+iKgtKl6BtsDLyFFgyPmlU3GiJ8Mxt2ZIGPUHPysMaLHZkBbd P1YU7UPXh3JaFwqR13zsKt+FePqPzy2fGWz0z9+XqwicfCIDzuwkFrmFSIDkvzlF4W0o aD7Cp13pR7iN/5MYEFn2oh/3AOCbAHJOt8odH0PkIT4MYgrUb79dj5kvQnzHD9vPEwOx 4o6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=x1drCMu5dqEeEn5rlOqr732uAMnNtHSW/+Yw52DBQHM=; b=WyXqIaPlDbAoq9lNwbr6l4Ht64L9KyGzDGMkhNxv3nckIcO8gser2a9C0jETlm7LlH THu0Y/JN/saxDThBPKx6RyKAD8P1XDlXEZg4rLhwmzSMJdovHoOpTvYffTpJtMHKG+/v DcEjSnzLn6wbeY2yCOuvcgiVe1mQpIBlWM1q00ixeDJloWD98wJ0E+6TaaYOlU5u9AkH yH1Nl1JZtbl31fYJ4HsbWPH4IwNE2gh9oPMtYXBXvFc8zQjcr4Y/DXiYk7wJLGTapCBD fp4Jd/hqUMbxKyTJ+iOq3Ld2OGdQwKjR8U8oKfTetoc8sYyxV5+lIsnubRE7ySYZvrWW vbmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=pbyDL2YJ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=o3k5NlJc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0040c92019495si16003116pgi.92.2022.06.22.01.13.57; Wed, 22 Jun 2022 01:14:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=pbyDL2YJ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=o3k5NlJc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354157AbiFVH5a (ORCPT + 99 others); Wed, 22 Jun 2022 03:57:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242785AbiFVH53 (ORCPT ); Wed, 22 Jun 2022 03:57:29 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1C5637A13 for ; Wed, 22 Jun 2022 00:57:28 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 33A935C00D8; Wed, 22 Jun 2022 03:57:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 22 Jun 2022 03:57:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1655884648; x=1655971048; bh=x1drCMu5dq EeEn5rlOqr732uAMnNtHSW/+Yw52DBQHM=; b=pbyDL2YJVwqma+q5ZDQLE+Cw4h 8zD5iAzAXCo402V0ukFU1qb9Ad+Mq6U1NBQ8QBQG8T0xBVhdSjE/SLm11/pFzedW tdQjkxxpaiqX6J5s7Xp5nw3l7e/Ln6StT0zo5GCV8V/Y5WY83wMeXNB/+B/JnQ8j kus9OCi7biIq7o/dfMizKS9zAl05EfvrYXEWzT5v4UHo6Qkiy9JdbW/FuwO47rFV wltuOvTmUG6PIfbMNgZ4VmbaaTq6ZfJBd/mlS9D2m8ZV17kQ/LqfN4065LSTRD4g r7q18oGc4qzphbpNoiegbT3WfclFkOvvOPQ0byd2qt/ilExPOvGNJU22hPbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1655884648; x=1655971048; bh=x1drCMu5dqEeEn5rlOqr732uAMnN tHSW/+Yw52DBQHM=; b=o3k5NlJchNCwnv8bCsQZx2/IWFPd3VUiOaFHm4rkuDzW lipDdqr9jRUHzC/nBEM23CZ5SpS36QD2d19H/HlI8Nm3Oj4pNzNTs+ngj1j3R7a8 SNxLCyfueW3ccnrqRAlsZbwuc2ezuArdl46u6HsrTfLNESWXdkKUtpLQXJkOToev KSRUh3eI1Ji+z1wCUn8ahheo6qMusFP2uh7hq2UGOdlxqvfruI7cEWd0MvhrCBAq emGDaBecGN7jv8f89FGDQ3bnf7Eq+pp9uaHl1OkVMmh0nVloX1HdTIbW4xdwbnW9 wmny/fPZcaGGEk4utiITTKpAyJwSZqgj0xLPPdGOWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefgedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepteefffefgfektdefgfeludfgtdejfeejvddttdekteeiffejvdfgheeh fffhvedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Jun 2022 03:57:27 -0400 (EDT) Date: Wed, 22 Jun 2022 09:57:25 +0200 From: Maxime Ripard To: Saud Farooqui Cc: jernej.skrabec@gmail.com, samuel@sholland.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, wens@csie.org, daniel@ffwll.ch Subject: Re: [PATCH v1] drm/sun4i: Return from the function in error condition Message-ID: <20220622075725.y6ws22ielpc4pmxw@houat> References: <20220609142253.7aad4jlaoahqkmy7@houat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dpuceqjgfufrqrxt" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dpuceqjgfufrqrxt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Jun 21, 2022 at 09:44:27PM +0500, Saud Farooqui wrote: > Added return statement in sun4i_layer_format_mod_supported() > in case of error. >=20 > Signed-off-by: Saud Farooqui > --- > drivers/gpu/drm/sun4i/sun4i_layer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/= sun4i_layer.c > index 6d43080791a0..85fb9e800ddf 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_layer.c > +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c > @@ -117,7 +117,7 @@ static bool sun4i_layer_format_mod_supported(struct d= rm_plane *plane, > struct sun4i_layer *layer =3D plane_to_sun4i_layer(plane); > =20 > if (IS_ERR_OR_NULL(layer->backend->frontend)) > - sun4i_backend_format_is_supported(format, modifier); > + return sun4i_backend_format_is_supported(format, modifier); While there's a bug, it definitely isn't what your commit message describe. Frontends only available on some SoCs and are thus optional in the driver. If the frontend pointer isn't set, it means that it isn't there and thus we try to figure out the format through the backend that is always there. Maxime --dpuceqjgfufrqrxt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYrLLZQAKCRDj7w1vZxhR xawwAP4u3twxDl6X0vHRjMf8txv6dArTqceH0FbDHlbmVRr+UgEAw7KvX806M1k8 y9t+0imQJJiEN4hGTzwC4nriK80T/AA= =om1g -----END PGP SIGNATURE----- --dpuceqjgfufrqrxt--