Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4186447rba; Tue, 2 Apr 2024 09:39:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXV6tBQGfJAfCgR8smRUduwQ32bUVscQdYARRZ194G0bZ16CWUL44v1/y5RoV0CHX7dLbTEQeOPeId0JoGgjRb9UNFARlgTk1xBz5Ykpw== X-Google-Smtp-Source: AGHT+IGX+TpU8c+vMTNiTK9kUJJIPuM6PqwMSXCa3Ck8dF/u4t8TvaRmy6s0kO9a6T2fPHvhilU4 X-Received: by 2002:a05:6a00:2308:b0:6ea:b9ef:f482 with SMTP id h8-20020a056a00230800b006eab9eff482mr312277pfh.24.1712075963032; Tue, 02 Apr 2024 09:39:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712075963; cv=pass; d=google.com; s=arc-20160816; b=FZRgVua0oreGBwAgDmns4BZHOuSsRQI5y5n/WnrbzgE+4P8zGsbDsaGOK1sTeziFdB GG6Ppbg/JQZz1ILsVGmNmnTpUkkBC39zuvpEiaxd8aNIyzXE8d6LjRcnu7XOKbvaqZIe 16KPdrJcRIY7hFI4T0pd7D1dDMaPfDlsyCWsIGX+vE5Xr1YXzSANeaYO1pGDkuxxofWx 2AvB4QBRU5SgQ5itcQZua7ULxWvw+ZfwVHk/urMrmCqR+kvuUB0o5iRdcoGUFyOecI8S 9sC4N7QYANQFbC/Zut7RESkkFj3OroqySuJS1+mRqGAkL9DXyoQjW8jFi3ssxWs+mQCW jmDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=23pqOOguUxwf+LlNromuawcHxktlPOCtCpPzM0ENPtI=; fh=Zhf7W4vuRZfwim8cJjf1Ghblr8aYHwqhZn+m3Qb9Uns=; b=E0ngqG4UvB+nsfLoQh8G97Q46qxX1FJEa/CC9Y7iaEiukoapNtsmHVK3Ia6MBJrLEi DHe/GBct1r2c381K2q/YxEv1EiBfAI+lytuLNCLnN6HurL7pi8HMgxraTqaGYYGrTUET KZLUL1KMLl+EKTT5+k+4QQjgr/edVPd9A+1RhN3viQ87YgzOzHC78RdfR9FVw1jUpFJ7 yYLkGMncehmbs4ObZjyO0qMweBHtK3MjFqlJVLdZ8HdiyFMCCTf9sxCuDfb9iS2jdzFE eNKzJylX+5T0fY/fQ9EloYTV7S2QyUCX0gbei8CN8Edv/+vD+ZrQHpciquQLSBnjm13i tm+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=LWK3upwT; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-128318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f22-20020a63f756000000b005dc504b30ecsi11065670pgk.108.2024.04.02.09.39.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:39:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=LWK3upwT; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-128318-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CD8D7B269E0 for ; Tue, 2 Apr 2024 16:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B63DD1422C1; Tue, 2 Apr 2024 16:08:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="LWK3upwT" Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FC54136990; Tue, 2 Apr 2024 16:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712074103; cv=none; b=sC8R6aWGhPSyP08G6a9f4FzOr7HGlr8w9iMzreZDr82ZQkuZPkNZRpM7Ywlxka0pigo/I7UDc82RlcEN/WoP/7bBKw9uOSqEMo3XkOHWc0QY8Afh6G6mUzxCc67uHw77dE9vlYDwIqzOk0UUHefVas4fU6A/wrrwtYztwwXGg4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712074103; c=relaxed/simple; bh=23pqOOguUxwf+LlNromuawcHxktlPOCtCpPzM0ENPtI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=U7320wLkYk3WOetci8ThHdqH4S1maTaWOvM/xan7V3k4m+fTcRmkhMyMjSHkvTLJn4MFbOFbL238MQgwb3+AtQKpnvdWGNJwHHiW6Qf3POoU+8whYwBSJphqqPO2Zeim4Bam8JC+dm5JqhIolTme+91deqWsotw27re74HZdtBc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=LWK3upwT; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 9FF5247C3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1712074101; bh=23pqOOguUxwf+LlNromuawcHxktlPOCtCpPzM0ENPtI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=LWK3upwTNkKNQHwEia1hNlcwpjRg+QpVu/4dVwwvnol6g/XonRQE/Kq/h6+/Mjq7g JumnRrJA/Gj2qQtrETtRIJjzyP8tIsp/ttgYNATOgzWcSnQUBSJakaWC7f/I/y0fla f14iwDjScbHjc3PhV6az7p23WxYcAheUJx6a7hh00QVZhfAi/TLF45pLaLU9FVrQz9 M4rehryoyTe/7O/sZCPZpWImuCzyydB20oio1EXeegq+FEGP3nsmW4Ki1w8uihJAsH eXB98prpB0pGc3YNe4l/hUW+q4WR/W0YxKGkfaEEM2d/H2I4RUWhtIOLMTaA3xiQ3l HRg2krCW25+Qw== Received: from localhost (unknown [IPv6:2601:280:5e00:625::646]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 9FF5247C3C; Tue, 2 Apr 2024 16:08:21 +0000 (UTC) From: Jonathan Corbet To: Niklas Cassel , Frank Li Cc: rdunlap@infradead.org, hch@infradead.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lizhijian@fujitsu.com, mst@redhat.com Subject: Re: [PATCH v2 1/1] docs: dma: correct dma_set_mask() sample code In-Reply-To: References: <20240401174159.642998-1-Frank.Li@nxp.com> Date: Tue, 02 Apr 2024 10:08:20 -0600 Message-ID: <87r0fnvjbf.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Niklas Cassel writes: >> +dma_set_mask_and_coherent() will never return failure when bigger then 32. > > Nit: > s/then/than/ I hadn't pushed anything yet, so I took the liberty of going and fixing this one, thanks. jon