Message ID | 1475652814-30619-4-git-send-email-narmstrong@baylibre.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> 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 536E66077E for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 5 Oct 2016 07:35:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4779D27FA6 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 5 Oct 2016 07:35:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BC3C28413; Wed, 5 Oct 2016 07:35:33 +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 D1D0527FA6 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 5 Oct 2016 07:35:32 +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 1brgjg-0001yy-4O; Wed, 05 Oct 2016 07:35:28 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brgiN-0000XI-Q9 for linux-amlogic@lists.infradead.org; Wed, 05 Oct 2016 07:34:13 +0000 Received: by mail-wm0-x229.google.com with SMTP id k125so250090599wma.1 for <linux-amlogic@lists.infradead.org>; Wed, 05 Oct 2016 00:33:46 -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=618ipphfG/B90SLTqDQLlMqS3vwD06SAnU+etra8IkY=; b=u1SNmkW1Gq+1Mtv5EUubApHhdUiVPs/myQHp81Z0NTHLCOGU+RvX2YuIed1Q27mhKR Uv7+r7+j81OoNM1MV7VuiW4zv8PyOrU77OXkkCQqKAsczjchCFI8UDBQ5sjjUnaoJ63y 6/G6k2pyu/8xhx52xR4jAWYiN4MGpNE36kJd1NO0/8zNV5CkimJVEnbuHXxMX4CNz0aN armch/RYZQNXld8b5MukautlHMRRTxFBLwpO2xhaklVw7Ugl3g/r2nJSSngiH/kmRGA4 /i29WaPOI8bq1dlkjQfJUpqvLRJDZzPkxyAgYXCLkP3SUd1exrI9s16WQdlHyDJioaKE swdg== 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=618ipphfG/B90SLTqDQLlMqS3vwD06SAnU+etra8IkY=; b=ir+t+WYjwV7VZ0+L4L6pxgIaCWw5ehDVvUZO17gedO7xwQHnrj1Zn0nnBpw8IX0sWU KFOl1Y+pnCrghZ06IQdzOQlHcR5Q2kCgoyKOEdTbMuzTLHWX6YjpPVqxZZe8FatJAx4M RSjaEF9/WPyqC3De2CJrWhZHkRNFoR19fDV0lKmc+MmH+9cgpOuf7MPe4JqU+3Eal8O+ spwSMyKjzreDR9iIjGJPXbI0rR7UuHd3OXXQPLvQerszlgvX+Zgg59qYEyUyvaCPNF5M BPD5vbCy0HnTvGRS7BBUkRBouTn6ytBlPivNQptar1iNRnhGwH+jT2782xX70U2Labnk UHnw== X-Gm-Message-State: AA6/9RkJedB1A2DsKV/ZkKrZibFwMBj6d8COhqJmV6uwShbHJhIvXkZLtkWGf8I/HvIfSjzB X-Received: by 10.28.210.21 with SMTP id j21mr7878142wmg.74.1475652824910; Wed, 05 Oct 2016 00:33:44 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 142sm7923866wmh.12.2016.10.05.00.33.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 00:33:44 -0700 (PDT) From: Neil Armstrong <narmstrong@baylibre.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com Subject: [PATCH v4 3/8] scpi: Do not fail if get_capabilities is not implemented Date: Wed, 5 Oct 2016 09:33:29 +0200 Message-Id: <1475652814-30619-4-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475652814-30619-1-git-send-email-narmstrong@baylibre.com> References: <1475652814-30619-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161005_003408_314726_0C6723B0 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: heiko@sntech.de, Neil Armstrong <narmstrong@baylibre.com>, frank.wang@rock-chips.com, khilman@baylibre.com, linux-amlogic@lists.infradead.org, wxt@rock-chips.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c index 6244eb1..1fb3bbf 100644 --- a/drivers/firmware/arm_scpi.c +++ b/drivers/firmware/arm_scpi.c @@ -807,6 +807,10 @@ static int scpi_init_versions(struct scpi_drvinfo *info) info->protocol_version = le32_to_cpu(caps.protocol_version); info->firmware_version = le32_to_cpu(caps.platform_version); } + /* Ignore error if not implemented */ + if (scpi_info->is_legacy && ret == -EOPNOTSUPP) + return 0; + return ret; }
On Amlogic SCPI legacy implementation, the GET_CAPABILITIES is not supported, failover by using 0.0.0 version. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> --- drivers/firmware/arm_scpi.c | 4 ++++ 1 file changed, 4 insertions(+)