Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2114625imu; Wed, 21 Nov 2018 06:56:51 -0800 (PST) X-Google-Smtp-Source: AJdET5dkz3+2/FT8AkAU66F73oWvKeZKPwPVvFwtUgVXck9OPqVaN0cfpL3htZ/40ioFULmCzKLu X-Received: by 2002:a62:29c4:: with SMTP id p187-v6mr7123378pfp.62.1542812211087; Wed, 21 Nov 2018 06:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542812211; cv=none; d=google.com; s=arc-20160816; b=BnYfWbyCWln/QN/Yx65Hrjq5DQ3PgvO7mgppzOsJlLZaf3xqdkqI2Y2rQPtptny1KF L9i0Y6sINKof3kV+cjDbMsPWn3L3zJeEnt5U3KLnE5EExx1z5euiOuPxR/Yx8QJztjEY s5hxdiiIxmQrWo4ZY9Z2Pi3YLri0Bx5Ld6om6kfp6gvk/WE2KokVFVNkzPETnLWoBFi7 xs8TlWmx2s8tBtTHS8z3LfST5+FczquEZFVRtJQzAU7cSQLZILiqos3HItFwGGATsc4c 6T01sfL0YD4qC3UeonK1N6+W/KgZtRkGa3Pk13reAo4eSkGrwYPDxCul/BW+54/kwBgd jdVg== 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=5Ev3GTT5E4Yb9mnqV0ZG7wNOtALXW+dJ8C54g8xdUNk=; b=ON7CZwJ+Q1RH9dSDcTGCKD6F6YE0LOPsEoewHHYw5WxhcaQANxn7CD/8dll8ajRXae DX+nuKxaKg2PvNchyKpKjjHCvLa2QLQoqb/6YHNfC+CFNIrkOapn5hpOJVzLWAm3wv+5 w0W0YqLKbrYwuB2+S9KNmTOVfmzhzBGBOL/hlvFCwRdvxoyWaDIxJiXfuNHfSpPMNCXy sU+Lsw/cvT5+9uSNXmvk1Jr2FlNmEmYvJS7G4QVuNFdxq5OBTqajdG8yOWoujJR6dCEj C55k7AwVkjBkCMF66CBY0CAtoKzS6bJo5HJrKeuK6O7iueZBNMZaWusJ3Ka+l5veQCQi g00w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a9udGMxM; 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 t20si42298354pgl.211.2018.11.21.06.56.32; Wed, 21 Nov 2018 06:56:51 -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=a9udGMxM; 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 S1731139AbeKVB3R (ORCPT + 99 others); Wed, 21 Nov 2018 20:29:17 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35258 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728298AbeKVB3R (ORCPT ); Wed, 21 Nov 2018 20:29:17 -0500 Received: by mail-ed1-f67.google.com with SMTP id x30so5133701edx.2 for ; Wed, 21 Nov 2018 06:54:31 -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=5Ev3GTT5E4Yb9mnqV0ZG7wNOtALXW+dJ8C54g8xdUNk=; b=a9udGMxM8J8ik0kNYiQ0ZLXMclgDJVYlkO/xYesGfDtLeSIMSS1BAtNG8X3LbX1JMw kkP1lvpKvs9JLrCP7eUeK9Gf7VWEr6/o44NwM1glyEcBMtQJ0iVdyHADTQWwAm0U6PgP Xtk1xnP/Wczo72VBC2cOfN9rnXlP787W18atr2Qwk9KsteeMeSWAv3EZWBN8IoeoVhwv Zf0t1jGJGh9qQoWrhxZVKGJ9R+z0ol3xv9RT4Wl9fk0JRmxerjNdkZnwaGY8Jyh3KSyZ 26Cn4TDZNkEwn92mgQJAzMb+gU/3jBL4DxWAkP/sskjQrtm8GbpWboGaWwUySaAJpzk9 5Y9w== 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=5Ev3GTT5E4Yb9mnqV0ZG7wNOtALXW+dJ8C54g8xdUNk=; b=K1MTA1eeK0CDTwozz3pVkJ5FywQk291I7FXuQTTYKLo61janutEu1X/qQkJF3SDm9C 531JfMiIzLvkM05JasIFGZXhoFkn1q074PUyIjD2A1fLwWkQvLLhwdduoDKgtegw0tZZ SJoQHZdzOj5AVxYCf3WvLkfwgsnyy2TwLjLDqdt0ZG0y9Gl58oMG8rnYYCcpir6khdqE EJGjFya0coWbskb7K8s778b2YjdTJh0CnDJYDQl/gDJhRrFAWQjftgBcjhQOjZnQGlZf 22kbMBCXuQnWFVqbA+jFfm9PS29iL37VSI3GGmGyH1mfo+5mcRfv17KLoLH7GceQvFfH 5MHA== X-Gm-Message-State: AA+aEWb/1e1xWDTGXsuaaB8l6NLPtVdqdW6BU+V8iJQCSv4HCDrQ967V nJqif7epeC5EPoTQtK7NG1wQP766 X-Received: by 2002:a50:8163:: with SMTP id 90mr6039514edc.174.1542812070864; Wed, 21 Nov 2018 06:54:30 -0800 (PST) Received: from localhost (pD9E511F8.dip0.t-ipconnect.de. [217.229.17.248]) by smtp.gmail.com with ESMTPSA id c11-v6sm5650397ejz.70.2018.11.21.06.54.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 06:54:30 -0800 (PST) From: Thierry Reding To: Jassi Brar Cc: linux-kernel@vger.kernel.org Subject: [PATCH 00/19] mailbox: Device-managed registration Date: Wed, 21 Nov 2018 15:54:10 +0100 Message-Id: <20181121145429.7582-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. 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