From patchwork Mon Jan 30 16:47:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9546249 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 AD60360425 for ; Tue, 31 Jan 2017 00:46:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9123A26E1A for ; Tue, 31 Jan 2017 00:46:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8308228372; Tue, 31 Jan 2017 00:46:30 +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 E0D9B26E1A for ; Tue, 31 Jan 2017 00:46:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753711AbdAaAq2 (ORCPT ); Mon, 30 Jan 2017 19:46:28 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:34505 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754536AbdAaAq0 (ORCPT ); Mon, 30 Jan 2017 19:46:26 -0500 Received: by mail-pf0-f180.google.com with SMTP id e4so95695118pfg.1 for ; Mon, 30 Jan 2017 16:45: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=wsVHpN8Civ3vGaQiyW0NaeB1NBVDLKsWXokEOkqyjv0=; b=C9x43/cjEx+/Es/UpiTQeOGLgufgZfK9iE1rIM5sdeI8yh11vSI9WmhEHAWs/95Pso Kr2oqB3IT1UszKa3Ss/14DGquOOYH94R1YtPsIyY5MeSxf2WrW1nrKrJmuD4Jt5E98RQ ZMf1Zp2Cs78PLEIiDsWV8iPpNg5LVXHPGQpKY= 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=wsVHpN8Civ3vGaQiyW0NaeB1NBVDLKsWXokEOkqyjv0=; b=e7UV/nUxQWb7qQMKqBq6FJkJUAgdiaybO6/XQPBsqH5rBnzNHodOw7vHIuuqdi9Gn2 WP+DEpAG2gTWS3eBjTlq0igFO33DvQBFoFRjNYqsoCcm/xdeqvtyDaSmEMQCEahl9lt2 fqZQPw3kbrPoIAh2e+9Fs7ebpIRDfdhpWsTzpqQyOua/6hOAYjkelv1yWZEGTZk+VULj 5BFuCrk+IPUJnKBtd4lK62JIm0RSobBOw1l9ygDna6TKtUj3JyGiu90bDFh7i0nKgEjT JjRimJBsb5mTAaOku0eEoCvHxXc7mEw/6X59+F0gut4XC/u+Zg5cglURrKCDyPK/xwDc sDKQ== X-Gm-Message-State: AIkVDXI2O72ZYIdtlbd9KngLqg6DrD3QRDcuKczYUIyYRBOttRy8eySUV92INjh6sIIx1yGb X-Received: by 10.99.52.11 with SMTP id b11mr26823814pga.131.1485823556741; Mon, 30 Jan 2017 16:45:56 -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 e7sm35112551pgp.2.2017.01.30.16.45.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jan 2017 16:45:55 -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, Avaneesh Kumar Dwivedi Subject: [PATCH] remoteproc: qcom: q6v5: Remove mss supply from 8916 Date: Mon, 30 Jan 2017 08:47:06 -0800 Message-Id: <20170130164706.4155-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 The Q6V5 in MSM8916 doesn't have a mss supply, so remove this and update the code to support cases without proxy or active supplies. Cc: Avaneesh Kumar Dwivedi Signed-off-by: Bjorn Andersson --- drivers/remoteproc/qcom_q6v5_pil.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c index 9a5149573298..79a8a371a2fb 100644 --- a/drivers/remoteproc/qcom_q6v5_pil.c +++ b/drivers/remoteproc/qcom_q6v5_pil.c @@ -160,6 +160,9 @@ static int q6v5_regulator_init(struct device *dev, struct reg_info *regs, int rc; int i; + if (!reg_res) + return 0; + for (i = 0; reg_res[i].supply; i++) { regs[i].reg = devm_regulator_get(dev, reg_res[i].supply); if (IS_ERR(regs[i].reg)) { @@ -1036,14 +1039,6 @@ static const struct rproc_hexagon_res msm8916_mss = { }, {} }, - .active_supply = (struct qcom_mss_reg_res[]) { - { - .supply = "mss", - .uV = 1050000, - .uA = 100000, - }, - {} - }, .proxy_clk_names = (char*[]){ "xo", NULL