]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Remove unused mpc1_is_mpcc_idle
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 2 Feb 2025 21:58:50 +0000 (21:58 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:02 +0000 (21:03 -0500)
mpc1_is_mpcc_idle() was added in 2017 by
commit feb4a3cd8eb0 ("drm/amd/display: Integrating MPC pseudocode")
but never used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/mpc/dcn10/dcn10_mpc.c
drivers/gpu/drm/amd/display/dc/mpc/dcn10/dcn10_mpc.h

index f2f55565e98a4c9d101c406ad87b89b24bc8ae15..b23c64004dd53f7fd9762778a895db171e78f15b 100644 (file)
@@ -142,22 +142,6 @@ struct mpcc *mpc1_get_mpcc_for_dpp(struct mpc_tree *tree, int dpp_id)
        return NULL;
 }
 
-bool mpc1_is_mpcc_idle(struct mpc *mpc, int mpcc_id)
-{
-       struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc);
-       unsigned int top_sel;
-       unsigned int opp_id;
-       unsigned int idle;
-
-       REG_GET(MPCC_TOP_SEL[mpcc_id], MPCC_TOP_SEL, &top_sel);
-       REG_GET(MPCC_OPP_ID[mpcc_id],  MPCC_OPP_ID, &opp_id);
-       REG_GET(MPCC_STATUS[mpcc_id],  MPCC_IDLE,   &idle);
-       if (top_sel == 0xf && opp_id == 0xf && idle)
-               return true;
-       else
-               return false;
-}
-
 void mpc1_assert_mpcc_idle_before_connect(struct mpc *mpc, int mpcc_id)
 {
        struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc);
index dbfffc6383dcbc71784f72412f696daa48e6376d..874e36e39e1bd06d8bdf4bd612b183e724047351 100644 (file)
@@ -173,10 +173,6 @@ void mpc1_update_stereo_mix(
        struct mpcc_sm_cfg *sm_cfg,
        int mpcc_id);
 
-bool mpc1_is_mpcc_idle(
-       struct mpc *mpc,
-       int mpcc_id);
-
 void mpc1_assert_mpcc_idle_before_connect(
        struct mpc *mpc,
        int mpcc_id);