From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8BC67A for ; Tue, 28 Jun 2022 02:22:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDA8EC385A9; Tue, 28 Jun 2022 02:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656382947; bh=E1KZbsvZDhKevxONtzdxRu8TU+GH1dIUzBdc48HTQ84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHBEcyG30ApwViyYY4f+uBncTFJXSrK+2lA05TcuEFLhi2VC9BxXY+fWQhsftft/H SbmTnXbatD502cPzAVQYf17NdYKLYcALZJ6NcWjI492uU41vQtzkexa5zMvWQptZh+ In3JiNOmcY9ZvepuG2YSpAij5YMZSmuvqImRxw9svY4CrSmZY/gE9e1t3QL9QwoAG5 4T6iGltSE+5zF2o6a+aPD9ItyrL9wBZdxCao1AFEMzLdfosC275HTdoebInYYYYTss gyCHemGzRPgckxTDgb8leFegASBFRL4IKKPzRp4CWiYsXDyJ5KmAVuh+X4dkk4mKoK nxilD+B3VcThw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Saud Farooqui , Maxime Ripard , Sasha Levin , mripard@kernel.org, wens@csie.org, airlied@linux.ie, daniel@ffwll.ch, jernej.skrabec@gmail.com, samuel@sholland.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH AUTOSEL 5.15 36/41] drm/sun4i: Return if frontend is not present Date: Mon, 27 Jun 2022 22:20:55 -0400 Message-Id: <20220628022100.595243-36-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220628022100.595243-1-sashal@kernel.org> References: <20220628022100.595243-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Saud Farooqui [ Upstream commit 85016f66af8506cb601fd4f4fde23ed327a266be ] Added return statement in sun4i_layer_format_mod_supported() in case frontend is not present. Signed-off-by: Saud Farooqui Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/PA4P189MB1421E93EF5F8E8E00E71B7878BB29@PA4P189MB1421.EURP189.PROD.OUTLOOK.COM Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun4i_layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 929e95f86b5b..2036574e2cb0 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -120,7 +120,7 @@ static bool sun4i_layer_format_mod_supported(struct drm_plane *plane, struct sun4i_layer *layer = plane_to_sun4i_layer(plane); if (IS_ERR_OR_NULL(layer->backend->frontend)) - sun4i_backend_format_is_supported(format, modifier); + return sun4i_backend_format_is_supported(format, modifier); return sun4i_backend_format_is_supported(format, modifier) || sun4i_frontend_format_is_supported(format, modifier); -- 2.35.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6EB2CC433EF for ; Tue, 28 Jun 2022 02:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3R5WY7FylB6d1I+4jnMLwB9ZqgLj2wVyXJApSPImAzU=; b=s+aw9scnk38LTH 2RS7MIq2VcMUseF3wYaYqmVOC5QaTUqHNCyl2iQDFWYGuDm4aBT7B095PA6dl8g+FLDi7z0uvYXjU cfzEFAhr12+Suj+65WxGd0uE+lEiP2DsOfnfGtRYd4Q72ey2jjakQVV7D8Wz+sNHzIgbybIWKm5PM OGqetkce6yPJ6uMQqIbsJeomqQmmClw9oo9QbQ5XHlr997QlWENUtQq2R+6BrN7pun+rAlUrMIcMG cibEUdHG2fV/6NNdj6xShK2ZLbSXxIv+9HTtCe27JEdfR6ZjkHzxBkagF0OLUO24KYVfMh9Y7cnal ChLRBSsMCR6MoqvnLKkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o60xX-003jfz-0K; Tue, 28 Jun 2022 02:28:11 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o60s0-003gNX-Hd for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2022 02:22:30 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0884761856; Tue, 28 Jun 2022 02:22:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDA8EC385A9; Tue, 28 Jun 2022 02:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656382947; bh=E1KZbsvZDhKevxONtzdxRu8TU+GH1dIUzBdc48HTQ84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHBEcyG30ApwViyYY4f+uBncTFJXSrK+2lA05TcuEFLhi2VC9BxXY+fWQhsftft/H SbmTnXbatD502cPzAVQYf17NdYKLYcALZJ6NcWjI492uU41vQtzkexa5zMvWQptZh+ In3JiNOmcY9ZvepuG2YSpAij5YMZSmuvqImRxw9svY4CrSmZY/gE9e1t3QL9QwoAG5 4T6iGltSE+5zF2o6a+aPD9ItyrL9wBZdxCao1AFEMzLdfosC275HTdoebInYYYYTss gyCHemGzRPgckxTDgb8leFegASBFRL4IKKPzRp4CWiYsXDyJ5KmAVuh+X4dkk4mKoK nxilD+B3VcThw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Saud Farooqui , Maxime Ripard , Sasha Levin , mripard@kernel.org, wens@csie.org, airlied@linux.ie, daniel@ffwll.ch, jernej.skrabec@gmail.com, samuel@sholland.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH AUTOSEL 5.15 36/41] drm/sun4i: Return if frontend is not present Date: Mon, 27 Jun 2022 22:20:55 -0400 Message-Id: <20220628022100.595243-36-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220628022100.595243-1-sashal@kernel.org> References: <20220628022100.595243-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220627_192228_667014_B96CC858 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Saud Farooqui [ Upstream commit 85016f66af8506cb601fd4f4fde23ed327a266be ] Added return statement in sun4i_layer_format_mod_supported() in case frontend is not present. Signed-off-by: Saud Farooqui Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/PA4P189MB1421E93EF5F8E8E00E71B7878BB29@PA4P189MB1421.EURP189.PROD.OUTLOOK.COM Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun4i_layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 929e95f86b5b..2036574e2cb0 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -120,7 +120,7 @@ static bool sun4i_layer_format_mod_supported(struct drm_plane *plane, struct sun4i_layer *layer = plane_to_sun4i_layer(plane); if (IS_ERR_OR_NULL(layer->backend->frontend)) - sun4i_backend_format_is_supported(format, modifier); + return sun4i_backend_format_is_supported(format, modifier); return sun4i_backend_format_is_supported(format, modifier) || sun4i_frontend_format_is_supported(format, modifier); -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68357C43334 for ; Tue, 28 Jun 2022 02:22:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB76710F080; Tue, 28 Jun 2022 02:22:30 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9DA6F10F080 for ; Tue, 28 Jun 2022 02:22:28 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0884761856; Tue, 28 Jun 2022 02:22:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDA8EC385A9; Tue, 28 Jun 2022 02:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656382947; bh=E1KZbsvZDhKevxONtzdxRu8TU+GH1dIUzBdc48HTQ84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHBEcyG30ApwViyYY4f+uBncTFJXSrK+2lA05TcuEFLhi2VC9BxXY+fWQhsftft/H SbmTnXbatD502cPzAVQYf17NdYKLYcALZJ6NcWjI492uU41vQtzkexa5zMvWQptZh+ In3JiNOmcY9ZvepuG2YSpAij5YMZSmuvqImRxw9svY4CrSmZY/gE9e1t3QL9QwoAG5 4T6iGltSE+5zF2o6a+aPD9ItyrL9wBZdxCao1AFEMzLdfosC275HTdoebInYYYYTss gyCHemGzRPgckxTDgb8leFegASBFRL4IKKPzRp4CWiYsXDyJ5KmAVuh+X4dkk4mKoK nxilD+B3VcThw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 36/41] drm/sun4i: Return if frontend is not present Date: Mon, 27 Jun 2022 22:20:55 -0400 Message-Id: <20220628022100.595243-36-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220628022100.595243-1-sashal@kernel.org> References: <20220628022100.595243-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , jernej.skrabec@gmail.com, samuel@sholland.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, wens@csie.org, Maxime Ripard , Saud Farooqui , linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Saud Farooqui [ Upstream commit 85016f66af8506cb601fd4f4fde23ed327a266be ] Added return statement in sun4i_layer_format_mod_supported() in case frontend is not present. Signed-off-by: Saud Farooqui Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/PA4P189MB1421E93EF5F8E8E00E71B7878BB29@PA4P189MB1421.EURP189.PROD.OUTLOOK.COM Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun4i_layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 929e95f86b5b..2036574e2cb0 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -120,7 +120,7 @@ static bool sun4i_layer_format_mod_supported(struct drm_plane *plane, struct sun4i_layer *layer = plane_to_sun4i_layer(plane); if (IS_ERR_OR_NULL(layer->backend->frontend)) - sun4i_backend_format_is_supported(format, modifier); + return sun4i_backend_format_is_supported(format, modifier); return sun4i_backend_format_is_supported(format, modifier) || sun4i_frontend_format_is_supported(format, modifier); -- 2.35.1