From patchwork Fri Aug 11 13:30:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 109871 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp918694qge; Fri, 11 Aug 2017 06:31:44 -0700 (PDT) X-Received: by 10.99.126.86 with SMTP id o22mr15174110pgn.384.1502458304249; Fri, 11 Aug 2017 06:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502458304; cv=none; d=google.com; s=arc-20160816; b=DmJQa9IP2zEJKyPHeJ+QD9ioffueS7EW6rxvJaNM+MLrErTUJfUa97Wdyi4Z/N05kF iB5mbmzLS3dhtEyydz/+GOg6xWhwrN4MqlxafsBFYurZt1kvdUfqBbizwkTiTdbClNuv m7ZsHCcGyPdyU4lSqbH4hY2MJisiNv+g5n/iqT4e4oGGhGiaXdPiZfBRTKVY3Ch57xAy C2/5CxQ18e/DBBP81RkQh1z4gs9XYPGeuiJ2+hmGuW8kSxg9d5CMr9SGPncGwEpmpWwh X3aC5JUEmL7PCxUy3eJSrH322QoZNLLwZSP1R4JuFNfETSXytgzbBIboBPW5AZ9dSyyl p1bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bXILtKEmyAQIi5Aszz+HXhRa/FydKX+JlPKvR2k/RtQ=; b=sbbkbOhOloGey+wZgpXINhsNmmOHxreogROpify9YIYLfpmDWwEqrZIQfzvbMNCvtt cf2ALzcZBsuqnEuSqUyMwQTpJJqq/bHqPQMY3DVKxlPd9LhtoCe+wMBxYlf5nR+ozBI4 +569u5IIiG7nZ8EvfWL6UcI2+wTTFVpQrGhHTevxt4aqKTJTI1Gdwg+sZhMWfXvhcpXP J6UXZe4QKRviLIyIJo9WkGbbD0YsrXOb6gVesEZXks1JNpZju/Y+Fbz5NzRv/DHTt5wD I6gDbcAdwq9ESsl3anlLthT6tgg/0AvrJQwr2zs8pKxARfs7Of2YhiiOJoDxsBiAO6xR yk6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si493039pgn.850.2017.08.11.06.31.43; Fri, 11 Aug 2017 06:31:44 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753451AbdHKNbk (ORCPT + 25 others); Fri, 11 Aug 2017 09:31:40 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:44556 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbdHKNaV (ORCPT ); Fri, 11 Aug 2017 09:30:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7C4CC13D5; Fri, 11 Aug 2017 06:30:20 -0700 (PDT) Received: from e107155-lin.cambridge.arm.com (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id EDB753F540; Fri, 11 Aug 2017 06:30:18 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: Sudeep Holla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Arnd Bergmann , Andy Gross , Jens Wiklander Subject: [PATCH 0/3] firmware: of: populate /firmware/ node during init Date: Fri, 11 Aug 2017 14:30:34 +0100 Message-Id: <1502458237-1683-1-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Arnd, Recently Rob pointed to place SCMI device node under /firmware/ node and when I did that, I observed I had to populate the node first to get scmi node populated. Some research showed qcom_scm and optee drivers handle it in their own ways. This small series is to make it generic so that all the users of /firmware/ node need not repeat the same. Sudeep Holla (3): firmware: of: populate /firmware/ node during init firmware: qcom_scm: drop redandant of_platform_populate drivers: tee: rework optee_driver_{init,exit} to use platform device drivers/firmware/Makefile | 1 + drivers/firmware/of.c | 34 +++++++++++++++++++++ drivers/firmware/qcom_scm.c | 24 --------------- drivers/tee/optee/core.c | 74 +++++++++++++++------------------------------ 4 files changed, 60 insertions(+), 73 deletions(-) create mode 100644 drivers/firmware/of.c -- 2.7.4