From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754494AbbIWLmj (ORCPT ); Wed, 23 Sep 2015 07:42:39 -0400 Received: from mga01.intel.com ([192.55.52.88]:23792 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754177AbbIWLmH (ORCPT ); Wed, 23 Sep 2015 07:42:07 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,577,1437462000"; d="scan'208";a="811340095" From: Sakari Ailus To: linux-doc@vger.kernel.org Cc: bhelgaas@google.com, corbet@lwn.net, linux-kernel@vger.kernel.org, djkurtz@chromium.org Subject: [PATCH 2/2] arm: mm: Fix comments in sg_sync functions Date: Wed, 23 Sep 2015 14:41:10 +0300 Message-Id: <1443008470-18213-3-git-send-email-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.1.0.231.g7484e3b In-Reply-To: <1443008470-18213-1-git-send-email-sakari.ailus@linux.intel.com> References: <1443008470-18213-1-git-send-email-sakari.ailus@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The comment on the usage of arm_dma_sync_sg_for_cpu(), arm_dma_sync_sg_for_device(), arm_iommu_sync_sg_for_cpu() and arm_iommu_sync_sg_for_device() functions wrongly noted that the "nelems" parameter is the number of sglist entries returned by dma_map_sg(), while this must be the number of entiries passed to dma_map_sg() instead. Suggested-by: Daniel Kurtz Signed-off-by: Sakari Ailus --- arch/arm/mm/dma-mapping.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index e626043..1c0154a 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -958,7 +958,7 @@ void arm_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, * arm_dma_sync_sg_for_cpu * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices * @sg: list of buffers - * @nents: number of buffers to map (returned from dma_map_sg) + * @nents: number of buffers to sync (same as was passed to dma_map_sg) * @dir: DMA transfer direction (same as was passed to dma_map_sg) */ void arm_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, @@ -977,7 +977,7 @@ void arm_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, * arm_dma_sync_sg_for_device * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices * @sg: list of buffers - * @nents: number of buffers to map (returned from dma_map_sg) + * @nents: number of buffers to sync (same as was passed to dma_map_sg) * @dir: DMA transfer direction (same as was passed to dma_map_sg) */ void arm_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, @@ -1672,7 +1672,7 @@ void arm_iommu_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, * arm_iommu_sync_sg_for_cpu * @dev: valid struct device pointer * @sg: list of buffers - * @nents: number of buffers to map (returned from dma_map_sg) + * @nents: number of buffers to sync (same as was passed to dma_map_sg) * @dir: DMA transfer direction (same as was passed to dma_map_sg) */ void arm_iommu_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, @@ -1690,7 +1690,7 @@ void arm_iommu_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, * arm_iommu_sync_sg_for_device * @dev: valid struct device pointer * @sg: list of buffers - * @nents: number of buffers to map (returned from dma_map_sg) + * @nents: number of buffers to sync (same as was passed to dma_map_sg) * @dir: DMA transfer direction (same as was passed to dma_map_sg) */ void arm_iommu_sync_sg_for_device(struct device *dev, struct scatterlist *sg, -- 2.1.0.231.g7484e3b