From patchwork Tue Jul 14 19:50:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11663435 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F07C6722 for ; Tue, 14 Jul 2020 19:50:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D79F422B51 for ; Tue, 14 Jul 2020 19:50:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KSymSSKd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729229AbgGNTui (ORCPT ); Tue, 14 Jul 2020 15:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbgGNTuh (ORCPT ); Tue, 14 Jul 2020 15:50:37 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4510C061794 for ; Tue, 14 Jul 2020 12:50:37 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id t11so8013307pfq.11 for ; Tue, 14 Jul 2020 12:50:37 -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:mime-version :content-transfer-encoding; bh=kBJuLgP6wmV5hW1d8I07AWIyxZtdhu1kC6fJyMZfmXA=; b=KSymSSKdQOVrflKQG86mqDePMsbu+RSK95GaMCjUwVLoRDXYRTiTwpU3YaFKHlAFfr ZrGmM9tRixjEmzsBGv+yMmpBJPL0TBWnz8KOvrtHcB4VPZnjiMzbbNgmTdglUMPKy6LI 8mGHrFWSX7s3wluZNRpRYYs8yyRYXP9s8yjbAHFNp7Ssj0626ZGK2qaAQcN/6Z4cF2mM Lpr65Od66NHGgi+oxB2rEun8Lv+wuTAxQMlpXQ9vwYy/p0glfyLDW8cVICVVEsXqoBA0 BmUPMTGAi2AhhqH1ybo/IezmrKtzLJW9suCvTfucwFnQMe59GgQZvui/ORWu0hHFnjT8 yKxA== 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=kBJuLgP6wmV5hW1d8I07AWIyxZtdhu1kC6fJyMZfmXA=; b=OduhmdQF1faOq3HtJRa0bhEAqsf2J261al6MjjHBBhTpvIY+VpHRUNXhTifh2by+rH ZMSHjsBqdRaI5cwZvWJ7nu0ToHJG5P7FGel78eUaQDyDF4a7qly3KvcNxcDDX7tRzVs4 CD8RE5MFevPVB3NaIHJPlgtY/DBw8kLi437MSGTdV2FP2m185DkVmqCUwroNVOwj5dcQ fc+mybJsEjIJ/4c0/MLcEJYBzSjs4w5/IWOIa5+uSH4zweUPB7ylMeQTRcgUQWXYR21E dLTiHgEpZqcKlZY4Vb3NG5IaCwBcRbVaO6hu4ee145CTJztyi3MXI181VTRYbzXhWLgK NShA== X-Gm-Message-State: AOAM533i1cFh+EIHyCRPV0s1ClLGlN6qixblJFJCrUAvdx99yWb1ShRB CYdzU8CoLCnRe2buawczME/OZA== X-Google-Smtp-Source: ABdhPJwm/lndK2qNQAC1umQRfwvJaHpzS2KAY/BT0ybc3nozyRnHgCSMuMsASMmhV7k+Zjing9plkg== X-Received: by 2002:aa7:9a03:: with SMTP id w3mr5476793pfj.228.1594756237404; Tue, 14 Jul 2020 12:50:37 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id g8sm16736689pgr.70.2020.07.14.12.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 12:50:36 -0700 (PDT) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/9] remoteproc: Add support for attaching with rproc Date: Tue, 14 Jul 2020 13:50:26 -0600 Message-Id: <20200714195035.1426873-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org This set provides functionality allowing the remoteproc core to attach to a remote processor that was started by another entity. New in V6: 1) Added Arnaud's reviewed-by and tested-by tags. Applies cleanly on rproc-next (0cf17702d872) Thanks, Mathieu Mathieu Poirier (9): remoteproc: Add new RPROC_DETACHED state remoteproc: Add new attach() remoteproc operation remoteproc: Introducing function rproc_attach() remoteproc: Introducing function rproc_actuate() remoteproc: Introducing function rproc_validate() remoteproc: Refactor function rproc_boot() remoteproc: Refactor function rproc_trigger_auto_boot() remoteproc: Refactor function rproc_free_vring() remoteproc: Properly handle firmware name when attaching drivers/remoteproc/remoteproc_core.c | 213 +++++++++++++++++++++-- drivers/remoteproc/remoteproc_internal.h | 8 + drivers/remoteproc/remoteproc_sysfs.c | 17 +- include/linux/remoteproc.h | 9 +- 4 files changed, 230 insertions(+), 17 deletions(-) Tested-by: Peng Fan