From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hiroyuki KAMEZAWA Subject: Re: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update Date: Wed, 13 Oct 2004 12:21:52 +0900 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <416C9F50.901@jp.fujitsu.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-reply-to: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "S, Naveen B" Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, lhms-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, "Tolentino, Matthew E" , "Brown, Len" , tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org List-Id: linux-acpi@vger.kernel.org as Bjohn said. > I'm not sure you should assume the range will be the only item in _CRS > (i.e., you may need to iterate over all items using acpi_walk_resources()). I think you should use acpi_walk_resources(), like below. By the way,a _CRS cannot contain plural address information ? Kame S, Naveen B wrote: +static int +acpi_memory_enable_device(struct acpi_memory_device *mem_device) +{ + int result; + + ACPI_FUNCTION_TRACE("acpi_memory_enable_device"); + + /* Get the range from the _CRS */ + result = acpi_memory_get_device_resources(mem_device); result = acpi_walk_resources(mem_device->handle, METHOD_NAME_CRS, acpi_memory_get_device_resources, mem_device); + if (result) { + ACPI_DEBUG_PRINT((ACPI_DB_ERROR, + "\nget_device_resources failed\n")); + mem_device->state = MEMORY_INVALID_STATE; + return result; + } -- --the clue is these footmarks leading to the door.-- KAMEZAWA Hiroyuki ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl