Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp754319pxb; Wed, 29 Sep 2021 09:01:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHenYiSOFcwrfCd3CVw5uIPFwp4/rrJCuLTNZ5uvPmQFsiEEWCtTLOEoUxc48gNV6Hieb4 X-Received: by 2002:a17:906:1755:: with SMTP id d21mr539265eje.257.1632931318089; Wed, 29 Sep 2021 09:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632931318; cv=none; d=google.com; s=arc-20160816; b=t5l5Y7YEOS2Tnpfa7gfiV7EsGI+/pEkYHkxO7AkJ4JjutUcJnIARkdhQu+23meO29I SmqhAGobn6CNA6cQwTznJxyOF+OUUtIrPn6IQ1K/R25v5J0BcoTutRFc0EW3NWRfqfgj jcYsWzixdBTXdzDY7EpN/76/ioLkBvWULMGIu9Q1P+j8BTksDQ9QxeEnX2YegsqjXDpI G/KymPbd4hCKBuN8gDj/Z9+0jGMS+4SrcFJ7Z26lVB3GrNb+dfhQjmXEF8D8Hw4IWZIp DA++9ifZ4CvqDGQZPWYOg7u0NjkwEwb/4PSrOoZpJ2stj4IlGAcc0cLwqDDyqrkR5SmK zOvg== 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=Xk6eVl3VhKygKtPDkVvrqbT/HJqmt8b4eNaSpIRCE50=; b=NE02oOcMyOq3cHcBE5HubxUCirVvR5cg51kpdtsTT77W0uQwRnZUceZsoRJ7koqrwX CSbFpemy7zg/aDQCeYcMYvHoCB63xlC0TgZJmci+4R9JsiIErKixQkOWbwxl8hVg2RJF kw7TRiiYHFIQviyqndCVkrgt4pY2uQq6PaFzomryE4QH5tHUbkY6/3RcYGfC8zFjKhFs 3XtpmZFw2kh8k8vMQe0zvsLS9zAe1SVBGe1yqWKPP5cYImodSixRD06VS5dSKqifVU+V nNPBCVKQ+rihiBKPAotgE6EtEhuzPc+fhi7hTYef6SmW2ul7Qd4RQ/aT9EUpbVqzJB+f pXjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=onlZ98hw; 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 j22si284595ejt.705.2021.09.29.09.01.33; Wed, 29 Sep 2021 09:01:58 -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=onlZ98hw; 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 S1344875AbhI2PAI (ORCPT + 99 others); Wed, 29 Sep 2021 11:00:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:42186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344730AbhI2PAG (ORCPT ); Wed, 29 Sep 2021 11:00:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 42CAE613CE; Wed, 29 Sep 2021 14:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632927505; bh=EQQTnRS8lPfDTcCQ7Qonvy40+E4FTsuJpNfA2zp7kgs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=onlZ98hwlZ5oYGqO4Cu2vlKurJF5NzXl00KPNRdEahyjrQRGKUkc2vpzcwqZ8Rgzo fokFz4U0ZbnD8qiAN79xYbJM5wwgjz/2holVbpCtsl2j1KRiG7Gp8axaUIegjsu/4p AjFLTkfHj7DiChESUu+VpawS2RSH5ewFu0c7Zg7olxi195KkNWfDYgCEUm0Kk+2qDo 8dE+fZtQXjul1rB54wF++6nylTIwZvG6wFsK+su8ab5tMrXn0e8LtBTSQol5iLl2Q9 zhXDYjYIfxxUhSFEmlAvysmUcj1rB9zUVQ8N5u1+/4SkbYKLIsUlLuFCmo07CQXpTa Rml1+Mm67lgqw== Received: by mail-ed1-f51.google.com with SMTP id dj4so10101209edb.5; Wed, 29 Sep 2021 07:58:25 -0700 (PDT) X-Gm-Message-State: AOAM532mEZ2zmSdNLpjfFs8nOARL2P1aEuZWbQMnSvvl/+x4VFOT126f abQWThHMsNUYI9H0Lecdl/sqIGGy5PEN+SD6jQ== X-Received: by 2002:a17:907:3e21:: with SMTP id hp33mr145136ejc.205.1632927436610; Wed, 29 Sep 2021 07:57:16 -0700 (PDT) MIME-Version: 1.0 References: <20210929070807.4488-1-jason-jh.lin@mediatek.com> In-Reply-To: <20210929070807.4488-1-jason-jh.lin@mediatek.com> From: Chun-Kuang Hu Date: Wed, 29 Sep 2021 22:57:05 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mailbox: Remove WARN_ON for async_cb.cb in cmdq_exec_done To: "jason-jh.lin" Cc: Chun-Kuang Hu , Jassi Brar , Matthias Brugger , Yongqiang Niu , Hsin-Yi Wang , linux-kernel , DTML , Linux ARM , "moderated list:ARM/Mediatek SoC support" , 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=B49=E6=9C=882= 9=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=883:08=E5=AF=AB=E9=81=93=EF= =BC=9A > > Because mtk_drm_crtc_update_config is not using cmdq_pkt_flush_async, > it won't have pkt->async_cb.cb anymore. > > So remove the WARN_ON check of pkt->async_cb.cb at cmdq_exec_done. Reviewed-by: Chun-Kuang Hu > > Fixes: 1b6b0ce2240e ("mailbox: mtk-cmdq: Use mailbox rx_callback") > Signed-off-by: jason-jh.lin > --- > drivers/mailbox/mtk-cmdq-mailbox.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmd= q-mailbox.c > index 64175a893312..c591dab9d5a4 100644 > --- a/drivers/mailbox/mtk-cmdq-mailbox.c > +++ b/drivers/mailbox/mtk-cmdq-mailbox.c > @@ -195,7 +195,6 @@ static void cmdq_task_exec_done(struct cmdq_task *tas= k, int sta) > struct cmdq_task_cb *cb =3D &task->pkt->async_cb; > struct cmdq_cb_data data; > > - WARN_ON(cb->cb =3D=3D (cmdq_async_flush_cb)NULL); > data.sta =3D sta; > data.data =3D cb->data; > data.pkt =3D task->pkt; > -- > 2.18.0 >