From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yinghai Lu Subject: Re: [PATCH] PCI: pci_bus_add_device() should succeed even if creating sysfs files fails Date: Wed, 17 Apr 2013 10:30:12 -0700 Message-ID: References: <1366196798-15929-1-git-send-email-artem.savkov@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: Sender: linux-pci-owner@vger.kernel.org To: Bjorn Helgaas Cc: Artem Savkov , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Li Zhong , linux-next list List-Id: linux-next.vger.kernel.org On Wed, Apr 17, 2013 at 9:42 AM, Bjorn Helgaas wrote: > It would be ideal if we could get rid of the pci_sysfs_init() > late_initcall and just make the pci_create_sysfs_dev_files() from > pci_bus_add_device() work all the time, even at boot-time. I didn't > look hard enough to figure out why this needs to be a late_initcall. have to call that after pci assign unassigned resource.