Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3967575imb; Wed, 6 Mar 2019 01:53:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzuN49b3lbaqVCVPKrxMFSPHgTwshPYB2/0GudGqk0gdteD76kjT+cFBXiKS2IPVJct173W X-Received: by 2002:a63:61c9:: with SMTP id v192mr5662103pgb.120.1551865994431; Wed, 06 Mar 2019 01:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551865994; cv=none; d=google.com; s=arc-20160816; b=ws18ZklY2OhJfzgkybqfryYKdJxmLheriv83JZsGZBkC9xZkGKmuj3muW/btj92z8s C5RGcHP1OLJHBNymMLaUhI52jE3wrvSzveBwo0FBzkgVJpti8g+p6NZAznASBOjS7mFI d/B0Dwkt4pFGfursRP2Yg3JhnwDIW/ooSzk4HXE5I452k49aPaas5AzEIEqVVnlVoAcK K4Mq+BPPhWJ5/B7NDQv7JiwSSWtMFr/QJBSlQKb6qxPiStMVM6lWVZYs4aKQP89iIdJQ up/Xc3yS4BqkMk3S1K1ukAeOZghV6on4/zB71mNplwpGTIMx0fEXYu+YV6ynJivvfPKp 2qDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=HTRWQBsn3YsrodQb8Iy1maXODTtJ0Tm3y7Ay3zsLBv0=; b=Pn3gJjpZaGrhiRehQLeV6px88JeZWjXk+8Dm94/NIxYeTzIAavnz1WVfjJMBxIipl+ 1AaHODOQT69BxS+pB8xViUl220AXJb63Cnw4Ot4oHCgPNbD67c0/e3l3HGLskEvKAvhJ RuoBfSYg8k3DqIzxScP4J3dGlXD3KlxD1aTdeFAguzRgGo5gcm9PUYqa72aNgTEyAOJq sqwFJEMTIfBibzytEl0vnwlR62w3b4Zs93uabVdSTGqnewsQH9j2/sOSxjkqbvq/aAX7 Vh1pMqBu0oFPri4Jm+hCSeYg5/qXRG7FBJa9s0bpld0Q+VUWmSKRWGh1XrN7Q04NRm1f ee9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si1039706pgo.394.2019.03.06.01.52.59; Wed, 06 Mar 2019 01:53:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730003AbfCFJv3 (ORCPT + 99 others); Wed, 6 Mar 2019 04:51:29 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:25403 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729903AbfCFJuz (ORCPT ); Wed, 6 Mar 2019 04:50:55 -0500 X-UUID: 635ddb677a2a4055862b6107092c98ad-20190306 X-UUID: 635ddb677a2a4055862b6107092c98ad-20190306 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1204594779; Wed, 06 Mar 2019 17:50:38 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 6 Mar 2019 17:50:37 +0800 Received: from mtkslt302.mediatek.inc (10.21.14.115) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 6 Mar 2019 17:50:37 +0800 From: Bibby Hsieh To: Jassi Brar , Matthias Brugger , Rob Herring , CK HU CC: Daniel Kurtz , Sascha Hauer , , , , , , Sascha Hauer , Philipp Zabel , Nicolas Boichat , Bibby Hsieh , YT Shen , Daoyuan Huang , Jiaguang Zhang , Dennis-YC Hsieh , Houlong Wei , , , Frederic Chen Subject: [PATCH v2 00/10] support gce on mt8183 platform Date: Wed, 6 Mar 2019 17:50:25 +0800 Message-ID: <1551865835-50974-1-git-send-email-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1: - add prefix "cmdq" in the commit subject - add dt-binding document for get event and subsys function - add fix up tag in fixup patch - fix up some coding style (alignment) MTK will support gce function on mt8183 platform. dt-binding: gce: add gce header file for mt8183 soc: mediatek: cmdq: add mt8183 compatible name Besides above patches, we refine gce driver on those patches. soc: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data soc: mediatek: cmdq: clear the event in cmdq initial flow In ordet to enhance the convenience of gce usage, we add new helper functions and refine the method of instruction combining. dt-binding: gce: add binding for gce event property dt-binding: gce: add binding for gce subsys property soc: mediatek: cmdq: add packet encoder function soc: mediatek: cmdq: add polling function soc: mediatek: cmdq: add cmdq_dev_get_subsys function soc: mediatek: cmdq: add cmdq_dev_get_event function Bibby Hsieh (10): dt-binding: gce: add gce header file for mt8183 dt-binding: gce: add binding for gce event property dt-binding: gce: add binding for gce subsys property soc: mediatek: cmdq: add mt8183 compatible name soc: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data soc: mediatek: cmdq: clear the event in cmdq initial flow soc: mediatek: cmdq: add packet encoder function soc: mediatek: cmdq: add polling function soc: mediatek: cmdq: add cmdq_dev_get_subsys function soc: mediatek: cmdq: add cmdq_dev_get_event function .../devicetree/bindings/mailbox/mtk-gce.txt | 33 +++- drivers/mailbox/mtk-cmdq-mailbox.c | 18 +- drivers/soc/mediatek/mtk-cmdq-helper.c | 202 +++++++++++++++++---- include/dt-bindings/gce/mt8183-gce.h | 177 ++++++++++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 5 + include/linux/soc/mediatek/mtk-cmdq.h | 61 ++++++- 6 files changed, 439 insertions(+), 57 deletions(-) create mode 100644 include/dt-bindings/gce/mt8183-gce.h -- 1.9.1