From patchwork Tue Aug 1 10:37:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9874193 Return-Path: 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 F411560365 for ; Tue, 1 Aug 2017 10:43:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D8F328684 for ; Tue, 1 Aug 2017 10:43:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0248B2869A; Tue, 1 Aug 2017 10:43:17 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7513286A0 for ; Tue, 1 Aug 2017 10:43:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751809AbdHAKi2 (ORCPT ); Tue, 1 Aug 2017 06:38:28 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:36022 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789AbdHAKiY (ORCPT ); Tue, 1 Aug 2017 06:38:24 -0400 Received: by mail-qk0-f176.google.com with SMTP id d136so6446131qkg.3 for ; Tue, 01 Aug 2017 03:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xobYI3HAwpqh3Y7EfAO8XFOEK7W2Jp6CQVshrk2Uo+k=; b=fx/HMZCElX/RqQp04p9WrnNsZnjBtda7qq0Abfesa9GlbjGk+uIaKj0yy42iKvlD9s Upz7Az+v8n+GVjRo0HJfW0UvH+EK8T0sHjohgN3hg9eoMj5KabwRlenY5bkzj3mqkS7h qv/seatnQWMJvW5Hhwxrs7SWJrBuo1graNp50= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xobYI3HAwpqh3Y7EfAO8XFOEK7W2Jp6CQVshrk2Uo+k=; b=eFBy2kOuiPiUorlDhn6b0Gr04Ql2wpLYnzhK4aICORAzAN0YsO+M3PyiTSIa0GkPz/ WOR9SzVXE5YufLmi4GwwcAEaxsc0lILM9dF7mBaJjuoLj7ESd/Zm/eN2U4MX96i5IcGF BlV8AK4DlbnbG6rUXhadmgy8VntCJUPy9G/Un4KWBwolod32dWcteYHViXL5AdVQf0Uo IsJEoa0oaJhFaFAqHBB+usiF5Q9agVKUwKAq6U2EVVQ61C47thC40Vu/FJ3T8AtxfYoP YwslbBxv05VS9GN0kz3ZWptxLQenaU2+zVLfNtrQTCDOpR8kehH+i9+nh/AS4LTnRhZ2 wtHA== X-Gm-Message-State: AIVw111TPg0qWK8FCjHel6LRObCl52tBpgWkRN/y0Y7z0Xb6V/6lyuvy kC7qJ7gpnN3iGmgw X-Received: by 10.55.79.209 with SMTP id d200mr26198519qkb.336.1501583904049; Tue, 01 Aug 2017 03:38:24 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id e32sm21784162qtb.63.2017.08.01.03.38.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Aug 2017 03:38:23 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Vinod Koul , Dan Williams Cc: Florian Fainelli , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Anup Patel Subject: [PATCH v2 01/16] dmaengine: bcm-sba-raid: Minor improvments in comments Date: Tue, 1 Aug 2017 16:07:45 +0530 Message-Id: <1501583880-32072-2-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501583880-32072-1-git-send-email-anup.patel@broadcom.com> References: <1501583880-32072-1-git-send-email-anup.patel@broadcom.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make section comments consistent across the Broadcom SBA RAID driver by avoiding " SBA " in some of the comments. Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c index e41bbc7..76999b7 100644 --- a/drivers/dma/bcm-sba-raid.c +++ b/drivers/dma/bcm-sba-raid.c @@ -48,7 +48,8 @@ #include "dmaengine.h" -/* SBA command related defines */ +/* ====== Driver macros and defines ===== */ + #define SBA_TYPE_SHIFT 48 #define SBA_TYPE_MASK GENMASK(1, 0) #define SBA_TYPE_A 0x0 @@ -88,6 +89,8 @@ #define to_sba_device(dchan) \ container_of(dchan, struct sba_device, dma_chan) +/* ===== Driver data structures ===== */ + enum sba_request_state { SBA_REQUEST_STATE_FREE = 1, SBA_REQUEST_STATE_ALLOCED = 2, @@ -164,7 +167,7 @@ struct sba_device { int reqs_free_count; }; -/* ====== SBA command helper routines ===== */ +/* ====== Command helper routines ===== */ static inline u64 __pure sba_cmd_enc(u64 cmd, u32 val, u32 shift, u32 mask) { @@ -196,7 +199,7 @@ static inline u32 __pure sba_cmd_pq_c_mdata(u32 d, u32 b1, u32 b0) ((d & SBA_C_MDATA_DNUM_MASK) << SBA_C_MDATA_DNUM_SHIFT); } -/* ====== Channel resource management routines ===== */ +/* ====== General helper routines ===== */ static struct sba_request *sba_alloc_request(struct sba_device *sba) {