Message ID | 20171213224111.17864-9-bjorn.andersson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6064374qgn; Wed, 13 Dec 2017 14:42:25 -0800 (PST) X-Google-Smtp-Source: ACJfBotAvYVcUVH4em86eigr88q7EsMYb9VuHG5cg4nbLU4EhcoDoQ+SXGnjHM473MOn5cUzm7tp X-Received: by 10.159.230.16 with SMTP id u16mr7385520plq.41.1513204945309; Wed, 13 Dec 2017 14:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513204945; cv=none; d=google.com; s=arc-20160816; b=dYxSBGypweMJ/odacrbAZjCRcbPg/Lk9TzcH4NIqXTQLjZgQZ/uBP10Lg7Gq6uudxN PCp6OKwQxy6l7xescgGZshRdKWg916+/Wo7iZ2x8AnNjNCd6Sc+Ynwj/4/09sKqLb2uh bUmigNy+N/7w1ZuCS2xOdhrTL+uNnsrI6sy4b9kmcoGyQFsiAbZOoxh94IZj1AyTec/d nAJ2b51CRQwhMPufWu/jKCXfI+fzjIURLSiJiHXhCPhCFc3LiZVjEZ5EtQ/0Fs2SYwQJ sRhc/mJlQy7P9LB0GzzaT65F+1FVAIToMJJ0290rjzKV66UAdtEGnZHrA4ZfVU425aIc GxCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=lyeeivph6fo9yKXJxQ+ouvVRR51z7KpFpnIT45BPY4M=; b=ky1nQ4bruQjzizdPoZYvzXpbq9/8QuDTj0qwHYepLQMAb35HMMd8/fbooZMx/IrCzy tit71ddMQDj6W7hnks9768EvPGKqVdd7VZKullJCI4RrBZ4LETJGNw3umSbyQW6qBhyo 4zDTrposPPYgEsFAtOYfIWN3p0eesJthLwjGC5FIUwDGx5we+2ptoDwdMvTTtxcwkgS8 TDGaQibswxirMgr1+r5qfsZBoOhFFTFJj8RYVqbV9ERXpAHjr+zNSTlSNXVe+1pH3gPS 1w/L4DKlp4T/g+a5BeC3Fq8JX2N64prm6c45HGKgHnyRTNCZ/cgMjl6X1/jeTGcw8+JT LyVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VmqLxrVP; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si1873271pgr.469.2017.12.13.14.42.25; Wed, 13 Dec 2017 14:42:25 -0800 (PST) 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=VmqLxrVP; 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 S1753131AbdLMWmI (ORCPT <rfc822;georgi.djakov@linaro.org> + 23 others); Wed, 13 Dec 2017 17:42:08 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:43821 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752936AbdLMWlZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Dec 2017 17:41:25 -0500 Received: by mail-pg0-f65.google.com with SMTP id b18so2050101pgv.10 for <linux-kernel@vger.kernel.org>; Wed, 13 Dec 2017 14:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lyeeivph6fo9yKXJxQ+ouvVRR51z7KpFpnIT45BPY4M=; b=VmqLxrVPRO+SstG6Sd+ICy8p/+XMUEoAIrsNjf67hObtasfTswhrFvvONKSjhRR1YC sbdmcqf1982/sBi3qHffuwoki7oWYhzbZJRLakxi9ZXVlgCyFCtLXKBx87arRh5IcuQB 7AopeFmzZx67QxyidvT2UYd1pzoguAI4VJNtc= 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:in-reply-to :references; bh=lyeeivph6fo9yKXJxQ+ouvVRR51z7KpFpnIT45BPY4M=; b=MMJVbz8Yz1FdS+ctNTDXFjocUmDcbuvKZStnSOJ3DNdnV1lR8po698oF7VauGN7CvL xa15rxms/UjaYuRXzdsAXnomtFHzKejf9IYltARvyp46knF3SpT5QP1h/jM7fGWoWdmn 3f0ND7mHfY4pRlGLPlY49slr7JrwWqBmLf/ROPhkoZJnsti1h3uC4X/RUOo6vKd0e7BW g4Acn0FWin4sCqTLri3bCBdHiROZj1v7IxtR43zQJkJCgVelucqgJs4Ujdn5jWBoYkgu Wr5jbIPkdy0eSU/jkSkbVLpEe5rsyLz53gNLMZ+vD0/qFAP1wqlyuNOh8stv7RUjn3hm MpXg== X-Gm-Message-State: AKGB3mIyc237Rc1pt5/eJXUopRyZb9LvUp0q9hvFk0QBeYuEA06gSTmG 7mJUGwqQ6wNOPJBUCTSoHlVFBA== X-Received: by 10.159.218.12 with SMTP id v12mr7505850plp.224.1513204885091; Wed, 13 Dec 2017 14:41:25 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id x15sm4464205pfh.27.2017.12.13.14.41.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 14:41:24 -0800 (PST) From: Bjorn Andersson <bjorn.andersson@linaro.org> To: Ohad Ben-Cohen <ohad@wizery.com>, Bjorn Andersson <bjorn.andersson@linaro.org> Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] remoteproc: Reset table_ptr on stop Date: Wed, 13 Dec 2017 14:41:11 -0800 Message-Id: <20171213224111.17864-9-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171213224111.17864-1-bjorn.andersson@linaro.org> References: <20171213224111.17864-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
Remoteproc cleanups
|
expand
|
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index cbd12382b219..98c088d80b3d 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -1000,6 +1000,9 @@ static int rproc_stop(struct rproc *rproc, bool graceful) /* remove any subdevices for the remote processor */ rproc_remove_subdevices(rproc, graceful); + /* the installed resource table is no longer accessible */ + rproc->table_ptr = rproc->cached_table; + /* power off the remote processor */ ret = rproc->ops->stop(rproc); if (ret) {
The installed resource table is no longer accessible after stopping the remote, so update table_ptr to point to the local copy. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> --- drivers/remoteproc/remoteproc_core.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.15.0