Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1248393

[RESEND v4.1 0/5] Mailbox: Provide support STi based platforms

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject [RESEND v4.1 0/5] Mailbox: Provide support STi based platforms
Date Fri, 16 Oct 2015 09:30:02 +0200
Message-ID <qk7CF-7I2-3@gated-at.bofh.it> (permalink)
X-Original-To linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=01e4VsX8Jvbv/Eimbr8w5UT7mpPlNaZmZUDlbf30k4E=; b=UOLJU5OJ2f+5Ic+sEPTE6C471QXvzCze9qnYGrc2qR3REyHAjKhvPLoU6IAMNrRzLF vT0BzJEOxrYqEZDF5tLcGygfmCYFfHz9FmBflxW0DqyVfZbjiAnmQAnqQkXobkI7auCr kqrd9gj/W/SeLB+cYEDgTbXSfFqWlg8L3YJHD9ABicCSkl2B1PJBFMZSKGEzAhxkgwOB WRMQpQMNwCj/SsYCq3emAMl11XKRnOUYI2QGzD392hUKOM/9hZNnbbS9ZLBILzDD0oO6 +PgvKHUooZekRHtdN8fp3dHBvUaYEbL5ddSEE8zysoJEiRMd3XAzF0cAdF8Tq92NWCVX Dubg==
X-Gm-Message-State ALoCoQlfWmmrrZE3b+/8gBKHmFIF/u4n5a+qKwhSFGKobJClTNe3QYfwLBzoVi+CkV3URrwJ6997
X-Received by 10.180.8.164 with SMTP id s4mr2867297wia.5.1444980116605; Fri, 16 Oct 2015 00:21:56 -0700 (PDT)
X-Mailer git-send-email 1.9.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 68
Organization linux.* mail to news gateway
X-Original-Cc kernel@stlinux.com, maxime.coquelin@st.com, jassisinghbrar@gmail.com, devicetree@vger.kernel.org, Lee Jones <lee.jones@linaro.org>
X-Original-Date Fri, 16 Oct 2015 08:21:26 +0100
X-Original-Message-ID <1444980091-16728-1-git-send-email-lee.jones@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1248393

Show key headers only | View raw


Hi Jassi,

[Resending the updated patch-set this time]

This should be it.  Exciting times!
  
ST's platforms currently support a maximum of 5 Mailboxes, one for
each of the supported co-processors situated on the platform.  Each
Mailbox is divided up into 4 instances which consist of 32 channels.
Messages are passed between the application and co-processors using
shared memory areas.
  
Also included in the set is an example Client which should be generic
enough to use as a testing environment for all Mailbox IPs which use
shared memory or the API to pass messages.  With small changes, it
should also be able to test more extravagant implementations.
  
v3 -> v4:
 - More protection in MBOX_BASE() MACRO
 - Remove unused tx-only marker
  
v2 => v3:
 - Controller
   - Shared (DT <=> Device Driver) defines removed
   - Return actual error codes instead of NULL in xlate()
   - Not passing 'direction' configuration via DT anymore
     - Removed all accompanying configuration checking code
 - Test F/W
   - Allow Rx-only and Tx-only controllers to be tested
   - Cater for controllers requiring pre-Tx 'signal' to be sent
   - Supply 'wr-' message debugfs file
     - When written to, will Tx message through Mailbox Framework
     - When read from, will print out a hexdump of Rx'ed message
  
v1 => v2:
 - New MACRO() to obtain base address for a given instance
 - Move locking into the structure it protects
 - Stop checking for 'ready' state when sending data
 - Don't clear channel data (that belongs to the API)
 - #define register offsets instead of providing via pdata
 - Register driver with module_platform_driver()

Lee Jones (5):
  mailbox: dt: Supply bindings for ST's Mailbox IP
  mailbox: Add support for ST's Mailbox IP
  ARM: STi: stih407-family: Add nodes for Mailbox
  mailbox: Add generic mechanism for testing Mailbox Controllers
  ARM: STi: DT: STiH407: Enable Mailbox testing facility

 .../devicetree/bindings/mailbox/sti-mailbox.txt    |  51 ++
 arch/arm/boot/dts/stih407-family.dtsi              |  39 ++
 drivers/mailbox/Kconfig                            |  14 +
 drivers/mailbox/Makefile                           |   4 +
 drivers/mailbox/mailbox-sti.c                      | 513 +++++++++++++++++++++
 drivers/mailbox/mailbox-test.c                     | 361 +++++++++++++++
 6 files changed, 982 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/sti-mailbox.txt
 create mode 100644 drivers/mailbox/mailbox-sti.c
 create mode 100644 drivers/mailbox/mailbox-test.c

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[RESEND v4.1 0/5] Mailbox: Provide support STi based platforms Lee Jones <lee.jones@linaro.org> - 2015-10-16 09:30 +0200
  [PATCH v4 1/5] mailbox: dt: Supply bindings for ST's Mailbox IP Lee Jones <lee.jones@linaro.org> - 2015-10-16 09:30 +0200
  [PATCH v4 5/5] ARM: STi: DT: STiH407: Enable Mailbox testing facility Lee Jones <lee.jones@linaro.org> - 2015-10-16 09:30 +0200
  [PATCH v4 3/5] ARM: STi: stih407-family: Add nodes for Mailbox Lee Jones <lee.jones@linaro.org> - 2015-10-16 09:30 +0200
  [PATCH v4 4/5] mailbox: Add generic mechanism for testing Mailbox Controllers Lee Jones <lee.jones@linaro.org> - 2015-10-16 09:30 +0200
    [PATCH] mailbox: Fix a couple of trivial static checker issues Lee Jones <lee.jones@linaro.org> - 2015-10-16 13:40 +0200
      [PATCH v2] mailbox: Fix a couple of trivial static checker issues Lee Jones <lee.jones@linaro.org> - 2015-10-16 14:40 +0200
  Re: [RESEND v4.1 0/5] Mailbox: Provide support STi based platforms Jassi Brar <jaswinder.singh@linaro.org> - 2015-10-17 07:20 +0200

csiph-web