From patchwork Tue Aug 6 17:02:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 170675 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5959657ile; Tue, 6 Aug 2019 10:02:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPjs+ZJV0qzozuhWRmB2DLjQ0yOtUTPQvMKGc3HgR5JpkDGITNjd8MalvSu0IpixkjmZ2Q X-Received: by 2002:a17:902:110b:: with SMTP id d11mr4274077pla.213.1565110941353; Tue, 06 Aug 2019 10:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565110941; cv=none; d=google.com; s=arc-20160816; b=h7Ydk5vSWPhhzHyfnyYLHkqX2iT5llbPMAS+tho7bihc2TN8UI03VZG6IyxQ6bEFRQ b2EranuVZxB62OMEEgG+6k7sylOuPygvEDxT2IJwuRGQHRNx8oFa/46qhbBEHlZgVM2S eWc70SXRyAJpxkkpiDXEQnnE9uE9n89+9lblXo4VpzqeFRAFfmKcFqd/914qKeGiEjXj TuwxJ8RWQD6iyR9ZJdQAlwABRNBsgGHRplD6KIaYMXSGYiJlqcI9PHw1nKPjFfH05U6T XJZjhLu5R+uje86BJe3Wosxh7SU25YAkeaNxV+W/WiIk6smysKlwNEk1QgsQS9a0zT1m MbDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=vqqlc64yxJ46L1RcB+Z4E8jH4ceJjV/jYUqUm9iae3s=; b=ND04vZYEFiaeJtLcUcuRegAXNFNwb1DQ7NGIIZi1s0z+qSi2Z8m1dAD9ZmxkCwm+iy CFZUsMD46IF+oJwNHBOfvDZflvqgPaSctcsEyGR1BNsd/4j/EHdUVWCUBk4vjX6L9K// p0iui49N8VRvnpjNlWen/HfXQBn3QyaJ8+zbJ+SsvStjKavIm2/ZVaVab760PCh7J3np OXkrfHEmYkK565gaVGvNQgTty5k/Xcqe8eXuX457fJF/fc79z1mfzz3Q4FkkD7gsmQXw eSW1sGhfoiIdVtGsmBGyTSXsLBjrXqZmayxtbTf/1o83iOCdEStclcXJM6Tyvy/Owaco qQWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si15121549pjr.68.2019.08.06.10.02.21; Tue, 06 Aug 2019 10:02:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387782AbfHFRCT (ORCPT + 29 others); Tue, 6 Aug 2019 13:02:19 -0400 Received: from foss.arm.com ([217.140.110.172]:36984 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730505AbfHFRCT (ORCPT ); Tue, 6 Aug 2019 13:02:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3EB75344; Tue, 6 Aug 2019 10:02:16 -0700 (PDT) Received: from usa.arm.com (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 571DB3F575; Tue, 6 Aug 2019 10:02:14 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , Peng Fan , linux-kernel@vger.kernel.org, Bo Zhang , Jim Quinlan , Volodymyr Babchuk , Gaku Inami , aidapala@qti.qualcomm.com, pajay@qti.qualcomm.com, Etienne Carriere , Souvik Chakravarty , wesleys@xilinx.com, Felix Burton , Saeed Nowshadi Subject: [PATCH v2 0/5] firmware: arm_scmi: add SCMI v2.0 fastchannels and reset protocol support Date: Tue, 6 Aug 2019 18:02:03 +0100 Message-Id: <20190806170208.6787-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SCMI v2.0[1] released recently adds support for: 1. Performance protocol fast channels 2. Reset Management Protocol among several other features. This series adds support for the above 2. The code is based on the cleanup[2] and Rx/async/delayed response series[3] and is available @[4] -- Regards, Sudeep v1[5]->v2: - Changed the macro SCMI_PERF_FC_RING_DB to use do {} while(0) - Renamed RESET_ARM_SCMI to RESET_SCMI and reworded Kconfig text - Dropped unused struct device pointer from scmi_reset_data - Added to_scmi_handle which helped to remove some repetitive code - Fixed some doxygen comments - Initialised rcdev.nr_resets - Fixed MODULE_DESCRIPTION [1] http://infocenter.arm.com/help/topic/com.arm.doc.den0056b/DEN0056B_System_Control_and_Management_Interface_v2_0.pdf [2] https://lore.kernel.org/lkml/20190726134531.8928-1-sudeep.holla@arm.com [3] https://lore.kernel.org/lkml/20190726135138.9858-1-sudeep.holla@arm.com/ [4] git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git scmi_updates [5] https://lore.kernel.org/lkml/20190726135954.11078-1-sudeep.holla@arm.com/ Sudeep Holla (5): firmware: arm_scmi: Add discovery of SCMI v2.0 performance fastchannels firmware: arm_scmi: Make use SCMI v2.0 fastchannel for performance protocol dt-bindings: arm: Extend SCMI to support new reset protocol firmware: arm_scmi: Add RESET protocol in SCMI v2.0 reset: Add support for resets provided by SCMI .../devicetree/bindings/arm/arm,scmi.txt | 17 ++ MAINTAINERS | 1 + drivers/firmware/arm_scmi/Makefile | 2 +- drivers/firmware/arm_scmi/perf.c | 257 +++++++++++++++++- drivers/firmware/arm_scmi/reset.c | 231 ++++++++++++++++ drivers/reset/Kconfig | 11 + drivers/reset/Makefile | 1 + drivers/reset/reset-scmi.c | 126 +++++++++ include/linux/scmi_protocol.h | 26 ++ 9 files changed, 663 insertions(+), 9 deletions(-) create mode 100644 drivers/firmware/arm_scmi/reset.c create mode 100644 drivers/reset/reset-scmi.c -- 2.17.1