Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp36763imu; Thu, 20 Dec 2018 16:23:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN6EVYizdKMGqbrMBfJqFnyljtw5+ZktXiBOP1GNPDjeVXERJGZnA7pdPqaUjaqCyFi2vBCR X-Received: by 2002:a17:902:5ac2:: with SMTP id g2mr310630plm.313.1545351792955; Thu, 20 Dec 2018 16:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545351792; cv=none; d=google.com; s=arc-20160816; b=WIFOWROw9M537XTM9T2RajvY4YP/gphYrk3bzsOwT4tNSURr+RSlQReU/+zakiEUmG ZYJQ7FE6cm/704os1FLo4iVIhrBmEsw5FM0Go/tB91v1g2QM2Nb0DTs26cUFvjV0ja98 i/FOEOJ9S2On31wTYqT/4cOCFFZKQ5TkRYcaxFDt/bDt4cfc6MkiSkZgIi1kysCBSeja tvvR2hwMTnUoaNXPIodP0TpWMCnxIpGHDv/xKPvBUyUczJFpoo9tkV/n5Id2kOZTZC+Y h/9t9vJvzJmyotPPwQqrFeZfiKwpnHQ2fGj/GenTgPe4EppwavQEIqFnLYWJJy67Kffy qktg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NoW84sHcpZ3hWCRY1pN/YEtZ+PH1m/Vupg4+oZVMAU4=; b=juITGC+mhx3ExAo4kWqhfySgQFXtpzzUpP4YI1QSbDTD9IJity5vsXgqJQOebkSy7Y M9CBoVqgR03Wa2xdjWn7iF+ve+i19G3Ws5ATk4q9QTWH/FLsU3x7zuVhEoW2TJfJK8+v m0j6N0bZyizyhkvkjaZvfypovxWStp6IRKJzceDAIMtIMTkKjoQaFZ5wH5OwZZ6NvhOa yMJ+b9rtjsYZbWJM1VL42RtYEv4fppEPN3byDxZIA5P4CgKG/ot3972cscCPt/NqTPP2 2dyRaUym1Ox6w08pMIOUa2mbsMYRXUYxrLkZt+X/MxQ4J8Sd59tqF3A5TnepS41VPCeL ccGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dNnMLjbC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si20758674pli.50.2018.12.20.16.22.57; Thu, 20 Dec 2018 16:23:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dNnMLjbC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387770AbeLTRUH (ORCPT + 99 others); Thu, 20 Dec 2018 12:20:07 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:44725 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728221AbeLTRUG (ORCPT ); Thu, 20 Dec 2018 12:20:06 -0500 Received: by mail-ed1-f66.google.com with SMTP id y56so2373802edd.11 for ; Thu, 20 Dec 2018 09:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NoW84sHcpZ3hWCRY1pN/YEtZ+PH1m/Vupg4+oZVMAU4=; b=dNnMLjbCJ7r5+4EECmbZMq4t2gTe9efmtPBHZlsRqfp4XkSl29QgDooN6fxGLFrpJ7 llsVEgWSGZcE4sG2R99YhPOGxa5cTl9rNGlvPxBs63ZTS19rg6ZiHWN2RozHI3juofUG rA2/ZnsQd3MeEMXITS6y48nNuAJioUKwkKmIXZMT55HvHKfeob0kRtjTWC4RdaVLUH5/ AHJcuIPpovpwNj7eiNt8Z0+AwUPAe1Bjb5G6Ml1GzmYKy8GHDDT9nRDAWeZnx5A4zKGP Ma/ZFf0XbXLyb2c50twYrxlLAUzPk5ui38lYjHrBrYT3DBsnHHrKQJZ8m1JtVfwtFjsm MqIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NoW84sHcpZ3hWCRY1pN/YEtZ+PH1m/Vupg4+oZVMAU4=; b=c3QKkGENrFEvE2KGAMWxt5uKtXuxBiI39EONXe7Q7SIcdcTu2m8lt9g5X2uLDpiZQz VjOy4um/DaVjFITWawY+GFClNgWCJdpOYbcSFU1uQFiXRkVuKQZeOTc5o2KrU805ZDya lY+26Bie+9Cg8ezC8w8HHqRg00f53YrV+xQS0xvt0AJLzKLg2N+BeO1KouEFJ9HhEw5R lSTr2v/+YWY9WqCqVpPU3xG8wid1NfzVCRZthEDYlcC3r1iawLlRXk9Ui8Ikk1IgYYFY u4ODkdhI1DZ7LJo8dea+Shdz+fgA8JZubR/4jCNWcEiFW5iS+LJcUkYTDGWOo9Bn2Gcq aaNQ== X-Gm-Message-State: AA+aEWaHqZIRfT+UWxUhJ9QJhiM8WkKZfNsJCiq1s1bxgvSlDn2X5rYL 42Y2q9yKllaO557+HMKDHGU= X-Received: by 2002:a17:906:1102:: with SMTP id h2-v6mr10900008eja.18.1545326404790; Thu, 20 Dec 2018 09:20:04 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id v14sm5930689edq.74.2018.12.20.09.20.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 09:20:03 -0800 (PST) From: Thierry Reding To: Jassi Brar Cc: linux-kernel@vger.kernel.org, Andy Gospodarek , Bjorn Andersson , Caesar Wang , CK Hu , Dong Aisheng , Eric Anholt , Fabien Dessenne , Florian Fainelli , Georgi Djakov , Houlong Wei , HS Liao , Kaihua Zhong , Kevin Wangtao , Lee Jones , Leo Yan , Ley Foon Tan , Ludovic Barre , Neil Armstrong , Nishanth Menon , Oleksij Rempel , Ray Jui , Rob Rice , Scott Branden , Sibi Sankar , Stefan Wahren , Sudeep Holla , Suman Anna , Tony Lindgren , Vikram Prakash , Vladimir Zapolskiy 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> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry Reding 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