From patchwork Tue Oct 9 02:08:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 10631763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 21E1F3CF1 for ; Tue, 9 Oct 2018 02:08:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1126029EE3 for ; Tue, 9 Oct 2018 02:08:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0518A29F32; Tue, 9 Oct 2018 02:08:17 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable 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 E195F29F31 for ; Tue, 9 Oct 2018 02:08:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726855AbeJIJWs (ORCPT ); Tue, 9 Oct 2018 05:22:48 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36762 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbeJIJWs (ORCPT ); Tue, 9 Oct 2018 05:22:48 -0400 Received: by mail-pg1-f196.google.com with SMTP id f18-v6so20135pgv.3 for ; Mon, 08 Oct 2018 19:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q4Qgab7AmHkTyy8csV/4RxB3lFjUcgy6P9FGnJqaXYA=; b=fOddjQEuBpJT55aExzSpljO58wMsDoIvz+B1mmuPRSm9TNAWomDbWD+CemFOKNAD5V 0p/ZDCuI+z2qSgBuOpno9PEChLyEZc12xxP57gCkbYYvHlUL1s3ORR2s5OYKddArxyOr 1/oIdAsRSiQ2skddp5b085l+C0K56QC00hpbI= 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=Q4Qgab7AmHkTyy8csV/4RxB3lFjUcgy6P9FGnJqaXYA=; b=GMsmAm97Jr+iMnqDR+LsDvyZFjIFG/V+SrCmkM6ecyQkQzVzqS+3g1CQls2cpZP9G9 IaOQUp3R+ZU84JNsF79sPTXJvqXBuvFD1d8XQ1mIpIJ+utViNK4mV60jChaAEjmUnU9V JFnynMAOP3U3UE8UNIKGj3bdUQKzH+alCTWlL0C3/twxz7lKmqDJOqIsFEzNsqjZAWwh PJ5RKOuXh+OQfqn6ZQ54OENNpacPG7sIt5mul3XHf3IInmZ43HyF3lvUDr7voTAgfTdA Wm2jUYOqq+5ZR+16hjnttOxB8/J40mxMWN01IyjuuefL+LJetWAwQEZIi5+W1IHSulee w5ew== X-Gm-Message-State: ABuFfojh0zXkIpA82ZBVGMUVv4Q7x3LYi3Dvaohnq176kv57bLFR76px 0Q2hR8stegx2q6n9v8/FBx/t9A== X-Google-Smtp-Source: ACcGV62ms6ZmYDM/7ErfbLCxh+GSY8BSzTKOZWPojz3L/YHfjUexzbw1LpBqmWTGc6TeuCn7gHjNZw== X-Received: by 2002:a65:5188:: with SMTP id h8-v6mr23553812pgq.288.1539050894080; Mon, 08 Oct 2018 19:08:14 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:299d:6b87:5478:d28a]) by smtp.gmail.com with ESMTPSA id i29-v6sm33757230pfj.82.2018.10.08.19.08.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 19:08:12 -0700 (PDT) From: Brian Norris To: Ohad Ben-Cohen , Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Brian Norris Subject: [PATCH] remoteproc: qcom: q6v5-pil: add SCM probe dependency Date: Mon, 8 Oct 2018 19:08:05 -0700 Message-Id: <20181009020805.143982-1-briannorris@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.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 Similar to qcom_q6v5_pas and qcom_wcnss drivers, probe will fail if SCM is not up. Signed-off-by: Brian Norris --- drivers/remoteproc/qcom_q6v5_mss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index a839b07a58b1..8836ca1bc0c1 100644 --- a/drivers/remoteproc/qcom_q6v5_mss.c +++ b/drivers/remoteproc/qcom_q6v5_mss.c @@ -1151,6 +1151,9 @@ static int q6v5_probe(struct platform_device *pdev) if (!desc) return -EINVAL; + if (!qcom_scm_is_available()) + return -EPROBE_DEFER; + rproc = rproc_alloc(&pdev->dev, pdev->name, &q6v5_ops, desc->hexagon_mba_image, sizeof(*qproc)); if (!rproc) {