Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8554335rwb; Thu, 24 Nov 2022 00:49:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Zb0dpOxlsOKH5D7xLPoPD4tO61QrRNyabxIdWWNzjg9/ymZfh+dgBpEU282p8vkt0yS3R X-Received: by 2002:a05:6a00:24c1:b0:56e:a001:8cb0 with SMTP id d1-20020a056a0024c100b0056ea0018cb0mr14242764pfv.60.1669279781695; Thu, 24 Nov 2022 00:49:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669279781; cv=none; d=google.com; s=arc-20160816; b=ClJ5hsZ5xn2oKIIQ5f8PbXPESsTpZPPdOa10UYUqIb/ZWgDQuVGtuvvJmP3P/iKk0N 6Z7/KPgaoR0ZT0wWxEmCNNycgRamkuAPjOiLw0ua/d1OGFczZOD9d2R/P8xY9ZqCBOGk iFoXf4lvxM1B+2RwBpxckxn5fgdHxUgL2Kk8WtwGtHCcmq5yLUZAcAY1bUYfOmYu0En2 iOehwQ+rV7pBdwoC+bpPxWAUrKHjF3I4I8T99BURYw2yN2gJSbK0PHIxaoHQjCVRL3sm ao08AVBCn+dT9gu9+9PnW55Uw5Lb0obq2cwxV25BGztCzNoJnwZlv6dnxXSIMpmjfisy zHrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6YHJgPorhOUbyl8qXKZ/Y1Fb0whHUGXa2Cr+bH3NpKM=; b=LNRcEbKDswNQT8E1B89baHD4vv40S9HzTP9OkeY0ZUvLLGefz0jAG6pStE63OK9ryi XWx7t8npkhpQz+mcSSXzjsPYZPWk35XEvCiGx38KPtuYPNxxKsUmJyupihN42EG906ta LuSwr5vNBXiwcZ0tCcaGxiY7NVJE54fJCChIueodTuienys2dwXoL92NHTKs8aTd740R cq9lT/XjUsf+QN0YPLOho9/jnwXKcc3I7m13ZJa9uNaLVLBxdHlaqk7H3DF7IIyvSNfh KGE7r3S9Q4JsH8Erl9ZNvYmSrnBwObkkxaT/dgyPAvEQinL+H0yhDm+wDSXVp25jywLK 29sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=B4nBu20b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a63f042000000b00476f2b11c08si166557pgj.813.2022.11.24.00.49.30; Thu, 24 Nov 2022 00:49:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=B4nBu20b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbiKXIMX (ORCPT + 87 others); Thu, 24 Nov 2022 03:12:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbiKXILv (ORCPT ); Thu, 24 Nov 2022 03:11:51 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 316E1DDFB5 for ; Thu, 24 Nov 2022 00:11:30 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id i10so2435026ejg.6 for ; Thu, 24 Nov 2022 00:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=6YHJgPorhOUbyl8qXKZ/Y1Fb0whHUGXa2Cr+bH3NpKM=; b=B4nBu20bW7mnUL2BeHRcg59KXuEcGTlAVaR5iapLDCicXnF3jFRGL0KaCd3/+h9Tdw vY9pRcqoKoWybtisYS+ZxcgaQKr5iVDQ7zAsYRhTzvbjh9N+7LqU/5PuYXAq73/SPu5K lK1a6zcpRASRjG7B8xKq1P1Np87iRH6szFwH0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6YHJgPorhOUbyl8qXKZ/Y1Fb0whHUGXa2Cr+bH3NpKM=; b=EeVjT+WyESgSeqMQ5ybrrak1zTsFYDR4xeMDh9AMnVsqMFXtn7yNFyIdn1qaaLkNTZ Vf4JG/8TZjtUr2Pu4rEh6h/ACUwY8nKDZvsYdOI9NYKoTQctzxEBD5gGdNC1CK6lZi0y 4kqZ3SpZM/nLQye+VrdEtPMfPhd04UDVbDgP+HS8QayfAnYzvu2KfmYwzfFDZriiZ9y9 wLycKP+4eUUPtvV/c8C6XQ5bapmwCs8KIcS5RGko2nCiHUQ4RLMc8EQssF5BwQfwR2Se Ux5WLcUTitiED3ToyVTdt/kKdK+5YJfE6QOUuFXTgq2EixQ+sh/OK7hZIIqIiNb1HBHK J6ig== X-Gm-Message-State: ANoB5pml9Fi7cMztivTv0k2ILPGs37yhMu6pZ3arqH3KhOyUIQSmm6m9 dZNgNlOa/+B2+IPCyYXYBgOO4Q== X-Received: by 2002:a17:906:245a:b0:78d:857d:b4a8 with SMTP id a26-20020a170906245a00b0078d857db4a8mr5069511ejb.495.1669277488639; Thu, 24 Nov 2022 00:11:28 -0800 (PST) Received: from tom-ThinkPad-T14s-Gen-2i (net-188-217-55-94.cust.vodafonedsl.it. [188.217.55.94]) by smtp.gmail.com with ESMTPSA id wl3-20020a170907310300b007b4bc423b41sm145907ejb.190.2022.11.24.00.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 00:11:27 -0800 (PST) Date: Thu, 24 Nov 2022 09:11:26 +0100 From: Tommaso Merciai To: "T.J. Mercier" Cc: Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dma-buf: A collection of typo and documentation fixes Message-ID: <20221124081126.GA607444@tom-ThinkPad-T14s-Gen-2i> References: <20221123193519.3948105-1-tjmercier@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221123193519.3948105-1-tjmercier@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi T.J, On Wed, Nov 23, 2022 at 07:35:18PM +0000, T.J. Mercier wrote: > I've been collecting these typo fixes for a while and it feels like > time to send them in. > > Signed-off-by: T.J. Mercier > --- > drivers/dma-buf/dma-buf.c | 14 +++++++------- > include/linux/dma-buf.h | 6 +++--- > 2 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c > index dd0f83ee505b..614ccd208af4 100644 > --- a/drivers/dma-buf/dma-buf.c > +++ b/drivers/dma-buf/dma-buf.c > @@ -1141,7 +1141,7 @@ EXPORT_SYMBOL_NS_GPL(dma_buf_unmap_attachment, DMA_BUF); > * > * @dmabuf: [in] buffer which is moving > * > - * Informs all attachmenst that they need to destroy and recreated all their > + * Informs all attachments that they need to destroy and recreate all their > * mappings. > */ > void dma_buf_move_notify(struct dma_buf *dmabuf) > @@ -1159,11 +1159,11 @@ EXPORT_SYMBOL_NS_GPL(dma_buf_move_notify, DMA_BUF); > /** > * DOC: cpu access > * > - * There are mutliple reasons for supporting CPU access to a dma buffer object: > + * There are multiple reasons for supporting CPU access to a dma buffer object: > * > * - Fallback operations in the kernel, for example when a device is connected > * over USB and the kernel needs to shuffle the data around first before > - * sending it away. Cache coherency is handled by braketing any transactions > + * sending it away. Cache coherency is handled by bracketing any transactions > * with calls to dma_buf_begin_cpu_access() and dma_buf_end_cpu_access() > * access. > * > @@ -1190,7 +1190,7 @@ EXPORT_SYMBOL_NS_GPL(dma_buf_move_notify, DMA_BUF); > * replace ION buffers mmap support was needed. > * > * There is no special interfaces, userspace simply calls mmap on the dma-buf > - * fd. But like for CPU access there's a need to braket the actual access, > + * fd. But like for CPU access there's a need to bracket the actual access, > * which is handled by the ioctl (DMA_BUF_IOCTL_SYNC). Note that > * DMA_BUF_IOCTL_SYNC can fail with -EAGAIN or -EINTR, in which case it must > * be restarted. > @@ -1264,10 +1264,10 @@ static int __dma_buf_begin_cpu_access(struct dma_buf *dmabuf, > * preparations. Coherency is only guaranteed in the specified range for the > * specified access direction. > * @dmabuf: [in] buffer to prepare cpu access for. > - * @direction: [in] length of range for cpu access. > + * @direction: [in] direction of access. > * > * After the cpu access is complete the caller should call > - * dma_buf_end_cpu_access(). Only when cpu access is braketed by both calls is > + * dma_buf_end_cpu_access(). Only when cpu access is bracketed by both calls is > * it guaranteed to be coherent with other DMA access. > * > * This function will also wait for any DMA transactions tracked through > @@ -1307,7 +1307,7 @@ EXPORT_SYMBOL_NS_GPL(dma_buf_begin_cpu_access, DMA_BUF); > * actions. Coherency is only guaranteed in the specified range for the > * specified access direction. > * @dmabuf: [in] buffer to complete cpu access for. > - * @direction: [in] length of range for cpu access. > + * @direction: [in] direction of access. > * > * This terminates CPU access started with dma_buf_begin_cpu_access(). > * > diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h > index 71731796c8c3..1d61a4f6db35 100644 > --- a/include/linux/dma-buf.h > +++ b/include/linux/dma-buf.h > @@ -330,7 +330,7 @@ struct dma_buf { > * @lock: > * > * Used internally to serialize list manipulation, attach/detach and > - * vmap/unmap. Note that in many cases this is superseeded by > + * vmap/unmap. Note that in many cases this is superseded by > * dma_resv_lock() on @resv. > */ > struct mutex lock; > @@ -365,7 +365,7 @@ struct dma_buf { > */ > const char *name; > > - /** @name_lock: Spinlock to protect name acces for read access. */ > + /** @name_lock: Spinlock to protect name access for read access. */ > spinlock_t name_lock; > > /** > @@ -402,7 +402,7 @@ struct dma_buf { > * anything the userspace API considers write access. > * > * - Drivers may just always add a write fence, since that only > - * causes unecessarily synchronization, but no correctness issues. > + * causes unnecessary synchronization, but no correctness issues. > * > * - Some drivers only expose a synchronous userspace API with no > * pipelining across drivers. These do not set any fences for their > -- > 2.38.1.584.g0f3c55d4c2-goog > Looks good to me. Reviewed-by: Tommaso Merciai Thanks & Regards, Tommaso -- Tommaso Merciai Embedded Linux Engineer tommaso.merciai@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com