Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2851534pxb; Tue, 9 Mar 2021 12:31:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlWMON0ElBXWILpv17GceXGP9KDnBZE1PKHeQRgZjygbsJ9NHgSNElYwOQVBErtjS0t5Vy X-Received: by 2002:a17:906:5e4a:: with SMTP id b10mr22332878eju.116.1615321917941; Tue, 09 Mar 2021 12:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615321917; cv=none; d=google.com; s=arc-20160816; b=kEQDKsx3KA4sN5ramxLeOAf9kYQHmXICe+fKrWMcHDqOEtcCm2N4jXwFnUEcds/YJX VyJtz2tTY+WW3wREIHBL923tIQRCTiC4yo4HxiYPpnfp/YZgooLvARo3Fufe4QT5QKxD 70bjEOaNgsMVWCFJbJlf43jBkW3UlcroCzzHjKJtI5jD4r+lPWL4bh1sE9BnMeRyOhac o9nyhBZFEHv8160m8FWFSUHfdvSzPq37bfclp4xzcAZzyy2Ud68BvGLuOOKvrwXACney I3bIVHHRp95QwLkAeknrjLtg2lf6OivwXJsiFyEk70bWp49vYmXEAMS9JWfXseZL+Hhp tlRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=w+YA8p96U1WIYPydN6yQEYtbDcqx8TwKfsiXE5Ortgo=; b=HmXu6J9TuCeeetROHMidp18mokQ3IRasOtrhjI8MM68BrEuXvpMQUvpfl4d5R9Ro44 o1wJ1ebS7c3g/umT0RkSUnjktimM+4mQOBuSwKBgCcwEx8I0wXaHNARpOXu0yL0Q39Hv Zmr5H5+4U4ZI4MI7EFjYPVbiZ+9Zcsy/XapG+uTBTgiV7FLZO9tZTnuAjg48KRRvsvgO 7AL0VtB6kNoLDPaxEzgCiUeoiT3k8dpeCxZEeME1TQvgSe7cpjZR62o0wpfNxsQcQ5+L ST6+VgLfYZ5f4gWgAhpto5tQ8rab7yHfamynRPWSauBRVQ45jcgz7183vE8Ka+pmSyUA JJUg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si10035761edn.100.2021.03.09.12.31.33; Tue, 09 Mar 2021 12:31:57 -0800 (PST) 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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231694AbhCIUag (ORCPT + 99 others); Tue, 9 Mar 2021 15:30:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231634AbhCIUad (ORCPT ); Tue, 9 Mar 2021 15:30:33 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83276C06174A; Tue, 9 Mar 2021 12:30:33 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id D16A73FA6A; Tue, 9 Mar 2021 20:29:54 +0000 (UTC) Subject: Re: [RFT PATCH v3 10/27] docs: driver-api: device-io: Document ioremap() variants & access funcs To: Arnd Bergmann , Andy Shevchenko Cc: Linus Walleij , Linux ARM , Marc Zyngier , Rob Herring , Olof Johansson , Krzysztof Kozlowski , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Mark Rutland , Greg Kroah-Hartman , Jonathan Corbet , Catalin Marinas , Christoph Hellwig , "David S. Miller" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:SERIAL DRIVERS" , Linux Doc Mailing List , linux-samsung-soc , Linux-Arch , "linux-kernel@vger.kernel.org" References: <20210304213902.83903-1-marcan@marcan.st> <20210304213902.83903-11-marcan@marcan.st> From: Hector Martin Message-ID: <5eb23b42-5fda-0524-8666-0eb2c37b4ac1@marcan.st> Date: Wed, 10 Mar 2021 05:29:52 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/03/2021 00.51, Arnd Bergmann wrote: > On Fri, Mar 5, 2021 at 4:09 PM Andy Shevchenko > wrote: >> On Fri, Mar 5, 2021 at 12:25 PM Linus Walleij wrote: >>> On Thu, Mar 4, 2021 at 10:40 PM Hector Martin wrote: >>> >>>> This documents the newly introduced ioremap_np() along with all the >>>> other common ioremap() variants, and some higher-level abstractions >>>> available. >>>> >>>> Signed-off-by: Hector Martin >>> >>> I like this, I just want one change: >>> >>> Put the common ioremap() on top in all paragraphs, so the norm >>> comes before the exceptions. >>> >>> I.e. it is weird to mention ioremap_np() before mentioning ioremap(). >> >> +1 here. That is what I have stumbled upon reading carefully. > > In that case, the order should probably be: > > ioremap > ioremap_wc > ioremap_wt > ioremap_np > ioremap_uc > ioremap_cache > > Going from most common to least common, rather than going from > strongest to weakest. Yeah, I was dwelling on the issue of ioremap_np being first when I wrote that... this alternative works for me, I'll sort it like this then. It'll just need some re-wording to make it all flow properly. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub