Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3970359yba; Mon, 29 Apr 2019 11:29:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQOD3LAvHq6DnsbS+ZQgqjc7rKggCbA05BBUbkJrbOfx+jpxCo94HK9P8kfC88jbD5n5If X-Received: by 2002:a63:f712:: with SMTP id x18mr29950358pgh.293.1556562592489; Mon, 29 Apr 2019 11:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556562592; cv=none; d=google.com; s=arc-20160816; b=JnSpoO6nm0IvjXLh1tMLiukY5zmU0A8IvxsYx3F5KnXu/T7Q4dI85BUe6qdB2hLFdS 2MEXQQAi2uFyJb8jd5D1OAT9hXY8aV/gTViBbm+6y/mgRZVTZIwyeYULF+Etsx62qETZ oUOhI5MtwCgCtoQpLFKZMfbIqf6nUTgIMVLsuLAibR3P9J8oDdg8C2Wcw3RguSAHsIqH HLl4tc0omFTS1gKFaZYELRwzP8MSGv76uofwdFuZKt68fGQYLwswlEvjJ+Yjd/7Y68R9 JgTcU0os9qeONEPKMH5Lh0+lJsU56lh7UxPMAmwu6JMGJ9jtQ2HWZGhPiB3aSg//Z0nP 0WJg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=U1M4axG+ESLIyH4GGL4Z5axiVpJGTFpXu6S0Kdekkos=; b=HjvPXjSKDbGETpKvyXGrSvT0tgVddi4/E7uytud6frKEF4AoREmFwLA7IrqQTEvWgN VqRUCcJ+vme7ZTYkBO39yq8TPt/Jv+X1/Nl0Ck0gst3rlLiktvC8fAXgrhlDG2bPHp11 lc1pcirZQ7O7cOhPpnnMpA/bzpsFmyP+ITsaqHbGz6fi8+svEmThr+eY2lZEEwgzu+Yc VVVSTE2u9G7otaSinfPV0Zj63rS3ziJ764jFlY7JOuxNVt7ou5hjpDrBYQqQ7553qKz1 CR+tdWfaLZlf/ZvnuAoy0HW/fiaq8z+8ViW6FD6xilwhBoiZDT/RDrZb+vpG+l72XC0q dEAg== ARC-Authentication-Results: i=1; mx.google.com; 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 b4si35099960pfj.16.2019.04.29.11.29.37; Mon, 29 Apr 2019 11:29:52 -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; 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 S1729058AbfD2S2I (ORCPT + 99 others); Mon, 29 Apr 2019 14:28:08 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:41349 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728972AbfD2S2I (ORCPT ); Mon, 29 Apr 2019 14:28:08 -0400 Received: from [192.168.1.110] ([77.9.18.117]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0FE1-1gWweB2srv-00xJGe; Mon, 29 Apr 2019 20:27:00 +0200 Subject: Re: [PATCH 13/41] drivers: tty: serial: uartlite: fill mapsize and use it To: Peter Korsgaard , "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com, linux-ia64@vger.kernel.org, linux-serial@vger.kernel.org, andrew@aj.id.au, gregkh@linuxfoundation.org, sudeep.holla@arm.com, liviu.dudau@arm.com, linux-mips@vger.kernel.org, vz@mleia.com, linux@prisktech.co.nz, sparclinux@vger.kernel.org, khilman@baylibre.com, macro@linux-mips.org, slemieux.tyco@gmail.com, matthias.bgg@gmail.com, jacmet@sunsite.dk, linux-amlogic@lists.infradead.org, andriy.shevchenko@linux.intel.com, linuxppc-dev@lists.ozlabs.org, davem@davemloft.net References: <1556369542-13247-1-git-send-email-info@metux.net> <1556369542-13247-14-git-send-email-info@metux.net> <87muk8rg82.fsf@dell.be.48ers.dk> From: "Enrico Weigelt, metux IT consult" Organization: metux IT consult Message-ID: Date: Mon, 29 Apr 2019 20:26:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <87muk8rg82.fsf@dell.be.48ers.dk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:au94e1eq1t1YlnnJViJhE/K6kMah+BGDcbk5VT8+2eMOcjazNzP K5DjPTgP9xkJSFVa90iiUwfTMbygt1pa/q/QVqLjBcRjKGldPhF1PlUIGuwEcvTYnwNYXHD 4V5xXevhSRFXCoXSYK9fBGWVz8C7Tl/uH4wFGRM4rQiiRQ/9UA/oGA18KOJhfyGX6iPZWpN XbvZlLq2pR9jNFgvXr4Sg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9sF2aDxgqew=:FGiiUO8PT3ifq3hod8tMoL +SEtG8hOTCH9pJUceAM5iP2H5Es8lUmMB0syxlho4LBC+yxxXRhOFRB2cWsSjbWIidwwPruTU 0EH2VtAuQux2vVmh6WCiw729yobnsE6+P1JmGeH3xjLZdERrEdqLAdFjESsBb3Q0acApejZtZ zF8Viv5HEqMjOgJ1mYJhsAFbtXu1GQ8IITc7sTnty/rlKmhJexVwNJgnBjdqF5ZvLqLxecutK kZYcw0VOhspQU0gpK38Kxzp7r0nRLryCZTn/J1G4yqdgXd9ZksMtMoU9Aq3CF83pBTmKEuMfc W6iTXMoanXU5yPYQUsjPJ4X8CSucyPOh99f8HWSnnz59FeA5v7yE/kp7l1fIlr5K1u57DIYas R7YtCVkI4bBRX3RmDPo/y1IOHz2JqWRDKz2GpU26JYmU2yzf9ADZMm3w9nHD2iQOS21515NNx aQoEbBqIk+5kUHNVp2sw8kl8W5rbQ5QZSsgH/c8toQw67UhsUeuPvx425Yp7z4mplQmH4NlbT NgVx6Ahvz5wR9VoYhgLcei+Vz3/MqzReS6oP0JQ4aQh/MwUkU8lJwFW9tBu361Ays/BqoFyDb xiUN4IP0nNNMQp9V228OUBdjFFGdu4aU8k6c+QTT3D33uXP0z0uWrG8na7KNTfy7xff4cGQ0o TMDfGeX3+/tR9Z8ZWz8juRpzoZCUwqW4ATnaFyO1hO1XGHBPU/Tr30mlExcmRm/bx7EI73fMC AI9rD1w3c+BVcecBqTfQ0HHodM0p73pOlAR0KOmXf0piKKh5JjRv5OoDRY4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.04.19 17:19, Peter Korsgaard wrote: >>>>>> "Enrico" == Enrico Weigelt, metux IT consult writes: > > > Fill the struct uart_port->mapsize field and use it, insteaf of > > s/insteaf/instead/ Fixed. > > hardcoded values in many places. This makes the code layout a bit > > more consistent and easily allows using generic helpers for the > > io memory handling. > > > Candidates for such helpers could be eg. the request+ioremap and > > iounmap+release combinations. > > > Signed-off-by: Enrico Weigelt > > Acked-by: Peter Korsgaard thanks for review. --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287