|
|
Log in / Subscribe / Register

mailbox: Device-managed registration

From:  Thierry Reding <thierry.reding-AT-gmail.com>
To:  Jassi Brar <jassisinghbrar-AT-gmail.com>
Subject:  [PATCH v3 00/19] mailbox: Device-managed registration
Date:  Thu, 20 Dec 2018 18:19:43 +0100
Message-ID:  <20181220172002.9016-1-thierry.reding@gmail.com>
Cc:  linux-kernel-AT-vger.kernel.org, Andy Gospodarek <gospo-AT-broadcom.com>, Bjorn Andersson <bjorn.andersson-AT-linaro.org>, Caesar Wang <wxt-AT-rock-chips.com>, CK Hu <ck.hu-AT-mediatek.com>, Dong Aisheng <aisheng.dong-AT-nxp.com>, Eric Anholt <eric-AT-anholt.net>, Fabien Dessenne <fabien.dessenne-AT-st.com>, Florian Fainelli <f.fainelli-AT-gmail.com>, Georgi Djakov <georgi.djakov-AT-linaro.org>, Houlong Wei <houlong.wei-AT-mediatek.com>, HS Liao <hs.liao-AT-mediatek.com>, Kaihua Zhong <zhongkaihua-AT-huawei.com>, Kevin Wangtao <kevin.wangtao-AT-hisilicon.com>, Lee Jones <lee.jones-AT-linaro.org>, Leo Yan <leo.yan-AT-linaro.org>, Ley Foon Tan <lftan-AT-altera.com>, Ludovic Barre <ludovic.barre-AT-st.com>, Neil Armstrong <narmstrong-AT-baylibre.com>, Nishanth Menon <nm-AT-ti.com>, Oleksij Rempel <o.rempel-AT-pengutronix.de>, Ray Jui <ray.jui-AT-broadcom.com>, Rob Rice <rob.rice-AT-broadcom.com>, Scott Branden <scott.branden-AT-broadcom.com>, Sibi Sankar <sibis-AT-codeaurora.org>, Stefan Wahren <stefan.wahren-AT-i2se.com>, Sudeep Holla <sudeep.holla-AT-arm.com>, Suman Anna <s-anna-AT-ti.com>, Tony Lindgren <tony-AT-atomide.com>, Vikram Prakash <vikram.prakash-AT-broadcom.com>, Vladimir Zapolskiy <vz-AT-mleia.com>
Archive-link:  Article

From: Thierry Reding <treding@nvidia.com>

Hi,

This series of patches adds device-managed registration functions for
mailbox controllers. A number of drivers can be simplified by making use
of this new API both in the error cleanup paths in their probe functions
and in the driver remove implementation.

In addition to adding the new API this series converts all drivers to
use it. There is also an additional cleanup patch for the mtk-cmdq
driver that removes some calls to devm_kfree() that are not needed.

Changes in v3:
- fix the level of indirection in the device-managed pointer
- fix a build error in the OMAP mailbox driver

Thierry

Thierry Reding (19):
  mailbox: Add device-managed registration functions
  mailbox: arm-mhu: Use device-managed registration API
  mailbox: bcm2835: Use device-managed registration API
  mailbox: bcm-flexrm: Use device-managed registration API
  mailbox: bcm-pdc: Use device-managed registration API
  mailbox: hi3660: Use device-managed registration API
  mailbox: hi6220: Use device-managed registration API
  mailbox: imx: Use device-managed registration API
  mailbox: altera: Use device-managed registration API
  mailbox: sti: Use device-managed registration API
  mailbox: xgene-slimpro: Use device-managed registration API
  mailbox: mtk-cmdq: Use device-managed registration API
  mailbox: mtk-cmdq: Remove needless devm_kfree() calls
  mailbox: omap: Use device-managed registration API
  mailbox: platform-mhu: Use device-managed registration API
  mailbox: qcom-apcs: Use device-managed registration API
  mailbox: rockchip: Use device-managed registration API
  mailbox: stm32-ipcc: Use device-managed registration API
  mailbox: ti-msgmgr: Use device-managed registration API

 drivers/mailbox/arm_mhu.c               | 12 +----
 drivers/mailbox/bcm-flexrm-mailbox.c    |  4 +-
 drivers/mailbox/bcm-pdc-mailbox.c       |  4 +-
 drivers/mailbox/bcm2835-mailbox.c       | 10 +---
 drivers/mailbox/hi3660-mailbox.c        | 11 +---
 drivers/mailbox/hi6220-mailbox.c        | 11 +---
 drivers/mailbox/imx-mailbox.c           |  3 +-
 drivers/mailbox/mailbox-altera.c        | 15 +-----
 drivers/mailbox/mailbox-sti.c           | 13 +----
 drivers/mailbox/mailbox-xgene-slimpro.c | 11 +---
 drivers/mailbox/mailbox.c               | 70 +++++++++++++++++++++++++
 drivers/mailbox/mtk-cmdq-mailbox.c      | 11 +---
 drivers/mailbox/omap-mailbox.c          |  4 +-
 drivers/mailbox/platform_mhu.c          | 12 +----
 drivers/mailbox/qcom-apcs-ipc-mailbox.c |  3 +-
 drivers/mailbox/rockchip-mailbox.c      | 15 +-----
 drivers/mailbox/stm32-ipcc.c            |  4 +-
 drivers/mailbox/ti-msgmgr.c             | 13 +----
 include/linux/mailbox_controller.h      |  5 ++
 19 files changed, 92 insertions(+), 139 deletions(-)

-- 
2.19.1



Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds