Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3345484yba; Mon, 29 Apr 2019 00:04:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwT3X586pdD7721oHzuYF0XgWVk/fLyIUyiXKzniMAN14l3S1lQY9nrROrIHmYTbHh7crjl X-Received: by 2002:a17:902:8a95:: with SMTP id p21mr14510145plo.126.1556521496681; Mon, 29 Apr 2019 00:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556521496; cv=none; d=google.com; s=arc-20160816; b=j1SeYn/w4Jm1ltWZSXz+auagQNHeV7vukCC1uU/rZKMezAeFag9dU48aXc2cUlO4z9 nPqjZYq4swmp5TL+KZ+dlsgZZBACZZhmmPK9XxGINIERyeOkG5Mh6uUQJa5J/O48smRU pQVDWSxd+BC6NT/F0G50piwCGmHG4wH4kJSxA6HNvZefRmtWhmcG6Uck81IcMNXTtuvW MApW1aCZ5AIlx5fb95943fxikFdRxCdTQ29oeFA7p2p3LhrzF3vxCa9iyCP7iG3KHjPg /fZLFUy6iccF7driAveoVrnDy4pQYqh5loAKU3Pvz+KqoWgZfBmBsrrQELc8dUC2qUKm he7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=2zPNY/cLW+90UYWtDhMxkbIjGVuo2/qwkZPK5J1aSCw=; b=D/nTRqMyqtbLYAaAe+kN5fXKyryEq0kqh2cwadQQ0CFW0r+w7fNZdSLTU6EYfJ32Hs n57pdGfAeryCsJE/aim0C3dm9Oqlh1srkSNoTROKjjFTY1dtMiKZevvcLBMjbOUdNqER v07nrGzK0wRfSkIFGAjBAfqHAZJIUvWTmv3LlwIyj+9gsJZjuIGL+Hq3GWU/EpxatLJd 3NwGHTeh4Kv5yVlwa30WF2UwjFI1HzFbMNXaeBEZ+m+0JmtLMWtT2x6M+PniHPDadETC gbQrvm9XVU0SH2HvlAnmzs1QPfRwtQyd1uoszH0OYEAafQmO5i1p8XX06JkmSFgvO3M/ Stww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@haabendal.dk header.s=20140924 header.b=CP2vSNy7; 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 1si25541049plq.240.2019.04.29.00.04.40; Mon, 29 Apr 2019 00:04:56 -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=@haabendal.dk header.s=20140924 header.b=CP2vSNy7; 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 S1727469AbfD2HDT (ORCPT + 99 others); Mon, 29 Apr 2019 03:03:19 -0400 Received: from mailrelay1-1.pub.mailoutpod1-cph3.one.com ([46.30.210.182]:11878 "EHLO mailrelay1-1.pub.mailoutpod1-cph3.one.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727314AbfD2HDT (ORCPT ); Mon, 29 Apr 2019 03:03:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=haabendal.dk; s=20140924; h=content-type:mime-version:message-id:in-reply-to:date:references:subject:cc: to:from:from; bh=2zPNY/cLW+90UYWtDhMxkbIjGVuo2/qwkZPK5J1aSCw=; b=CP2vSNy756Mu3PtV+/tCzfX6N6bBGGfZKwlgWUT2H2cArhP/z70fnh24zaD9CdWJ/CVftTTS4gt2y lzy6ywMHBUcRWoNQim3ZF/6tQSSjIgSDKBsymx0AH22Qz5W85tgTTNBnRrDn0B9XKmkxbmpYhfGqah 6+ZKk6oxQnrQyZZY= X-HalOne-Cookie: 03bc1ce83dc9ecce239c19145261b37861aa8c6c X-HalOne-ID: dcee62ed-6a4c-11e9-b614-d0431ea8a283 Received: from localhost (unknown [193.163.1.7]) by mailrelay1.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id dcee62ed-6a4c-11e9-b614-d0431ea8a283; Mon, 29 Apr 2019 07:03:16 +0000 (UTC) From: Esben Haabendal To: "Enrico Weigelt\, metux IT consult" Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, andrew@aj.id.au, andriy.shevchenko@linux.intel.com, macro@linux-mips.org, vz@mleia.com, slemieux.tyco@gmail.com, khilman@baylibre.com, liviu.dudau@arm.com, sudeep.holla@arm.com, lorenzo.pieralisi@arm.com, davem@davemloft.net, jacmet@sunsite.dk, linux@prisktech.co.nz, matthias.bgg@gmail.com, linux-mips@vger.kernel.org, linux-serial@vger.kernel.org, linux-ia64@vger.kernel.org, linux-amlogic@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: Re: [PATCH 40/41] drivers: tty: serial: helper for setting mmio range References: <1556369542-13247-1-git-send-email-info@metux.net> <1556369542-13247-41-git-send-email-info@metux.net> Date: Mon, 29 Apr 2019 09:03:16 +0200 In-Reply-To: <1556369542-13247-41-git-send-email-info@metux.net> (Enrico Weigelt's message of "Sat, 27 Apr 2019 14:52:21 +0200") Message-ID: <87ef5lz423.fsf@haabendal.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Enrico Weigelt, metux IT consult" writes: > Introduce a little helpers for settings the mmio range from an > struct resource or start/len parameters with less code. > (also setting iotype to UPIO_MEM) > > Also converting drivers to use these new helpers as well as > fetching mapsize field instead of using hardcoded values. > (the runtime overhead of that should be negligible) > > The idea is moving to a consistent scheme, so later common > calls like request+ioremap combination can be done by generic > helpers. Why not simply replace iobase, mapbase and mapsize with a struct resource value instead? Incidentally, that would allow to specify a memory resource with a parent memory resource :) /Esben