Message ID | 1510584358-29473-11-git-send-email-gilad@benyossef.com |
---|---|
State | Accepted |
Commit | da4e52ac3e0af04ab75ed979f44db35557028f50 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1879801qgn; Mon, 13 Nov 2017 06:47:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMbudGhoOVEurOgIzU3mpdoA//wgyyE5ivVOOjeaq72LWzDT9v/4QLe3cx1cimcgRrtg9w3R X-Received: by 10.101.97.197 with SMTP id j5mr8873945pgv.205.1510584441661; Mon, 13 Nov 2017 06:47:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510584441; cv=none; d=google.com; s=arc-20160816; b=oDZHhQqM9IaguKrK/BCji2bOxZfUIpfm4mFs+16vF0feLQj6dNtzTtjStFhm0Hxkip P091FDzpSMaEQRa/ZR68SyTFnZ/gkW3jk5tKR3vwY2FU9lVqc6l4GC2eEZy3x4ATtqPg MUV4cLZJUmiMG7BMB0oCMmP0DDoe+YX1VCEB2DNaeJ1qsBTeSEenHDqOIWgZ+c0Fpp9C 9Ug6HKYs7y3B3cEjsQdwkbw5RCy7VqiQJ7tgi+1vGLODObNKDRUswJa1+BfSnHZC1cp7 YiSuD13EX5a4o8u9fLlHD32f22ByxCzts+pKRyhxXpJ3aQYTvEScqNwW5a+y5qWXzFvn MArA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=r0ExlFz5ntP9agXgOOfzjUVqg+TRO2Ab2KVH6OJWhwU=; b=rKLR+XlDwgncpJAP/DSiWJHKWmRCJKWD/+pPJiA7owt4rvFlnZR6pfJVSVV0Ce31V4 cq4TENHfN5kCcaL1unvK7NPqoZo5umdukXdwlDw1geoNiKLgYQJZ/CyuC5C0bTa930Wq HOAznlqzLrAguHvmbeHfJdztMq5shNyyCJObrTHhRlaw886SE0MYSV9OJGbyVv3yJidT LDto4Od2ODH5G5M8BUEr8FU9uoL6/U6uJKBTWcMYYGuwGuSghGdBXwG+KLTunDeSumUh 0bVv438oIN70QGCEF0D1f3ZQbhpUVIj2ORpe4frkZHlZSVx8D7/5eeAX9xCl26B3bGsl t4mw== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si494735pfk.300.2017.11.13.06.47.21; Mon, 13 Nov 2017 06:47:21 -0800 (PST) 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 S1753310AbdKMOrU (ORCPT <rfc822; tom.gall@linaro.org> + 27 others); Mon, 13 Nov 2017 09:47:20 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47348 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752260AbdKMOrQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Nov 2017 09:47:16 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 976511435; Mon, 13 Nov 2017 06:47:16 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.133]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0252C3F318; Mon, 13 Nov 2017 06:47:14 -0800 (PST) From: Gilad Ben-Yossef <gilad@benyossef.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Ofir Drang <ofir.drang@arm.com>, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/24] staging: ccree: document spinlock usage Date: Mon, 13 Nov 2017 14:45:38 +0000 Message-Id: <1510584358-29473-11-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510584358-29473-1-git-send-email-gilad@benyossef.com> References: <1510584358-29473-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[01/24] staging: ccree: fix typos
|
expand
|
diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index 65c4d9f..1d9c038 100644 --- a/drivers/staging/ccree/ssi_request_mgr.c +++ b/drivers/staging/ccree/ssi_request_mgr.c @@ -43,6 +43,9 @@ struct ssi_request_mgr_handle { u32 req_queue_tail; u32 axi_completed; u32 q_free_slots; + /* This lock protects access to HW register + * that must be single request at a time + */ spinlock_t hw_lock; struct cc_hw_desc compl_desc; u8 *dummy_comp_buff;
Document spinlock usage to protect against concurrent access to HW register which must occur a single request at a time. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> --- drivers/staging/ccree/ssi_request_mgr.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4