From patchwork Tue May 15 20:53:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 135928 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp27503lji; Tue, 15 May 2018 13:53:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpysz8VArmv63w4W/TjTorpiCD7KknOk5umPK2Ityey5siOjcTIei2oLounK3AKcw/sjr/w X-Received: by 2002:a63:b144:: with SMTP id g4-v6mr13406828pgp.253.1526417639629; Tue, 15 May 2018 13:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526417639; cv=none; d=google.com; s=arc-20160816; b=zAgdzEEn5pEeoEejUhDxCTqXejIKVpOcOJ2kBSm5DxLhGRyhshibtj+e5vhGiutpc7 tlTzk4XVb8KK7N0TWNZZJFzeMswWuov/XlFR+cu3RmgaeY8i4lMplgJ2oscDJmNvMQH2 rO+80Jb2xiQgWjvKMuUvFRebNcQXjPSWphcTOj2S5jVusUYEI/QU6b6BDi8zbKA+H3va NlLt1vWLAe1FnZz8p2RdHEizCE1/E0t8dkfgNW1o1g3OxIGSLXVRh2G1fLWJ5GFDZHt1 RyE1vCQogy8dFdrM2jxpB4uVrORn5mRVICiK7Zz8bao5jQliXiTX7LH0PEkzxIDBb3+n gONg== 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=46kw9Mj1UCpFUEiUKfwSsfcPZxqjrzROD8iBHkKEDiM=; b=rZdx/G7qgxEvMHdk5g0MrAVceLGCSGWvOSBOplNNXMrp4fWnxVTjj4CP7mN1jcGsk9 M8eZAcZ+xqed/ASrsid4DDmJMbYhR0zB14WOvQYhgLg47ycOCLgLv9EWCNOxNyFTBK5F cFkDovbJtzCiWH4phzdJwux0+D6VS5ffz6BKu5cWfJtmssge1MBY93LJ3syTQ3lVt+12 kRKKffILlKgBKa+9U1CUQY/Vb5lXkNiYljyyvkHFPdD8fjdFZHMGGgXMPiHCk4GA210G hPl0aausFWlkFhNKdY0LS66k+U4dw5f7ubmlGkjp/G2wxGqT7MO1YGZsx+1yAxBYBEzn oNbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XMZJP+mU; 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 p91-v6si841704plb.457.2018.05.15.13.53.59; Tue, 15 May 2018 13:53:59 -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=XMZJP+mU; 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 S1752588AbeEOUx4 (ORCPT + 29 others); Tue, 15 May 2018 16:53:56 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:40854 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752236AbeEOUxy (ORCPT ); Tue, 15 May 2018 16:53:54 -0400 Received: by mail-it0-f65.google.com with SMTP id j186-v6so5351150ita.5 for ; Tue, 15 May 2018 13:53:54 -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=46kw9Mj1UCpFUEiUKfwSsfcPZxqjrzROD8iBHkKEDiM=; b=XMZJP+mU+12Ur19lbu0vf3ewhZbDt6nkdrrPFK8EDlPZs03blC1//IKWiEDCMb7aGx cY59mibUg0IESsesliMiE1r9sj00h6sS48yFvHpbb53SvnZD6QbaPSf9PepKawZLpe7q Q1c8Rf1q1pxxhdCAz6lQK2rHH6pcuvgJuhNE8= 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=46kw9Mj1UCpFUEiUKfwSsfcPZxqjrzROD8iBHkKEDiM=; b=dsED+ypR10pI4MN8Z2qhz34F2ksjzwZlis4iaRF+0MiE43d8c0B47CxRUtIiivsJGi Y3Vc01vjCxFC3xYunQGt0HAEeHpmgPdP91okQhEciQ7FrW7/0ECEEjM5Dq9cbE54jEXC /VCR3d+nXRBvweGCrPMNek65xwFuenqFZl1mN8w9WA4DsVcSOAXNiqQNO/oig0z5nRLV 0uBkVSCvcux8l1Oagbw5G7YXCCgl3Eew7jsPfB91lN9Dz1YVM/nEt4gK/xSDb+rLpMjH XiDBFaeFztnWmzEvTEHtzenzI0tosiNjV95iwJHtVtzHHgnohTNsQELgIdCKPzwrsibB F3Zw== X-Gm-Message-State: ALKqPwfdDqtG7jJgd3TPaVG1HksV50KSEdNhK67xHXp+2wpizspIIjkA sUVkEOscs7T29tbIrKgelc49G9+YlYs= X-Received: by 2002:a6b:ad8d:: with SMTP id m13-v6mr16496429ioo.52.1526417634046; Tue, 15 May 2018 13:53:54 -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 t9-v6sm440407ioa.82.2018.05.15.13.53.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 13:53:53 -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 0/5] remoteproc: updates for new events Date: Tue, 15 May 2018 15:53:40 -0500 Message-Id: <20180515205345.8090-1-elder@linaro.org> X-Mailer: git-send-email 2.17.0 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 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.0