From patchwork Tue Jun 26 12:11:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 139978 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5162046lji; Tue, 26 Jun 2018 05:12:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKg+1Sqyw4xbA1qGl92rf+rxon+++m/j3HfaLOp9dRaEwQm4VhP3n+QrckC+EYpkeMQGMe8 X-Received: by 2002:a65:608c:: with SMTP id t12-v6mr1177851pgu.159.1530015141271; Tue, 26 Jun 2018 05:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530015141; cv=none; d=google.com; s=arc-20160816; b=E7HOnKJTQdpwEOscif4V9twnbmuMbZykL/6Dy8RBboqCF43+PmjXh88WmFcQ2oUouN R5VM2A/fi8JE8C+E55PjPrzYuY0HA0teKzHbJoVOL0Lj0nFvCBre2b6+DP/wbQmHmFEH uLMZ7dLfPZlL9DGI5zhlUVszeo7t/Q3kPcYbOQJRFjhHA5h0jf1o2AATmGZanwPQRX/b wxVaIpd0afj7YOzuqcPD9NGglOI7SicItSlmebJ7RGh3JPuXsUDxnwQFSlFa5FcaJaMu Kpm2y21WPxWoyaa/OxEkCENSDoKj+zAl6NWig1DzN02irQ2ca5LuXZpO1G34xroLt/aH mA4w== 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 :dkim-signature:arc-authentication-results; bh=PXQzNArJfkxCBSg3EF8tKApL19MftY9aSg0RoaQmDJc=; b=SoHH5j8TMkcfi8xLqrDiFIT1Vc1ODPmp49P15pDQDH0fqgOeNYom2dG37zH2LwmtYJ MpxYHjJcLwfz1nfp090Su98BIwd+vl8O/6i5psb+mb2US99ETHbzGo24W2VhIE6QIdU9 Lnfgt1DQ+4+6on4j/4YtIBjEy3s+MMhL8nE6U98pqvwmCyYSzPi1v6n2yqQHl5DlEREq q2a5jT7qAoqDs3RwwBnU7MXHV4iqRMeRQkw7qc7snhxlABdLDwMv1IWLO+yjeVqWLkSa 9NFSHO83xlg0M4jGZKTW3Ucp5zZRX18FniP7VtZxg+ys+K/ZDHxTPlJkhDhmlEpp7p+U MAsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pgkza05w; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cf13-v6si1760748plb.175.2018.06.26.05.12.21; Tue, 26 Jun 2018 05:12:21 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Pgkza05w; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935383AbeFZMMT (ORCPT + 31 others); Tue, 26 Jun 2018 08:12:19 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:46689 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934518AbeFZMMK (ORCPT ); Tue, 26 Jun 2018 08:12:10 -0400 Received: by mail-io0-f193.google.com with SMTP id u23-v6so12034574ioc.13 for ; Tue, 26 Jun 2018 05:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=PXQzNArJfkxCBSg3EF8tKApL19MftY9aSg0RoaQmDJc=; b=Pgkza05wtZ0S8TJs8qI5X3/ca2h1J9d+Db0vJTdmJXPS8aEmpRlKuVAUR6s42LBbCT yJ+RjEpzqkKyxVQ+266LfOcWiKyi82sC4peqzHqG0i0ZA/qqCLbBpvZ3rxz41WQQLPp+ VLYjX4br0LXMXqI2F0rbLkrqPSJwJ0GMpudog= 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; bh=PXQzNArJfkxCBSg3EF8tKApL19MftY9aSg0RoaQmDJc=; b=eMdzPqqt7ZLwS8cX3EA8+TbzoLLLK/rlQI58rVhwOmNVFcaGXOEBY4F2FX/twuiWTW bPnTNgisjwUnWM0CFjw/WUk1/ouRsZ7B04WALSXnAZ3twNTPKfh44Bs/aOFp/KNJMO+T bO+b0xIqipoWep6XB6Vt0eMrVbSCUAcrJ20uxt0wQADQpGLY80pfMKs5X6gnAxuWc4eg n7etcSeyqW+ActwUe0vV0iCUh1xipwmcZxOgyMMidxUO06MtnPAzAZV85Z8f1qQgHxlY wncokCNACvJffEOwsqAAkYQeLkFc3emsY+pGqBPgLvY+3N0fx8cHkhP8swuIXNmt1XPi 1UIw== X-Gm-Message-State: APt69E1o/5NiGNLM6L5/W2mX30pgvlmlVa+n1D2eZQqZ3X/IAT2ZSADM E93M6lCZJHkP+FmJPsFTSrlDzw== X-Received: by 2002:a5e:8c15:: with SMTP id n21-v6mr968875ioj.217.1530015129332; Tue, 26 Jun 2018 05:12:09 -0700 (PDT) Received: from localhost.localdomain (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.gmail.com with ESMTPSA id y62-v6sm902309ioy.88.2018.06.26.05.12.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 05:12:08 -0700 (PDT) From: Alex Elder To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] remoteproc: updates for new events Date: Tue, 26 Jun 2018 07:11:54 -0500 Message-Id: <20180626121159.7267-1-elder@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series changes the prototype for rproc_add_subdev(). The caller is now responsible for populating the function pointers recorded in the rproc_subdev structure, rather than having them be passed as arguments. These two existing function pointers have been renamed ("probe" is now "start" and "remove" is now "stop"), and they are now optional. Callback functions may now also be assigned for two new events (prior to start and after stop). -Alex v2: Adjusted signoff sections of patches as requested by Bjorn. Alex Elder (1): remoteproc: rename subdev probe and remove functions Bjorn Andersson (4): remoteproc: Rename subdev functions to start/stop remoteproc: Make start and stop in subdev optional remoteproc: Make client initialize ops in rproc_subdev remoteproc: Introduce prepare and unprepare for subdevices drivers/remoteproc/qcom_common.c | 26 ++++--- drivers/remoteproc/qcom_sysmon.c | 5 +- drivers/remoteproc/remoteproc_core.c | 110 ++++++++++++++++++++------- include/linux/remoteproc.h | 19 ++--- 4 files changed, 109 insertions(+), 51 deletions(-) -- 2.17.1