Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756924Ab2B2E0v (ORCPT ); Tue, 28 Feb 2012 23:26:51 -0500 Received: from mail-yw0-f46.google.com ([209.85.213.46]:44469 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755095Ab2B2E0t convert rfc822-to-8bit (ORCPT ); Tue, 28 Feb 2012 23:26:49 -0500 MIME-Version: 1.0 In-Reply-To: References: <1330466863-28469-1-git-send-email-yinghai@kernel.org> <1330466863-28469-13-git-send-email-yinghai@kernel.org> Date: Tue, 28 Feb 2012 20:26:48 -0800 X-Google-Sender-Auth: 7Ikh7O8sswkmRJqUcc1zLn7Ea7A Message-ID: Subject: Re: [PATCH 12/24] PCI, ia64: Register busn_res for root buses From: Yinghai Lu To: Bjorn Helgaas Cc: Jesse Barnes , Benjamin Herrenschmidt , Tony Luck , David Miller , x86 , Dominik Brodowski , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Fenghua Yu , linux-ia64@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 26 On Tue, Feb 28, 2012 at 4:22 PM, Bjorn Helgaas wrote: > On Tue, Feb 28, 2012 at 5:12 PM, Yinghai Lu wrote: >>> >>> Why do you add a new struct resource here? ?Can't you just use the one >>> passed in from acpi_pci_root_add()? >> >> not quite sure about the life cycle for that object. > > The struct acpi_pci_root is allocated in acpi_pci_root_add() and freed > in acpi_pci_root_remove(), so it should be safe for PCI to use. ok will change that for ia64. > > Same thing applies for x86, of course. for x86, will have separate addon patch. Thanks Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/