Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35A11C7618B for ; Fri, 26 Jul 2019 13:51:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F40E722CE5 for ; Fri, 26 Jul 2019 13:51:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="otv6FS88" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F40E722CE5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=1noruTrl7Q8eqSwuiiBtQZpUEWYSiT/nyuDbHA4onzQ=; b=otv 6FS88WrA87L6l6Bx+4Usfn3H4JFdbcAa/g7QKvzbAb+UtfAc6PlTkXftwWPaLcjUdg53IOC7jYxlO tFk6mCF+cLs9rMCkyWaf9958Ug8Dh4QRm65e/GyHbFPE+gMUu3D72chXuWsepNtqzFmGQl9j9Qior bTTuDhOnRgx0hUMHHQawi2FfXngbIjNeTFk+2PR4buXFGcX0W1XxQD2GvDMcYgTWuabS+zeXGzAMT 4yr1CJ5+hhGVnathEoeZrTbH4KmqcjdVR0/FcdUO1+P84OFohH3/O+ZqBip9qKIEJHqzRWoSUgd9b J3IxiE31f9YRifxamFNQenBJZSrTbmg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hr0dT-0007ZA-Go; Fri, 26 Jul 2019 13:51:51 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hr0dQ-0007Xy-13 for linux-arm-kernel@lists.infradead.org; Fri, 26 Jul 2019 13:51:49 +0000 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 F353A337; Fri, 26 Jul 2019 06:51:46 -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 B9A383F694; Fri, 26 Jul 2019 06:51:45 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 00/10] firmware: arm_scmi: Add support for Rx channels, async commands and delayed response Date: Fri, 26 Jul 2019 14:51:28 +0100 Message-Id: <20190726135138.9858-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190726_065148_121403_2EC1355C X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , Etienne Carriere , linux-kernel@vger.kernel.org, Bo Zhang , Jim Quinlan , Sudeep Holla , Gaku Inami , Volodymyr Babchuk MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This patch series adds SCMI infrastructure/core support for recieve(Rx) channels, asynchronous commands and delayed response. It adds async command support for clock rate setting and sensor reading based on the attributes read from the firmware. The code is rebased on the cleanup series[1] and is available @[2] -- Regards, Sudeep [1] https://lore.kernel.org/lkml/20190726134531.8928-1-sudeep.holla@arm.com [2] git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git scmi_updates v1->v2: - Fixed error messages to indicate Tx/Rx correctly - Dropped receive buffer support as notifications are not yet added - Simplied atomic_inc/dec for async request count and fixed the commit message - Fixed fetching sensor value i.e. *pval + 1 to *(pval + 1) in scmi_sensor_reading_get Sudeep Holla (10): firmware: arm_scmi: Reorder some functions to avoid forward declarations firmware: arm_scmi: Segregate tx channel handling and prepare to add rx firmware: arm_scmi: Add receive channel support for notifications firmware: arm_scmi: Separate out tx buffer handling and prepare to add rx firmware: arm_scmi: Add mechanism to unpack message headers firmware: arm_scmi: Add support for asynchronous commands and delayed response firmware: arm_scmi: Drop async flag in sensor_ops->reading_get firmware: arm_scmi: Add asynchronous sensor read if it supports firmware: arm_scmi: Drop config flag in clk_ops->rate_set firmware: arm_scmi: Use asynchronous CLOCK_RATE_SET when possible drivers/clk/clk-scmi.c | 2 +- drivers/firmware/arm_scmi/clock.c | 21 +- drivers/firmware/arm_scmi/common.h | 6 +- drivers/firmware/arm_scmi/driver.c | 342 ++++++++++++++++++---------- drivers/firmware/arm_scmi/sensors.c | 32 ++- drivers/hwmon/scmi-hwmon.c | 2 +- include/linux/scmi_protocol.h | 6 +- 7 files changed, 271 insertions(+), 140 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel