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: 9546293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 194A660417 for ; Tue, 31 Jan 2017 01:00:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1C9927FE4 for ; Tue, 31 Jan 2017 01:00:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3D432811E; Tue, 31 Jan 2017 01:00:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=2.0 tests=BAYES_00, DATE_IN_PAST_06_12, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CF8826E47 for ; Tue, 31 Jan 2017 01:00:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754437AbdAaBAP (ORCPT ); Mon, 30 Jan 2017 20:00:15 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:36041 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753681AbdAaBAO (ORCPT ); Mon, 30 Jan 2017 20:00:14 -0500 Received: by mail-pf0-f174.google.com with SMTP id 189so96347409pfu.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=cSz39SvGxSzW6z/vwBhBPnb5d52S0H96+Gr2nfrHoLUjG1CFHQjoMZTyjFSIUBJ5Qn FGaFpN1FYFe2+Rv1QhTKwRgLzE5OPb7ASPBH1dVWDhqGQ6C2n4SWNBGaCLmnGUsJxeRR UYqS/L+VHgdQMRbxlDs/O8M2PJaVbVPm6cZ05H6I1lcLKDQ7pVjHOnjFctXOPScOtld+ EV7g3bDDn8dieKEg7HtLBW324/Mcxqfs0Y38HnLZn7HgUFGScoVi8HotVB5AuBGRv/ar 6d5K+oyL0bFxh6EVG4TuuEpJtL9K9ePjDRVSAaImfCJjmhTO1dYia3Aml0Pky+qRxKTZ Ov3A== X-Gm-Message-State: AIkVDXKGNvaNOTEYbKC8GHvULJW79cc4xkkSMre0uAo18fiyRncJHNp9+ghBUAOj+mwGh935 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-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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