Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2814410rwb; Mon, 15 Aug 2022 11:53:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR4rZEXudoiylZcmHisynsj+IABZUQJuwaMOZeoG4vE5rz0k6VGHyya40Ks3nbRmdr82nICd X-Received: by 2002:aa7:dc10:0:b0:440:b446:c0cc with SMTP id b16-20020aa7dc10000000b00440b446c0ccmr15705776edu.34.1660589628708; Mon, 15 Aug 2022 11:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589628; cv=none; d=google.com; s=arc-20160816; b=Z3fH/oKmflGDw4Pjxobd7YKaZ8X7HapyaWh3hIYNJ333gjYZAlGXmtcJtMvausENa5 0VGtvNNxv1rs0k9HqgF5hZ4Drj1U7rfJTLvUrRTexCqNupfVpgSHK5+cNnnpgY2AZx2t Yxq0rQf1REG0JJr230uWhL4wBuFQlaqlqYVVub+lssXtdUTKQ3H0xiq+wN0ETNgBVgFs y8n3cKuJtUImIeCb06C8PGRGgqoOlTQJjYHZEa/HyN/1iKP8Hmpus8bDL7Dqyn8uDTse fs/eW+OZz51+hSs7CJcjkuG6ExII5GdwF1d4ep6FAogiDihyjQXqTK1+TFVwHLDXlj41 d6zg== 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=xT2BTew44E5azVLJ5BoHGAaO3PJB/xtEygAXO61A2cA=; b=KoltcZlXgqdHLZFWAz0ZCCuNYcPow4u7BQoJ05LE4faLM18YpeshuZfopGDBqUGfkg nFQdCfrVWB3Av5oKI9Dowi3RB3zrcnUA7ySKoU1Hgd12oZLzZ+iwIt92XgimYcOjD3Um fryPdJ1EMK3LB54Kd7KCIcOGiWfKWHg4YvxID06MHZlixe6aF/0Rn6q48npz7Gmtor6/ 9ld+RFIwde+QcUzewYZBpsVTlkxxSJ6sBXRzKcsi85jtxsXDQoOIq/1nhkvWGFDhH8Mv E7bt9uV2wT7erCPhkqgxePCYIguiXzFZnEebEfnkN3ki6TJ5t/TNNk31JEWD4E9mrJQn BG3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ktTQronP; 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 ga7-20020a1709070c0700b00730d34ce2aasi10509320ejc.988.2022.08.15.11.53.21; Mon, 15 Aug 2022 11:53:48 -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=ktTQronP; 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 S243748AbiHOSpV (ORCPT + 99 others); Mon, 15 Aug 2022 14:45:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244027AbiHOSl7 (ORCPT ); Mon, 15 Aug 2022 14:41:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 257B755BF; Mon, 15 Aug 2022 11:25:44 -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 ams.source.kernel.org (Postfix) with ESMTPS id D4CD0B80F99; Mon, 15 Aug 2022 18:25:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4170CC433C1; Mon, 15 Aug 2022 18:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587941; bh=FAdioyiEhZTtTySmbBNz7a6TLgzDkzXLBR8+kMfwe5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ktTQronPJ9rMptXy0ercI6Q9uw2KN00eyI5Sz+zaSYmS6LLO28o/cKzpuDi+M+E9t jzikWqvUnrMbU9u67+QeGsjWLEivfZ4s7na5xaLY1DmwcaTNtAVwvkSwO56FBajiCE OMuq7jAgLxO4OeB3KffwGTwWMbwTCvmqL2vpRsF8= 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.15 244/779] drm/mediatek: Modify dsi funcs to atomic operations Date: Mon, 15 Aug 2022 19:58:08 +0200 Message-Id: <20220815180347.748224936@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 5d90d2eb0019..cfa354037bb8 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