From patchwork Wed Sep 7 15:34:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9319571 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 05231601C0 for ; Wed, 7 Sep 2016 15:36:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB7D4293DD for ; Wed, 7 Sep 2016 15:36:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0130293E1; Wed, 7 Sep 2016 15:36:40 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 93355293DD for ; Wed, 7 Sep 2016 15:36:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhetv-0008AO-DK; Wed, 07 Sep 2016 15:36:35 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhesO-00060Y-Eq for linux-amlogic@lists.infradead.org; Wed, 07 Sep 2016 15:35:03 +0000 Received: by mail-wm0-x22e.google.com with SMTP id b187so122488475wme.1 for ; Wed, 07 Sep 2016 08:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MJzl8dQvkvaEfcHJAk0WcsVXRDoii7BQcFH7QKWsX2w=; b=JZL3X/RWlGy1JFD7cLDVkxk49Rihac76uIB8ROw1TI+q1PhAw5oXAw0tDCQwkNUASN sQI0tMqEQo+TBha2nDwl4gFN+00Q1lzqSI9xLkW+IVtQZd6abGxHdm6RW2jX8YyK11Ct JimK6QJ8BGJVe7sjMhRHSPtg35FmA2X5/a92sKKCncVilx/WZeOYF9xb9Z2iKvcuo36W G0rYC4O34CW54S6VyrdCMY/AW6KMTDHovJR1kzaHgVgcuZmuJhoVUJwxJdmPIzcVoVGO ZMBfU4OecDWY3x/i/MYvYzCtw/8C9IkX+vcj3igdXIkJ7UjwjSyIAxtLSbQ0gpwXTvNS /Mow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MJzl8dQvkvaEfcHJAk0WcsVXRDoii7BQcFH7QKWsX2w=; b=jzk0wmBHgH1LbU8qbLRWe3dMUlTy0zIzIPUeaYPyVqwdPOGs2MN/H5GdaMcISRImkk EfsCCQ1IAzD9xcD1tijnGuLppEV3QRO7ome2kx0aST1SPIxx7X36MS4p2ibZlKUv7tq0 PaE2q4jLinFvdSOkbgAqGd3rwpuT8LZ4diBdSHqLZibNX3IOizFwFWxwT1ftO0crx3KI cyM+k34cdEacwNmQHRFMahvB0PCh1EeX+i06ValHEyvsqGQDro7edZWpMBN6hCw2XJjA kJmKt5h+FDg6aFBzOabyjmDPi8JhcPFi0v7HZqYgBeWqxey4cPJZRs0QIlB2Fo9Gn1pS Tp0g== X-Gm-Message-State: AE9vXwNlzgiipVMcJyQK35MTU6B/SGMeXYDEi/SS3LdAq5Lg3Nhj5Lrub3aW+NdcQ4faHRJ+ X-Received: by 10.28.103.87 with SMTP id b84mr4627853wmc.89.1473262478852; Wed, 07 Sep 2016 08:34:38 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q65sm4838480wmd.24.2016.09.07.08.34.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 08:34:35 -0700 (PDT) From: Neil Armstrong To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com Subject: [PATCH v3 5/8] scpi: grow MAX_DVFS_OPPS to 16 entries Date: Wed, 7 Sep 2016 17:34:34 +0200 Message-Id: <1473262477-18045-6-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473262477-18045-1-git-send-email-narmstrong@baylibre.com> References: <1473262477-18045-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160907_083500_848286_45C3F578 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: heiko@sntech.de, Neil Armstrong , frank.wang@rock-chips.com, khilman@baylibre.com, linux-amlogic@lists.infradead.org, wxt@rock-chips.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Since Amlogic SoCs reports more than 8 OPPs per domains, grow the structure size to 16. Signed-off-by: Neil Armstrong --- drivers/firmware/arm_scpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c index 60a76e63..b422ad3 100644 --- a/drivers/firmware/arm_scpi.c +++ b/drivers/firmware/arm_scpi.c @@ -68,7 +68,7 @@ #define SCPI_SLOT 0 #define MAX_DVFS_DOMAINS 8 -#define MAX_DVFS_OPPS 8 +#define MAX_DVFS_OPPS 16 #define DVFS_LATENCY(hdr) (le32_to_cpu(hdr) >> 16) #define DVFS_OPP_COUNT(hdr) ((le32_to_cpu(hdr) >> 8) & 0xff)