From patchwork Fri Jul 26 13:51:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 11061105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7F75813A4 for ; Fri, 26 Jul 2019 13:51:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DBF3288EE for ; Fri, 26 Jul 2019 13:51:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B35A28AF6; Fri, 26 Jul 2019 13:51:58 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E98B328AE6 for ; Fri, 26 Jul 2019 13:51:57 +0000 (UTC) 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-58; 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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