Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2929254rwb; Mon, 15 Aug 2022 14:14:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR49W3vbO94j1HzbFBoYnzXuqMvc5pXT1yn5LZJ0YcuWhQ9hhW5i3qOHxLHssPTA+TjIc8dK X-Received: by 2002:a17:902:8c92:b0:170:aff6:e3a6 with SMTP id t18-20020a1709028c9200b00170aff6e3a6mr18932197plo.164.1660598097604; Mon, 15 Aug 2022 14:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598097; cv=none; d=google.com; s=arc-20160816; b=i0RoFjxIlbAlHGpA4RK/6h7Lf9UtlEfpkmS4HlO4uQP+iiLwi9mOiO5oMaKXY1TV2A jDz6TzG5oP/xZm+HOI7K1ne/pvBIDt8dW+M7FkZRfiSy7qzDNMu51Fgk5kkpPmwqoNiN MNFrqVEHXz5tbU7tpXDDANdAp6A/n3dQYTnhe3DevEXfc6IvJZ4i3+8YSkHsAbWkfgk3 KJuzGYTGWNgnWaePVRI8bnOEDd329nnXBSYhHTgfJRXRgAjHxACFL/teurxrxzaqW823 lumpminAsl3BE6L18qsX3sSHm19dKRuIbM0oIBNBh1CQw5DYMZVQD8u7peFisMWjpxwZ yA2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=r7Fu/tXO7um/4bAKtcAUl0LrIUqH+/UofuT3RNwHfsU=; b=MLXQ7Ihg6jJ4s/AKo2WZvVOtbP3gqkbtjNkLzNnx0cE1NEAJuyzWym/Yqsr0qjqfar QvGOZUZvtxsqSd8dSxI3sRmRPcj0ZX+TEwOeBULPWNKuNJtpxIjeuzqKQkJyydT+QZur oxq3gORQTsO+0n6bK7bjfevena1jeBpVI4nCFhHE3PZ6fQiIWg/LPHc37jy4PUoVGVlb wZbiFmdsUW67Uoe8V1vV2gp7Q1N9R4wSjGBnrSya40tn/EGKIIC1lePxu663J/KUPeWj DZe+BhEWYpLgAhvLFAwzETpFqjFn0EG7TKL2DFZeDGNgVFoEFh6OPYara5D0zukSsrSi w2Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="v/+hV1yo"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v22-20020a056a00149600b0052e33f30ca2si12173386pfu.208.2022.08.15.14.14.46; Mon, 15 Aug 2022 14:14:57 -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=@linuxfoundation.org header.s=korg header.b="v/+hV1yo"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244414AbiHOUyT (ORCPT + 99 others); Mon, 15 Aug 2022 16:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344371AbiHOUwn (ORCPT ); Mon, 15 Aug 2022 16:52:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 953D49FAB1; Mon, 15 Aug 2022 12:10:34 -0700 (PDT) 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 2E5C160EDD; Mon, 15 Aug 2022 19:10:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 211BAC433D6; Mon, 15 Aug 2022 19:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590632; bh=qj9zv4Asp2qcYhRvdIM8lQqz0pcfMVMfTnPtvOnYLNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v/+hV1yoOLPpi424f4RLY/uyCAtuApiFQy1lkQsstt35koLFhAhgwPbitJJs2hx6s ge9qtCaktFiQYuQ3Wg+TCXlsqItDTGBWz/1FZEdwrtv4fprRQivWjeeLBw7QeJaxje qzUHXLxSnxbtrDou/foCwwC9YDuPTBd8Jf89/b6U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jitao Shi , Xinlei Lee , Rex-BC Chen , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.18 0321/1095] drm/mediatek: Modify dsi funcs to atomic operations Date: Mon, 15 Aug 2022 19:55:20 +0200 Message-Id: <20220815180443.077044401@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 From: Xinlei Lee [ Upstream commit 7f6335c6a258edf4d5ff1b904bc033188dc7b48b ] Because .enable & .disable are deprecated. Use .atomic_enable & .atomic_disable instead. Link: https://patchwork.kernel.org/project/linux-mediatek/patch/1653012007-11854-2-git-send-email-xinlei.lee@mediatek.com/ Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee Reviewed-by: Rex-BC Chen Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index ccb0511b9cd5..7a98ae100c06 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -751,14 +751,16 @@ static void mtk_dsi_bridge_mode_set(struct drm_bridge *bridge, drm_display_mode_to_videomode(adjusted, &dsi->vm); } -static void mtk_dsi_bridge_disable(struct drm_bridge *bridge) +static void mtk_dsi_bridge_atomic_disable(struct drm_bridge *bridge, + struct drm_bridge_state *old_bridge_state) { struct mtk_dsi *dsi = bridge_to_dsi(bridge); mtk_output_dsi_disable(dsi); } -static void mtk_dsi_bridge_enable(struct drm_bridge *bridge) +static void mtk_dsi_bridge_atomic_enable(struct drm_bridge *bridge, + struct drm_bridge_state *old_bridge_state) { struct mtk_dsi *dsi = bridge_to_dsi(bridge); @@ -767,8 +769,8 @@ static void mtk_dsi_bridge_enable(struct drm_bridge *bridge) static const struct drm_bridge_funcs mtk_dsi_bridge_funcs = { .attach = mtk_dsi_bridge_attach, - .disable = mtk_dsi_bridge_disable, - .enable = mtk_dsi_bridge_enable, + .atomic_disable = mtk_dsi_bridge_atomic_disable, + .atomic_enable = mtk_dsi_bridge_atomic_enable, .mode_set = mtk_dsi_bridge_mode_set, }; -- 2.35.1