From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3569CC433DF for ; Mon, 22 Jun 2020 06:28:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E6B125208 for ; Mon, 22 Jun 2020 06:28:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XpfBsbhe" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731265AbgFVG2I (ORCPT ); Mon, 22 Jun 2020 02:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731248AbgFVG2H (ORCPT ); Mon, 22 Jun 2020 02:28:07 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB29CC061795 for ; Sun, 21 Jun 2020 23:28:06 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id x202so14666342oix.11 for ; Sun, 21 Jun 2020 23:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bBeZtgAb2UNyQsPAk8bOgNUxMw9atU2V4z23o4bn6XI=; b=XpfBsbheJAYZrbK/j5IY5yMhOIOhPfZ/M7slKgD99C+U30Bca2GdZYM+IgyjfZqOcz NnjoH0pjO99FBV0xZt2hpJ7aRxXVxDTIW+I/CwUs+XoT78QKEuJHMD1dW753BAM+O6u+ kzxY2NsU0JUIoAYg1OgG8X1xz5Y+xs5dxq/KzRBIi2uUKzdTQZQkU++y4+yoGIvqWLqp jwvlpBx0J6POiXhKB/tnBZvK3jfJholo08tKIVzSfuBLDMKH6BwO3p6Bb5X/VB6gEfFW nnWEafuX5l10Fa5JUJrQJo0klSUaflvs5rptLLwNEgE8PWWxeRkPw54LIbvprajD3cbz U3NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bBeZtgAb2UNyQsPAk8bOgNUxMw9atU2V4z23o4bn6XI=; b=XwIn7GcEzS9igaTMk7sIliRWw/zKFsUNYEZhuExHE8UTKXlYyhcpJhAlg1MVd0W+z/ BT0gceSZ5Nfpd7pdpgthKVw9r5KqdrGsnmqM5WrrDvtMRlgz+V8pnDFAzg5YAXJLWh6d +vI8jDkTLQISrHy9rzT23C9Ac/fbToHU/WTWPU9dRqtEykFxrmKP+y2XuFzzkD/RCX7K 0MQgRFPKqu8+6DITqgefK9o+Ag9zmHIOKQZkwRMn7SMd2tpB6c0+56kgcaqH5+kuXVqD QhoR/PDIinJA64XHFMOhObm9zh5EhqMOixuxj13tHQTfe0ZFYIOFfl5ssvRLXEEUzBwM 9wug== X-Gm-Message-State: AOAM532WPMkVH3DQtZq5xQJyVX/lvCMYymGBzv6F1eRuTShuxHVPJMNU XS8JosHUpiC2AL7vOaUezUh6ng== X-Google-Smtp-Source: ABdhPJx9x//osLbnYbR5OAnNACxidGIX37VhvaHF67pUSeaNzIOWnZGZ+S4wjOC6Rbzpp5uBkUCKUQ== X-Received: by 2002:aca:c203:: with SMTP id s3mr11807861oif.95.1592807286045; Sun, 21 Jun 2020 23:28:06 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id w1sm3237052ooq.1.2020.06.21.23.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 23:28:05 -0700 (PDT) Date: Sun, 21 Jun 2020 23:25:19 -0700 From: Bjorn Andersson To: Mathieu Poirier Cc: ohad@wizery.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, loic.pallardy@st.com, arnaud.pouliquen@st.com, s-anna@ti.com Subject: Re: [PATCH v4 1/9] remoteproc: Add new RPROC_DETACHED state Message-ID: <20200622062519.GB149351@builder.lan> References: <20200601175139.22097-1-mathieu.poirier@linaro.org> <20200601175139.22097-2-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200601175139.22097-2-mathieu.poirier@linaro.org> Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org On Mon 01 Jun 10:51 PDT 2020, Mathieu Poirier wrote: > Add a new RPROC_DETACHED state to take into account scenarios > where the remoteproc core needs to attach to a remote processor > that is booted by another entity. > > Signed-off-by: Mathieu Poirier Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/remoteproc/remoteproc_sysfs.c | 1 + > include/linux/remoteproc.h | 5 ++++- > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/remoteproc/remoteproc_sysfs.c b/drivers/remoteproc/remoteproc_sysfs.c > index 7f8536b73295..8b462c501465 100644 > --- a/drivers/remoteproc/remoteproc_sysfs.c > +++ b/drivers/remoteproc/remoteproc_sysfs.c > @@ -71,6 +71,7 @@ static const char * const rproc_state_string[] = { > [RPROC_RUNNING] = "running", > [RPROC_CRASHED] = "crashed", > [RPROC_DELETED] = "deleted", > + [RPROC_DETACHED] = "detached", > [RPROC_LAST] = "invalid", > }; > > diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h > index e7b7bab8b235..21182ad2d059 100644 > --- a/include/linux/remoteproc.h > +++ b/include/linux/remoteproc.h > @@ -400,6 +400,8 @@ struct rproc_ops { > * @RPROC_RUNNING: device is up and running > * @RPROC_CRASHED: device has crashed; need to start recovery > * @RPROC_DELETED: device is deleted > + * @RPROC_DETACHED: device has been booted by another entity and waiting > + * for the core to attach to it > * @RPROC_LAST: just keep this one at the end > * > * Please note that the values of these states are used as indices > @@ -414,7 +416,8 @@ enum rproc_state { > RPROC_RUNNING = 2, > RPROC_CRASHED = 3, > RPROC_DELETED = 4, > - RPROC_LAST = 5, > + RPROC_DETACHED = 5, > + RPROC_LAST = 6, > }; > > /** > -- > 2.20.1 >