From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH RFC 27/35] arm: acpi map mmio regions to dom0 Date: Fri, 06 Feb 2015 08:44:13 +0800 Message-ID: <54D40E5D.4090905@linaro.org> References: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> <1423058539-26403-28-git-send-email-parth.dixit@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Parth Dixit , Stefano Stabellini Cc: Ian Campbell , tim@xen.org, xen-devel , Stefano Stabellini , Jan Beulich , Christoffer Dall List-Id: xen-devel@lists.xenproject.org On 06/02/2015 03:40, Parth Dixit wrote: >>> +static int map_acpi_regions(struct domain *d) >>> +{ >>> + int res; >>> + >>> + res = acpi_map_mmio(d); >>> + if ( res ) >>> + return res; >>> + >>> + return 0; >>> +} >> >> I don't think that splitting the code in two functions is useful. Just >> implement the remapping here. > ok, will take care in next patchset. I agree that the splitting doesn't make really sense right now (only one call is done). But the next following patches add few more calls (such has mapping ACPI blob...). So I would keep the splitting here. I would also rename the function to prepare_acpi to make clear that we setups ACPI for DOM0. -- Julien Grall