From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ia0-f170.google.com ([209.85.210.170]:63323 "EHLO mail-ia0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935915Ab3DQRaO (ORCPT ); Wed, 17 Apr 2013 13:30:14 -0400 MIME-Version: 1.0 In-Reply-To: References: <1366196798-15929-1-git-send-email-artem.savkov@gmail.com> Date: Wed, 17 Apr 2013 10:30:12 -0700 Message-ID: Subject: Re: [PATCH] PCI: pci_bus_add_device() should succeed even if creating sysfs files fails From: Yinghai Lu To: Bjorn Helgaas Cc: Artem Savkov , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Li Zhong , linux-next list Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-pci-owner@vger.kernel.org List-ID: 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.