From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754695Ab0AUUmH (ORCPT ); Thu, 21 Jan 2010 15:42:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752932Ab0AUUmF (ORCPT ); Thu, 21 Jan 2010 15:42:05 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]:9132 "EHLO g1t0029.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214Ab0AUUmB (ORCPT ); Thu, 21 Jan 2010 15:42:01 -0500 Date: Thu, 21 Jan 2010 13:41:59 -0700 From: Alex Chiang To: Yinghai Lu Cc: Jesse Barnes , Ingo Molnar , Linus Torvalds , Ivan Kokshaysky , Kenji Kaneshige , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 2/9] pci: add failed_list to record failed one for pci_bus_assign_resources Message-ID: <20100121204159.GE17684@ldl.fc.hp.com> References: <1264054456-12694-1-git-send-email-yinghai@kernel.org> <1264054456-12694-3-git-send-email-yinghai@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1264054456-12694-3-git-send-email-yinghai@kernel.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org More bike shedding. * Yinghai Lu : > @@ -58,6 +103,13 @@ static void pbus_assign_resources_sorted(const struct pci_bus *bus) > res = list->res; > idx = res - &list->dev->resource[0]; > if (pci_assign_resource(list->dev, idx)) { > + if (fail_head && !pci_is_root_bus(list->dev->bus)) { > + /* > + * device need to keep flags and size > + * for next try > + */ > + add_to_failed_list(fail_head, list->dev, res); > + } I don't really think you need that comment, so just strike it completely and drop the curly braces. if (fail_head && !pci_is_root_bus(list->dev->bus)) add_to_failed_list(fail_head, list->dev, res); Reviewed-by: Alex Chiang /ac