Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4375256ybg; Mon, 21 Oct 2019 08:05:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYjgk4QHjfIHQrkAOIbaBVOR7t8ADRiDdq7tggs2LS0dQ6zrlqoqwyamYqViy9noiIMyIA X-Received: by 2002:a05:6402:794:: with SMTP id d20mr26237867edy.240.1571670338233; Mon, 21 Oct 2019 08:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571670338; cv=none; d=google.com; s=arc-20160816; b=ywjMFDiGaGPwXjgNoCXaSn8sGGmNbJgQ/6kx/fSpbUNxEkzSJfWbBO9c5MRfidpR23 T/qFfYm1wDxBMI+GEXYG8wRqAxxp2LZwuM3aNV7uaACf1LRCl8QjNgjQajqC/LXftmjd ZwbaVSAKGQAHYaOYIlWWAKoeJkHCyVZrmKQxOd/dyzQdPu0BjEQQPR/fpwJA3BFGht77 eB9KQJVQLIEIalR9rZsWJ7HefCaG/pAdeUTrWr12qYVrQZjHJNLSwiW6XJbKOLAoaOxN tgLaZ6lO1MNTjczRP5qYTpefd5MWJPLqB0KRN/yLO/PtXunwyvV/CIsdAnX5mDZhtQn8 dSzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tWhc5uJs7MS/OG9cE4Cx7yK7L1yYTVuLaTuL5bFFTEk=; b=bYUlNbRx867TL1ieEANfDHAF7o9Pb2B9qZJxQRZi1g6Z3b1usgBpPqq1qC7q+kLCCf zFQXj2K84dknp14GF7nkJwehZpx7j21UEYFPiq3KuHBCaKiuwapz8PUgW3Gd3Jb79xZs wK8REiN6w/JfS/wk0S2tJERhrPaVByEAF6+4shz5Gy4TY/exV2qWGXrBPiIgZknb6Xi8 XKMeu1xSK2tJGadD6JALxa/std0erEDlJB+uajqE1N5pLBO5xddWG7dNfzI5r3zdoHVs 99e3+30JKbcgJr4wurgS7O05rOre4YKX6g2w6mwgimmXT9Scuzvp2ZNjUkZv5d9Rm/d1 gy7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xhngFmRQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si8832319eje.338.2019.10.21.08.05.11; Mon, 21 Oct 2019 08:05:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xhngFmRQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729125AbfJUPEx (ORCPT + 99 others); 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-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