Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp976811pxb; Wed, 27 Oct 2021 16:31:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt+SmZ1wtouBX90E6dUbtTgQBACe2Kp3DHP+RVW71bu8+bd3X1qSWY/RQVl7C/FA08NKv+ X-Received: by 2002:a17:90a:6583:: with SMTP id k3mr9154932pjj.147.1635377515861; Wed, 27 Oct 2021 16:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635377515; cv=none; d=google.com; s=arc-20160816; b=YSjgDDKG2Cd6rYuiA5wd/ArQLrZRfMNrJIeh2uMHSR1T0nLeydnJy3CK8rd9njs491 FJasW+XLErnDSYXDPc06hei760Nd2HimTLz4f9JvQhSznxLFmDiHhRu61OCOlZKoesR0 bcHYMY3LLA2U68JtCPO5XmNR85AlpXyI8DmgDPuvMA9NVsiEnm9/lClFi1bvtMSH+G+U HUjGq9gS5X6Y+xxaCR/L0AiXALshqFxLB48l3reDvGThsR7zFpEe/tTZfK1hTxPJZRIX 91BdxUV3V/xLkj80w0afxhIzSHVZbRM61XmkF9x75qfIWO61uY7UVvukerX7SL1AxPEf B63w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lVQ4lg208pDGuGFyw5pypYX/z/dQqAqC4KJYsaC9GdI=; b=0o9ylt6w+ywGDkmF9hHDuMfXluXDrPEq0jnYAFIojqStCy3YEZrghOcLIBIUJeCUeC LhZav9XPIS/6zjzXgzdoG1NA/qGfE6f24Ikjhav8zJIoinr0SLLGV06DqVCT9LGSFHwV Am+sbexMBSIfu3sggr8O0FLWPfO0vW0R7Rpt5NMMtfh2uVk9XS8FYxf4IT3HmNdiZXHj Kn0XX56STleGytcb0HqbBnPlW7nK3XOAFXCwHLgt6UoNlCulbyRn11LeBV6Ja7SPofSL NOwSrOyIQ6wCiSFYITpu7+Jb/liG7VISkNgSTcwv3qz+B55qesWEfwnpCezqv4YaEyA3 Ituw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UJekR0JZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si2069190pgu.594.2021.10.27.16.31.43; Wed, 27 Oct 2021 16:31:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UJekR0JZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbhJ0XdP (ORCPT + 99 others); Wed, 27 Oct 2021 19:33:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:40128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbhJ0XdO (ORCPT ); Wed, 27 Oct 2021 19:33:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1E7D610E5 for ; Wed, 27 Oct 2021 23:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635377448; bh=Tn75VzarQbc5QgLHek0RK4HW2XH2u4J1JDqisUkgpqY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UJekR0JZaL9yDHPomHOW1TXTbkxwC8wWAMo9qu2ELak/JzDOgggi4ow3k2KFciFjS JaXYwfLmT1zMZEAZ8uHScJtnHoTRG5ZxgKCwitOQpHftd6KDjD0tR9OrNWTZ0YS+yI OG3ZGmBj5YAjVYL3acF9GyXkwXsbTOmVi1dEDh5OsaqEKv5zXYLA3xyPjuCsuZ82s1 0kD4uioaNCUNSZGhz5VllceNEBMKM3dlaLFJYygYoBYjhliGgCvpliwAkJ3QIDs2R7 V/EeuwdSHMa2zIe89HRo+Zbc0UCLcN9MSpcPXevZXFrBoGdVGFSMGx9zD1PbSTqEmz 5/cyuhbW2Xvuw== Received: by mail-ed1-f50.google.com with SMTP id 5so16484990edw.7 for ; Wed, 27 Oct 2021 16:30:48 -0700 (PDT) X-Gm-Message-State: AOAM530YdgK6JQkw+B8d+OqsE/LJ2Kn6UkpdN8gtJqUeTH9UgXTHVd8O kYpcFQu2alZ6IyHS4lY9LZUXJ6KtmCrGseGJcQ== X-Received: by 2002:a50:ff0a:: with SMTP id a10mr1131395edu.357.1635377447059; Wed, 27 Oct 2021 16:30:47 -0700 (PDT) MIME-Version: 1.0 References: <20211027021857.20816-1-jason-jh.lin@mediatek.com> <20211027021857.20816-6-jason-jh.lin@mediatek.com> In-Reply-To: <20211027021857.20816-6-jason-jh.lin@mediatek.com> From: Chun-Kuang Hu Date: Thu, 28 Oct 2021 07:30:35 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 5/6] drm/mediatek: Add mbox_free_channel in mtk_drm_crtc_destroy To: "jason-jh.lin" Cc: Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , Jassi Brar , Yongqiang Niu , David Airlie , Daniel Vetter , DRI Development , "moderated list:ARM/Mediatek SoC support" , Linux ARM , linux-kernel , Hsin-Yi Wang , fshao@chromium.org, Nancy Lin , singo.chang@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jason: jason-jh.lin =E6=96=BC 2021=E5=B9=B410=E6=9C=88= 27=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=8810:19=E5=AF=AB=E9=81=93=EF= =BC=9A > > Add mbox_free_channel in mtk_drm_crtc_destroy. > > Signed-off-by: jason-jh.lin > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c b/drivers/gpu/drm/me= diatek/mtk_drm_crtc.c > index ffa54b416ca7..31f05efc1bc0 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c > @@ -156,6 +156,10 @@ static void mtk_drm_crtc_destroy(struct drm_crtc *cr= tc) > mtk_mutex_put(mtk_crtc->mutex); > #if IS_REACHABLE(CONFIG_MTK_CMDQ) > mtk_drm_cmdq_pkt_destroy(&mtk_crtc->cmdq_handle); > + > + if (mtk_crtc->cmdq_client.chan) > + mbox_free_channel(mtk_crtc->cmdq_client.chan); > + mtk_crtc->cmdq_client.chan =3D NULL; Except the indent, Reviewed-by: Chun-Kuang Hu > #endif > drm_crtc_cleanup(crtc); > } > -- > 2.18.0 >