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: 92923 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1703328qgi; Mon, 30 Jan 2017 16:46:29 -0800 (PST) X-Received: by 10.84.170.195 with SMTP id j61mr35869627plb.26.1485823589666; Mon, 30 Jan 2017 16:46:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d21si9777063pgi.331.2017.01.30.16.46.29; Mon, 30 Jan 2017 16:46:29 -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 S1754622AbdAaAq1 (ORCPT + 9 others); Mon, 30 Jan 2017 19:46:27 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:33077 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753711AbdAaAq0 (ORCPT ); Mon, 30 Jan 2017 19:46:26 -0500 Received: by mail-pf0-f172.google.com with SMTP id y143so96028840pfb.0 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=W/oekfh26IJ6VLC/soRgPfccF9+Us5GdnzN6cGlTRMBWWKsgVSpS4sGjOB0p0nPPPk h9BRW6nfQBRo7D0zqYAntXVA4MGniSftm1gAcjP79uEN0Qnykmm2K1ylKWmmeOwQUnt+ t8IMFkc20ZE7k+yM2Lh1dOkOEpveReOKArtC1ygrDxrpCeeQ5BmTVHM/ce+17ciUxXuQ n8oDLurtqOHiK2J15jSG2LXj6ISvSBaKqlRIFINRINHso1Rf8IpO3QdQU1dy0+zeAp4e MNox3Q+XNBl9n8BxW7XArXypuIR3Uif6p1gcfnGxEM/jUpcTwGsYmODiNlzbYDjALz1o LZYw== X-Gm-Message-State: AIkVDXJFJFaNtJnHmjZLgb0LNu2zSXvfTfQVCP/Xm7BpRel3HiXqrj0M6kErz51ZkAMWLha3 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(-) -- 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/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