From patchwork Tue Jun 26 01:34:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 139907 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4639077lji; Mon, 25 Jun 2018 18:34:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ4gPUEemi2rIbpOA+mM6u4EFaA4PUJ1oGG7VCDEFfWzDUBLJV8ASxNsJyC18CUEungVuRR X-Received: by 2002:a63:68c1:: with SMTP id d184-v6mr1630385pgc.239.1529976858293; Mon, 25 Jun 2018 18:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529976858; cv=none; d=google.com; s=arc-20160816; b=wLjU5Z7G7MyHRbMpfCYZ2NND7fSwxsDyqq2W/q2lgowbSW1TLsCRC2H2vXFE0XaQZH z1KEL1D+dYedyRsOLXpcueJfPB5RrtDqTGpHvPD2WZ8hGcH6kdwi5onDTxCZ2UgkN5ac k82fHcmne+tEAHF0ox/YasxG9E9D2Ew1Kp3/84pQC50Bv0h3E5uJhsm/No/w2uOo9trI lnE78qdzo/zu6339ObWE0GuKnuE99iZBHnJ8oqblygoPtg2wfXdTmIOj6eRTTDOJflPs 6jaFcUEYYdysuFHEh49HnZuL1xpvGOwo8mEVS6k7ZFTcaqzkww7CjvQiZUdqUDSe4x0c 1FDg== 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=PSh1Rzot3lUzgw3FPECDqaF14PqS2j0O45XALMc+uo0=; b=a6nOf4JozmMKhZfavIvFGL4K+j3+67wYgJjonc2A8qD4h7MsGdodKPdiydS+l/PZ28 42nt9S2Khnkd7fk9PcyK9Kv6RPOoO1QJAsJBVaAjEJMhtVI2Sn3vlVciuNg2pKjwd0RW ZSM6tAIYF7Ik+B2j4ubEOjVEiwK5+spq98hkgG+hdMYtz+xbmPR3myvLZBOu8H7p2DQJ F0NU6kBhUoHV7P4Lvn4o9JZ6jOLuAY2mmgcA/AJtcdd4O7DDeHYeok09AqFbBkoJAy0B U/rlF7TnRZn7a6Hy0x/UTxsT65hAHSQH7ReDguEwOsltOVAYMsfSlm0+UsNWvHS8Ez4U SC0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VEUsTRqt; 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 c81-v6si409489pfj.138.2018.06.25.18.34.17; Mon, 25 Jun 2018 18:34:18 -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=VEUsTRqt; 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 S935204AbeFZBeO (ORCPT + 31 others); Mon, 25 Jun 2018 21:34:14 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:40059 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934694AbeFZBeN (ORCPT ); Mon, 25 Jun 2018 21:34:13 -0400 Received: by mail-it0-f67.google.com with SMTP id 188-v6so15157478ita.5 for ; Mon, 25 Jun 2018 18:34:12 -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=PSh1Rzot3lUzgw3FPECDqaF14PqS2j0O45XALMc+uo0=; b=VEUsTRqt9l3VcoDsqGVRGc8w6zCqs8BV/SlPKQmKf+vAOOtDSKmqwOPQXSZEA7ToQY TqiEziTEsyRzLLf88NtCEU19A5rppuBtnLQsc8Mnd68GyRsu3zagzcNnzlIcj/4XSApZ WzLyIjfwmBv7eELaVWRjsTjU4HYBO9jeZX3UE= 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=PSh1Rzot3lUzgw3FPECDqaF14PqS2j0O45XALMc+uo0=; b=CQlJImlzPanAs94cf+PvFPlbUa69yDCykDqfRWV6XDf0qR6VrcCB+4M0uguoaHU8NF 05N6+Kvy7U4Rsv9U2veWxwJMzqzj65m6OSa9cktJYgHxu54t9XKH66K4N+qPWR5m/x8C bTdF8lfxCdavMx57MmmgAY41Y7sxBnzxM0MeYSW6Zso6Dmq8ub2laRIbYg6us/RybU9h UgUT8p7rSdL1XRQfspZTYd1KnfAsIqVds+XFpivObKatirTx5kI3ZjUIRAqgM9Da/O/T XE8gsoEKSaPdWfwqMABGHLlOo1towNsO6xiORmlvwxwtYoNxHPQLhiE2nm39aAQMEtlZ v7+A== X-Gm-Message-State: APt69E0znCf99YCOGgmTPfAYoTDfUCHJtPN8I/546V5+AQScU1mii7TF GrAybS32e6GaPjisAZlfG3LV3Q== X-Received: by 2002:a02:4ac3:: with SMTP id s64-v6mr85958jad.93.1529976852404; Mon, 25 Jun 2018 18:34:12 -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 h62-v6sm184699ioa.22.2018.06.25.18.34.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 18:34:11 -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 resend 0/5] remoteproc: updates for new events Date: Mon, 25 Jun 2018 20:34:04 -0500 Message-Id: <20180626013409.5125-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 is just a rebase of https://lkml.org/lkml/2018/5/15/919) 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 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