From patchwork Mon Jan 30 17:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 92930 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1706720qgi; Mon, 30 Jan 2017 17:00:45 -0800 (PST) X-Received: by 10.99.239.5 with SMTP id u5mr27040949pgh.166.1485824445349; Mon, 30 Jan 2017 17:00:45 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si2590603pgr.186.2017.01.30.17.00.45; Mon, 30 Jan 2017 17:00:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754530AbdAaBAP (ORCPT + 9 others); Mon, 30 Jan 2017 20:00:15 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:36041 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753689AbdAaBAO (ORCPT ); Mon, 30 Jan 2017 20:00:14 -0500 Received: by mail-pf0-f172.google.com with SMTP id 189so96347411pfu.3 for ; Mon, 30 Jan 2017 16:58:57 -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; bh=9fha8mApcKlgYZZjLRhbXCO78WITNfmD0I0yp2ocbyU=; b=VQQFbG2XrqB6++hmmbK62Ygyi3lJNioxcV20A1cpcBE3p3r4GC0H+HsaiPY5nDkJkW b0Hhs1Kn1kmcX/4IZG6N71SiQkIrbD40LHXQul5dUKaBvCHxFQcvISw/UkLcxIFW3OEA o0O5H6n/LKs4nSijFtaqwBbhjAI5UmiO5TywU= 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=9fha8mApcKlgYZZjLRhbXCO78WITNfmD0I0yp2ocbyU=; b=N1wTj/mKqW5w3RtoZTAx3yDS8VknWLJrob6QrQKIPZCjGbRiyINiwC3g6Yf8Lfg7wC LCoTEH5/A60LtXj9w5tPMPCVNQ22KFWv3r7lJ3q4F1o5amNXWlHUA6aghGCKAbRi0BDt LLOBv9t4eu4UB4yN/A1zkbOdWNWuI5QdtEgMehcECj1yWfW5GxPehuuC+zBdWGB6Y3fE icgKbipR/79oKOfI6WErVGx2s6P89lLLgzQBNx9LO5d1fVBXfZFNdbhRYZbagzhaU4Cn lAaIfEf6WNBd+uyMTaUy1ixkHQsyTbqkd4Ci9n6qKIgqHRwYyuX43hWFmZYhjZF7MM3p /zmQ== X-Gm-Message-State: AIkVDXL8FZ/72IS8aiGS1H6xMJVVou80VpSe41zw49AVzZowWM62ooQ13gvXTNwCM/YtVtrc X-Received: by 10.98.209.16 with SMTP id z16mr26243494pfg.139.1485824337467; Mon, 30 Jan 2017 16:58:57 -0800 (PST) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id 75sm35456547pfp.80.2017.01.30.16.58.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jan 2017 16:58:56 -0800 (PST) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] rpmsg: qcom: smd: Return positively when not enabled Date: Mon, 30 Jan 2017 09:00:07 -0800 Message-Id: <20170130170007.4578-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Remoteproc treats the error codes returned from the stubbed SMD API as errors, but the fact that SMD is not enabled should not affect remoteproc's ability to start the remote processors. Signed-off-by: Bjorn Andersson --- include/linux/rpmsg/qcom_smd.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/rpmsg/qcom_smd.h b/include/linux/rpmsg/qcom_smd.h index e674b2e3074b..8ec8b6439b25 100644 --- a/include/linux/rpmsg/qcom_smd.h +++ b/include/linux/rpmsg/qcom_smd.h @@ -18,14 +18,12 @@ static inline struct qcom_smd_edge * qcom_smd_register_edge(struct device *parent, struct device_node *node) { - return ERR_PTR(-ENXIO); + return NULL; } static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge) { - /* This shouldn't be possible */ - WARN_ON(1); - return -ENXIO; + return 0; } #endif