Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3031515rwb; Mon, 15 Aug 2022 16:30:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4NSV9doEksLwxb36DiL4pxgO2PSZTn1VavS3YEULC/q4GQe4lfWuUH0wfrHnGzRcye7e6c X-Received: by 2002:a05:6402:254a:b0:43d:a634:a0ab with SMTP id l10-20020a056402254a00b0043da634a0abmr16511869edb.298.1660606251400; Mon, 15 Aug 2022 16:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660606251; cv=none; d=google.com; s=arc-20160816; b=MWVgy88j0ihT1KRskMJkRiwDbzzKflX3PVsjBK7GONMlU87ibwjKW5VXLEsuq83/bz 2VyaeelPaM3DX1BulrwDU4gSVdYmKWjjNh/FhT0FQd2WGx1+bzBVWCvMMWnT29KW4vMe VysGU7bagQmq4fBCKJnQgAnKbVaHy00uNx1dzDWvzfhGjG+NOBa9XNT9Gf1LprNsLkxN vh8Os+qJI8XrFbpc2rDn19Lqbum+VEHjJAmkSNsP+B6AbTEJbThXUEaZ0I144ipE1V0n eV+99qlVLfAAbNoCrlPPxSqyIuS0P9v9dyB9T6SULKK7Yi3tBHT6WluWh79fBj1BLhmR zXyQ== 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=I3zXNMG04IwuJD/030XFxZfb8f9Z69mpynwr1t/NAi4=; b=gPMIjFWLvW+KUhAyxorxXm5lfsmoIxexCQRbAwdf8M4TX1AgAIs9jJ38z252ryUTPg 9kOQwRYbVAa38JoIrbRzPR9Ln8Ds+ItB2rYOLGixYGwGOZtmWeAvucelvr+mEfeK46ys iib6AVRvUd3ZBLm3obludfy39I9x4bkkawjddnS1SaPH1hH21rbFHwI0IjhVjHQ6KALI FsuSKE4mN/phML85um/JAGGuUqTG+6/XSDun9BnjgILQTF9sN3hzcHqGYMk4A461675f /OPRM0eIjPEhepGTEBHyBo89cWe74nSmL+Tu+RMfEXNTFuNZheO+pcmj+wHwgmecLtEV 0J7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="E3siX/0D"; 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 q8-20020a50cc88000000b00442296a8407si7697343edi.629.2022.08.15.16.30.24; Mon, 15 Aug 2022 16:30:51 -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="E3siX/0D"; 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 S241848AbiHOXZ1 (ORCPT + 99 others); Mon, 15 Aug 2022 19:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345663AbiHOXVG (ORCPT ); Mon, 15 Aug 2022 19:21:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA657E310; Mon, 15 Aug 2022 13:04:27 -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 825D0B80EAD; Mon, 15 Aug 2022 20:04:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3C81C433D6; Mon, 15 Aug 2022 20:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593865; bh=6gCWjmv5tYGelzrU5oWEcn0Doq9gcjuvzlCs1uhKIrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E3siX/0DB7P1ba5duXs+jkWDnryQ4BdmZJ0bkSwFPxJfqgZnTHEF4D0B+XyuoKXqV G1eIh/i/uP5t5u3bmHFg5mPeP/QgcQqU9Dlk8ONpynbtni2QkKJ5WRZG+gLsjY63DT Ero2KUnNYgbhnBeQchX62EOZVT6FWKnV7viCQ2xs= 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.19 0337/1157] drm/mediatek: Modify dsi funcs to atomic operations Date: Mon, 15 Aug 2022 19:54:53 +0200 Message-Id: <20220815180453.151425943@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 d9f10a33e6fa..6e7793f935da 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -763,14 +763,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); @@ -779,8 +781,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