Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1646414pxb; Thu, 16 Sep 2021 11:58:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5R65PWNkgTjIwL5C1oNu1VC0CzmqVswO9nBdWuQ/24R+Lr2QjogXGcJ5mtqntqo+5MHfp X-Received: by 2002:a50:b410:: with SMTP id b16mr8228346edh.157.1631818694467; Thu, 16 Sep 2021 11:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631818694; cv=none; d=google.com; s=arc-20160816; b=QdyRdTT1LECd7LYsb3moCCvYPJGoQEHoJdX6czDKXHT/qEmP6pRyJxLRomkQpcBfCr 0T2gYvYcLz+7gteiDtaiwGdmLQb1tiHKT3FP2sy/XtmNhJXzlfGO3ojznE+zBuJs3cKe XYxlvJltyVz28jJGk/WCQAEfDm0AKn9weYzgW9kr7O7jpC9kM7P0rNl5ITkfnWEOXb6t nAleDf8mhYMMv9Oqh2YzEeHDU7xEDfyt3aafQyKcYEeJoXspb8YE7Xl6BvVl5miSTNoM c5YSkyq7wQRLUZEJqXXSjfBDcRYNd0cwDOD4wiuJRDRUDolhmKt2VVr74U5yMhWuTwC1 X/tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=Zh6CdkZjA6wvOyQTH00eBmRM6esKnexFeXTctqmVuOQ=; b=wcn/9TbWCokFO1Fq2764NyNJbBjcoCa6OlXY7dL3/N2/U6mUsdXpTnqc+uOm0kNZIo rkVgBrPzgTW2lbaiGAFcU+z0twyoJahWefJs6Yuz5O99BVw0ZV+arnB2eg/3We+QVxzi kN3nCv84N4KFVUmk/zMNA4+IQ/dj4wkzSWVDB2SsN8AzqnxLBiv4ZJ6zYcwaK8doOjHR NlHqJDmMBuKOkPG8QzZV5nzLWUX+xfl1NtRnCYXZY1xLA2nElpA5k2CSSjFIzuzwp8em GAjA8gZt5i/rMr9U3KjLnF7eY5vE0Zw6st3T48sLblF88xoZ2fqo0O82YhK84dEhNNO9 vCeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=VWpAcdhx; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=wm1MBX4H; 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=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si4163647edq.321.2021.09.16.11.57.50; Thu, 16 Sep 2021 11:58:14 -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=@svenpeter.dev header.s=fm2 header.b=VWpAcdhx; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=wm1MBX4H; 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=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240176AbhIPPu6 (ORCPT + 99 others); Thu, 16 Sep 2021 11:50:58 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:35893 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239127AbhIPPux (ORCPT ); Thu, 16 Sep 2021 11:50:53 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id CFC43580E74; Thu, 16 Sep 2021 11:49:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 16 Sep 2021 11:49:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=Zh6CdkZjA6wvOyQTH00eBmRM6e sKnexFeXTctqmVuOQ=; b=VWpAcdhx+hyf3OPMJA7S19GJ2l8CSjVgDuRARFWk8l Gqd1Lvxj0GKVl4dspizab8JHplN7M6KMJWrIx+ku9/rfLIh1kbCXQNUEkF2IRvht CQzex+djiELhnWcUU+1jbgDxVoWaT6nlxBIQMAxURGhzCNolVmbHicjnxXPg3cg6 VUl3rDhU2ho5HZUn/0jbTP6RVL+OeAdFWJTx0elKu+vk7Dc1/lXsTp3KD4wGAlR4 WHE0OcmWiL9yLDhtTm23cgvpN4Pg7ViRz54DPTWWwPJbCJ8lq+2/Hpkhnb/+Bruv lIoGD6GBshKfTAMTbVi08ywX/BNNeZeOwp3cxK9dFK+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Zh6CdkZjA6wvOyQTH 00eBmRM6esKnexFeXTctqmVuOQ=; b=wm1MBX4H3YfNHp491Sv7cm+5Vwm4bs7vH Eo1HlApGat8OIN2g16QI4bRX9eaTI4ALzTlWEkHRdcUXzaSQH7O0wUx8JRW07dEX 1gMn1wTz92tIFI6AEuyuoprZns/EydLgNcSiox3ifH0jwm0qLy/x+vXLb+UeRuBF 324lOGkhj0xmp0/KD3Z7aH86HDOcjKTxEuluS5X4/tCNzSkCt1fOKzzoFvF5cqbA 8D6Kq71LLOSHHmn5txZNcPBVaAvlJCUN5RoY5CLal2hHxJBqldPdhXJpnBtNYSG2 O5qnEl+2mwBRo5/3Fb//gq0ZWzLQYfdkI7sbtZfFMPg2QJZjO9uHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epfeehudeftddvhfehvdduhedtjeejheeuudfftdfgvdekvdelleeuveelgfeflefgnecu ffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Sep 2021 11:49:28 -0400 (EDT) From: Sven Peter To: Jassi Brar Cc: Sven Peter , Rob Herring , Mark Kettenis , Hector Martin , Alyssa Rosenzweig , Mohamed Mediouni , Stan Skowronek , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Apple Mailbox Controller support Date: Thu, 16 Sep 2021 17:49:09 +0200 Message-Id: <20210916154911.3168-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is the second version of my series which adds support for the mailbox controllers found on the Apple M1. v1: https://lore.kernel.org/lkml/20210907145501.69161-1-sven@svenpeter.dev/ Thanks to Jassi, Mark and Alyssa for the initial review. I've addressed your comments with the following changes: - switched to txdone_irq instead of introducing a new mode - switched to a threaded interrupt handler for receiving messages - added co-processor examples to the device tree binding - reformatted the register defines and clarified multiple comments Best, Sven Sven Peter (2): dt-bindings: mailbox: Add Apple mailbox bindings mailbox: apple: Add driver for Apple mailboxes .../bindings/mailbox/apple,mailbox.yaml | 84 ++++ MAINTAINERS | 3 + drivers/mailbox/Kconfig | 12 + drivers/mailbox/Makefile | 2 + drivers/mailbox/apple-mailbox.c | 431 ++++++++++++++++++ include/linux/apple-mailbox.h | 18 + 6 files changed, 550 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml create mode 100644 drivers/mailbox/apple-mailbox.c create mode 100644 include/linux/apple-mailbox.h -- 2.25.1