Message ID | 1476881472-13055-3-git-send-email-narmstrong@baylibre.com (mailing list archive) |
---|---|
State | Accepted |
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 56B0B600CA for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 19 Oct 2016 12:52:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48BC7299F0 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 19 Oct 2016 12:52:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B6B529A0E; Wed, 19 Oct 2016 12:52:09 +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 8AA73299F0 for <patchwork-linux-amlogic@patchwork.kernel.org>; Wed, 19 Oct 2016 12:52:05 +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 1bwqLh-0006uu-M4; Wed, 19 Oct 2016 12:52:01 +0000 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwqLc-0006m7-B8 for linux-amlogic@lists.infradead.org; Wed, 19 Oct 2016 12:51:57 +0000 Received: by mail-qk0-x234.google.com with SMTP id f128so32497486qkb.1 for <linux-amlogic@lists.infradead.org>; Wed, 19 Oct 2016 05:51:35 -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=hf/AtNajHvlbRsH6J9y8d/0FiqD815lwMLad64JLzrU=; b=KqlkN1b1TohYGpRCgOKQzq59EGxcG68e7zWnrgWWDNjIWtdUrWrgzsfON97z48M8JU 6pewwqrxXk1sm9ud5oPEilkQwo51Pv6XXPaGrPfxg6QQC3fykRkpeosHyjP2vwY/WXiP WHMffnc92hpLNOqqP/mKO6CXm78RlQBQB5lN6Q4TAnxn+OuKJNvqz5gEVBdpBx8rOKTt Z+CFA0H20lTmzZofSDvwsOtnt4GO9hKnqdn2U/VXUuxoFdA65/dsdfvpcGFv1unnXoGV C+Yay1WxIWQ4xVhujq/IfaYqrhn5z+gUryjn400yS3IDgYU09GLoMkTFqSc8VN8qN9ld 0zOg== 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=hf/AtNajHvlbRsH6J9y8d/0FiqD815lwMLad64JLzrU=; b=d/U38guY59UaN3dnxz4tuKNFYl/jxkRPx19bQB2KNdbSX1KJ8U6VW9d8SyzLXE9XAp 5X6f2eHofTMUBYgy/MzT10vVGBOhbO2T/bnwV4GDKJr0r8JLFjxWbxKqEYzcOcvuIOQy olfipkS3TLuW6iVCFoZMOh9AzzyBx2WlO1++cueZZRP5Fu21K2DuQG7gop95gevVeC6o NOWzO3DkN2lBSI2HRCJog3nE6ICTy4m3o+sSHU/566EAJgnVFPJ2O/hzIU/GSgJ1/t9P H4VwaRGgkoo1w4eyVgw1SiVOi2qfeYceLVQMc2tBwPjW8P/fDX4QufzCz2v4+7+5va+4 77Qg== X-Gm-Message-State: AA6/9RmvyQiyvnms9T/kLVT6hqVQ3QgJwB8KajGjRbM1udy8UqNJM/das2INQ5bvwuplU6kM X-Received: by 10.194.86.201 with SMTP id r9mr4246940wjz.5.1476881494723; Wed, 19 Oct 2016 05:51:34 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c7sm68947212wjk.19.2016.10.19.05.51.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 05:51:34 -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 v5 2/5] scpi: Do not fail if get_capabilities is not implemented Date: Wed, 19 Oct 2016 14:51:09 +0200 Message-Id: <1476881472-13055-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476881472-13055-1-git-send-email-narmstrong@baylibre.com> References: <1476881472-13055-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161019_055156_517006_8E8A4C4A X-CRM114-Status: GOOD ( 10.56 ) 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 2982bc7..9022336 100644 --- a/drivers/firmware/arm_scpi.c +++ b/drivers/firmware/arm_scpi.c @@ -783,6 +783,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(+)