From patchwork Sun Mar 14 23:33:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Kuang Hu X-Patchwork-Id: 12138123 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8446C433DB for ; Sun, 14 Mar 2021 23:35:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5857764E69 for ; Sun, 14 Mar 2021 23:35:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5857764E69 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=SoP8p1AyjATXEiKv/gABH/OZnDew9ZSYXGI9lJsu0bs=; b=n/6yWJNSlCchcrXLH3fSa0yT7L AWqqBx1iyhJMb+sKEIuQmmArTfn0jEYn1E0shkdhfvLFgZWAQDtvn67mY0O6REGZRnePU+thMHM0L ynV8EtKpdDe35mCW0VHS1iE0kYr3Gq8pzRM99KMeNJ6e/hSHmZS+twS6WhcuMQLYjjeetQXKypdkP uN8AWIoVcOmguxxC2vNZ1JPqjhSWrmBw2uBBI2dH68vppuNimJ01J1/RQz641sX3Ymq9UJHRwhyPy KrJaTOom88GoYXvgQfrsFW6825XRa+LYIDUA0kxReAKRCh/U3P8+UYHOLmfxvRBuHGYr5VcL5uwv1 3VhtAWkw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLaEz-00EdtK-1W; Sun, 14 Mar 2021 23:33:45 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLaEq-00Eds8-NY; Sun, 14 Mar 2021 23:33:38 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id BD1F364E6C; Sun, 14 Mar 2021 23:33:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615764812; bh=iQIOz0/vb0PZ3swqfz6ye0xnB0TWNZy1nXhv1AHxHAs=; h=From:To:Cc:Subject:Date:From; b=nE/zKomAAhWUClRPEKcV6JT8dD3wNyqeCaxD8wlZOuzFiwBpYXdyGyZIRCGQA5OB4 roXXVbTbaLn3Ul+CDFiVPTgspbAZ6WhTgolMNANHNNnoTK9cIqEEunAwYNknvNMZQv wzP9psaT86abRw4XlSop7W1hYO+3xgEx9y/DtgFhhUJtDmH9Hh/2mVp+qyo79mC5Yj 1E2NYyK7sOuKFAnAVPO9gnsTUq2HifxrU/mO9KJmMGGTrlzW30wMKNSClp+3LwT2gs Eo0Zak8BoisrRnLhOw2PHGpLrnKI9Q9RRdjPXK1EoLs9R9FC5qhwutZCwDvm8ryLwW Kv0C9glLQk7/w== From: Chun-Kuang Hu To: Jassi Brar , Matthias Brugger Cc: Houlong Wei , Bibby Hsieh , Dennis YC Hsieh , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Chun-Kuang Hu Subject: [PATCH 0/3] Refine mtk-cmdq-mailbox callback mechanism Date: Mon, 15 Mar 2021 07:33:20 +0800 Message-Id: <20210314233323.23377-1-chunkuang.hu@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210314_233337_155938_C2AC658E X-CRM114-Status: UNSURE ( 4.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org mtk-cmdq-mailbox use proprietary callback mechanism and proprietary error number, but these could be replaced by standard callback mechanism and standard error number. In addition, use cmdq_pkt as callback data to prevent redundnat assignment. Because client driver still use proprietary mechanism, so keep proprietary mechanism until client driver use the standard one. Chun-Kuang Hu (3): mailbox: mtk-cmdq: Remove cmdq_cb_status mailbox: mtk-cmdq: Use mailbox rx_callback mailbox: mtk-cmdq: Add struct cmdq_pkt in struct cmdq_cb_data drivers/mailbox/mtk-cmdq-mailbox.c | 24 +++++++++++++++--------- include/linux/mailbox/mtk-cmdq-mailbox.h | 8 ++------ 2 files changed, 17 insertions(+), 15 deletions(-) Reviewed-by: Yongqiang Niu