From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62856CA9EB7 for ; Mon, 21 Oct 2019 15:04:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39E802084B for ; Mon, 21 Oct 2019 15:04:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="xhngFmRQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729178AbfJUPEx (ORCPT ); Mon, 21 Oct 2019 11:04:53 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:39689 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfJUPEx (ORCPT ); Mon, 21 Oct 2019 11:04:53 -0400 Received: by mail-io1-f65.google.com with SMTP id a1so16286203ioc.6 for ; Mon, 21 Oct 2019 08:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tWhc5uJs7MS/OG9cE4Cx7yK7L1yYTVuLaTuL5bFFTEk=; b=xhngFmRQQM1D4pq9bIoMfnS+5fCAmX6gmyeEmFG0ukm7A7X0Mje5muv4Cv+HO0X3bx jJXPVKEIDEe6ncTL0EP1ySuuHhrcDkueCwaJeAfTxOizLMwsd/lcBjMM2tRAtmO+XU6L Kxs9a51GuYICueb/prnKL3irvHY/Oep5zyBDgTE8hJXOT9LKJj7RU3FeoJ8r6miomECA cKhvvKHTcbBvaC/SPe6eRJUq347iOvczH/2CWTMkX7ZkORrw+6iE6Sc1q/NXgP4e1YLr jFwwB8iLe+zBTK3brgT8rnJcQhJrBvxbU9krMWtmEedSGWLFa6iT5eQaY7DrZvE0HL/g 6J4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tWhc5uJs7MS/OG9cE4Cx7yK7L1yYTVuLaTuL5bFFTEk=; b=IxyWMVbipl4GEvd8od+/2FLZGOwYorOwN42m6Et/x1sf7iatWx959og7eoMo+9j4Wx 9BtG5eUgi8eXqHK20W7ext74M+pnnJBOCygGEd3bMZw56SSPXD9zdHnh5coxhbqBLVEr 3c++M9Gel2YXN/Xd3diPxJzb1DErzua8GY0+x2BGu/RZWT4nO6NYzZpOF0+dOYOD3CPQ Z8SUujoiTcYYb8sqlhqEyJ0cbfuwdVCe6ly+SxMZEfgXtFBuVYiSpGTMAMDXGF0ZRbrI PJL8Klif+2mXSO6o4oGR6oyKN3y5otoF6lwrysQ/o2rx4FdcLD2+ZZWbUGwSU4LgwXMA cH2Q== X-Gm-Message-State: APjAAAVf45xy+twMP40WzZKjcgYOYVMbyILrH8KLSD1y6VaawbFMvDUw 5CToJm7pH+Cciiw4YU90qi4qJyP9s6KRyb9z/ofVkg== X-Google-Smtp-Source: APXvYqyZtkP6PxsU3UaMQpu8AZwU/DkiQJeu4K/7glTT1ZkinSdT651Fwq7T77GW8oGg2nJltTvYwYQlVaCp648B1hU= X-Received: by 2002:a05:6602:10f:: with SMTP id s15mr11394239iot.220.1571670290816; Mon, 21 Oct 2019 08:04:50 -0700 (PDT) MIME-Version: 1.0 References: <20191006053916.8849-1-brgl@bgdev.pl> In-Reply-To: <20191006053916.8849-1-brgl@bgdev.pl> From: Bartosz Golaszewski Date: Mon, 21 Oct 2019 17:04:39 +0200 Message-ID: Subject: Re: [PATCH v3 0/8] drivers: add new variants of devm_platform_ioremap_resource() To: Greg Kroah-Hartman , Arnd Bergmann Cc: linux-doc , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , Jonathan Corbet , "Rafael J . Wysocki" , Linus Walleij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org niedz., 6 pa=C5=BA 2019 o 07:39 Bartosz Golaszewski napisa= =C5=82(a): > > From: Bartosz Golaszewski > > The new devm_platform_ioremap_resource() helper has now been widely > adopted and used in many drivers. Users of the write-combined ioremap() > variants could benefit from the same code shrinkage. This series provides > a write-combined version of devm_platform_ioremap_resource() and uses it = in a > relevant driver with the assumption that - just like was the case > previously - a coccinelle script will be developed to ease the transition > for others. > > There are also users of platform_get_resource_byname() who call > devm_ioremap_resource() next, so provide another variant that they can us= e > together with two examples. > > v1 -> v2: > - dropped everything related to nocache ioremap as this is going away > > v2 -> v3: > - don't call platform_get_resource() as an argument of devm_ioremap_resou= rce(), > it actually decreases readability > - add devm_platform_ioremap_resource_byname() as another variant > > Bartosz Golaszewski (8): > Documentation: devres: add missing entry for > devm_platform_ioremap_resource() > lib: devres: prepare devm_ioremap_resource() for more variants > lib: devres: provide devm_ioremap_resource_wc() > drivers: platform: provide devm_platform_ioremap_resource_wc() > misc: sram: use devm_platform_ioremap_resource_wc() > drivers: provide devm_platform_ioremap_resource_byname() > gpio: mvebu: use devm_platform_ioremap_resource_byname() > gpio: tegra186: use devm_platform_ioremap_resource_byname() > > .../driver-api/driver-model/devres.rst | 4 ++ > drivers/base/platform.c | 39 +++++++++++- > drivers/gpio/gpio-mvebu.c | 19 +++--- > drivers/gpio/gpio-tegra186.c | 4 +- > drivers/misc/sram.c | 28 +++------ > include/linux/device.h | 2 + > include/linux/platform_device.h | 6 ++ > lib/devres.c | 62 +++++++++++++------ > 8 files changed, 108 insertions(+), 56 deletions(-) > > -- > 2.23.0 > Greg, Arnd, gentle ping for this. I noticed that some maintainers are complaining about being spammed with patches converting old drivers to using devm_platform_ioremap_resource() and there's even a patch removing the relevant coccinelle script on the list, but I think for new drivers these are still useful. Do you want to pick them up for v5.5 (or at all)? Bart