Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1669943ybh; Tue, 14 Jul 2020 04:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw11157Pp0A4YWij+VA27DrQ/mY/7In5c6scxu9SB5EEH59P/TlWhJ3AWlmPkEE/59fYo5f X-Received: by 2002:aa7:cf82:: with SMTP id z2mr3738567edx.15.1594725584944; Tue, 14 Jul 2020 04:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594725584; cv=none; d=google.com; s=arc-20160816; b=qX0/EWDTizMUXHLimzwpddGoN2rZsdHLUZcAwlIBt6M5loCIi7D07Oj+vijVStSUMG 6f6/tDM0dVCf2nSmzxU4ARl+NQMqTJRC9smHGTNzIBHauURBxblZD3XCVtC5/UMroMAV Zh2yDNysKVSikr/r9t3KvqjEFZt4K5uSVmYyfiSHnuXPz2vUsO8VhLtn8yhJtWCJ1IpT t4MoZt+tqTI2DYiOzYH3Jix3iwhUfH2KTlyGxhv/SjmkA/kuq4c5D9JpdRFV3jRGa8Dh IW0RMuDv+314thLO2rHAkGrjeBKh3sfGM08Ic+OrBotpCWsQ+gjtHouBmJKJM812Q9yK uh0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z/zoKcrmx2IW2qZYN8v07zqfWyovJdKlsFhRtVJoj8Y=; b=Nl0Y6kGhrDrO2KIOHzvqX3qTQXOWbZ7cN8NMNQzBN3rIeJ0JWYN4BsmuPMKaFGI5pG d4HGi8+x/Akoa58qjYH/r+YMHYSicXuTEmF9LTtEEbVtleLv8oFuuSN2K1vwuH9RKSX1 RxNB9ybkDIy5zxaIXhtvA+BL0Ow7YmeyyJPrbKzSK8mFjzQVyaO2AGWLqz6a5scLr17e SOLxxD6PlmLJ960ET8mKyQ5+f18vmo5B2lOcHiiKnDydGK0I+nMCk4khRVr785rLchNx yDwkD0MveBTrGzabCZGGpImShFc/drv3tvegffkr5Axjr1mBmVJZCCO0epLt/JRzGyhj yCyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1sAb44W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qo28si10834851ejb.527.2020.07.14.04.19.22; Tue, 14 Jul 2020 04:19:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1sAb44W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726934AbgGNLSx (ORCPT + 99 others); Tue, 14 Jul 2020 07:18:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727939AbgGNLQt (ORCPT ); Tue, 14 Jul 2020 07:16:49 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C97A2C08E763 for ; Tue, 14 Jul 2020 04:16:05 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id o11so20921052wrv.9 for ; Tue, 14 Jul 2020 04:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z/zoKcrmx2IW2qZYN8v07zqfWyovJdKlsFhRtVJoj8Y=; b=b1sAb44WGmZFCdVAFpOnOB6gjm1ZuIfnH5qfH6jEl7r1V5Ot0bj2a/haai/zLlbGwZ jyft/gXpKRKwhcAmBF6N1E3tVUv3FpyxaQDJbEMA+kzxFOdi5i/iC+SuVdGwUK3S7lkC JCMyVtDbRUfFVhAZkbBSmtUupdpqKKxXkUPJTaoOYPu5dPFvyg6Blg9WrDMzB/cseVM+ rhmyyRlfWyztEMer+eWo6n3Do/AXv5WhKdZaS+4tgq6H2R8pELz1fQ3yZJcDDG53AKI8 o6mlh08h6jJhiGMzg1aEP83hrtSL2JwTrrM/lGjoC5Bpn1y65cxU+TAsW9GNOLI5/kNh tUSw== 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:mime-version:content-transfer-encoding; bh=z/zoKcrmx2IW2qZYN8v07zqfWyovJdKlsFhRtVJoj8Y=; b=s2KOOmWVdCA9ZzSs7Olx+MnzR6DuEafyn68QStXc1Vi9A7ptPab8+EDMm5cGiOT2oA aCximwLoB8CNmVO/03yRnSTDHkaG7xDjkL7EHWF+/GqCL7rba/U6LeJvAKRrqawJyMbZ /uLBd9UHOIQY3Jvq78ISDvnAbnfFtyF554isgIY610v1ozWa6fjlVvAEj/b3L0glZBbb 2dgpZdB5z3F++X7bC+4abyn24Dq/mogV4nzng4/TMj7b2CQKHUNQ67w1gEUmy/jrsn2p clGCmM9OC9Ie3/vEqP0n5YaldRKX4zWJBF5zHq0ZyPFRAUhRGMCvkDlh1oJH+zgvd6Xg tVqw== X-Gm-Message-State: AOAM533QF0dCo5IxudwIOVxsRX1Ojjogab649CN+jbxyzIKuiEsAoT6f uTQCDaL7NFHoIVugyyilllmNNg== X-Received: by 2002:a5d:698e:: with SMTP id g14mr4923996wru.301.1594725364528; Tue, 14 Jul 2020 04:16:04 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id l8sm28566052wrq.15.2020.07.14.04.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 04:16:03 -0700 (PDT) From: Lee Jones To: dan.j.williams@intel.com, vkoul@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Lee Jones , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , Guennadi Liakhovetski , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH 13/17] dma: nbpfaxi: Provide some missing attribute docs and split out slave info Date: Tue, 14 Jul 2020 12:15:42 +0100 Message-Id: <20200714111546.1755231-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200714111546.1755231-1-lee.jones@linaro.org> References: <20200714111546.1755231-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/dma/nbpfaxi.c:157: warning: Function parameter or member 'chan' not described in 'nbpf_desc' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'tasklet' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'slave_src_addr' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'slave_src_width' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'slave_src_burst' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'slave_dst_addr' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'slave_dst_width' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'slave_dst_burst' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'running' not described in 'nbpf_channel' drivers/dma/nbpfaxi.c:220: warning: Function parameter or member 'paused' not described in 'nbpf_channel' Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Martin KaFai Lau Cc: Song Liu Cc: Yonghong Song Cc: Andrii Nakryiko Cc: John Fastabend Cc: KP Singh Cc: Guennadi Liakhovetski Cc: netdev@vger.kernel.org Cc: bpf@vger.kernel.org Signed-off-by: Lee Jones --- drivers/dma/nbpfaxi.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index 594409a6e9752..74df621402e10 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -144,6 +144,7 @@ struct nbpf_link_desc { * @async_tx: dmaengine object * @user_wait: waiting for a user ack * @length: total transfer length + * @chan: associated DMAC channel * @sg: list of hardware descriptors, represented by struct nbpf_link_desc * @node: member in channel descriptor lists */ @@ -174,13 +175,17 @@ struct nbpf_desc_page { /** * struct nbpf_channel - one DMAC channel * @dma_chan: standard dmaengine channel object + * @tasklet: channel specific tasklet used for callbacks * @base: register address base * @nbpf: DMAC * @name: IRQ name * @irq: IRQ number - * @slave_addr: address for slave DMA - * @slave_width:slave data size in bytes - * @slave_burst:maximum slave burst size in bytes + * @slave_src_addr: source address for slave DMA + * @slave_src_width: source slave data size in bytes + * @slave_src_burst: maximum source slave burst size in bytes + * @slave_dst_addr: destination address for slave DMA + * @slave_dst_width: destination slave data size in bytes + * @slave_dst_burst: maximum destination slave burst size in bytes * @terminal: DMA terminal, assigned to this channel * @dmarq_cfg: DMA request line configuration - high / low, edge / level for NBPF_CHAN_CFG * @flags: configuration flags from DT @@ -191,6 +196,8 @@ struct nbpf_desc_page { * @active: list of descriptors, scheduled for processing * @done: list of completed descriptors, waiting post-processing * @desc_page: list of additionally allocated descriptor pages - if any + * @running: linked descriptor of running transaction + * @paused: are translations on this channel paused? */ struct nbpf_channel { struct dma_chan dma_chan; -- 2.25.1