From patchwork Wed Jul 15 08:23:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 495519 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 4F1001402BA for ; Wed, 15 Jul 2015 18:25:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=e0PFhJdZ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9F43B4B6D5; Wed, 15 Jul 2015 10:24:42 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TFOcSYmllWND; Wed, 15 Jul 2015 10:24:42 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 48C234B70B; Wed, 15 Jul 2015 10:24:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E0D954B700 for ; Wed, 15 Jul 2015 10:24:36 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id skl3P4RZb0nd for ; Wed, 15 Jul 2015 10:24:36 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by theia.denx.de (Postfix) with ESMTPS id A0F9F4B6A9 for ; Wed, 15 Jul 2015 10:24:27 +0200 (CEST) Received: by qkbp125 with SMTP id p125so23190505qkb.2 for ; Wed, 15 Jul 2015 01:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:in-reply-to:references:mime-version :content-type; bh=fyGfb+CyvyWYxtYi3+BSz1YGHCsKf7+1IVXddTfxGQQ=; b=e0PFhJdZWKli4bNIIpFPUr9uMDsNNE6gr08A3ZhXodvEFakMbXxmdox4np7l1ArIBe fUm3K3f0piz4AzZfXwSMEUa/S4piXA/jqRz/IVKUT4DzVdclM6t82pJV/sOfc0nY0sqF Lkpha4XQESzL9UiuYfGms5Vr5xKebeVBmX6dk1TqGKfYL0vFcAJRsHSbUXQ+tPU3aQV5 hqTVflH2UoxLBq6OJSSajAMHQwK94TgLHq7OFnYF7qoIOI7BGCm7F9BlZxIz+fLSuYk5 AZz3bRQipBt5fTGFA1lpspJwuaIx/bGddxOZQv+PtG4rnaNIibpCJs9XFPsa9dLFPpbO 9dPQ== X-Received: by 10.140.28.247 with SMTP id 110mr6163522qgz.16.1436948665758; Wed, 15 Jul 2015 01:24:25 -0700 (PDT) Received: from mail.hotmail.com (blu004-wss1s5.hotmail.com. [134.170.2.220]) by smtp.gmail.com with ESMTPSA id z76sm1903248qge.22.2015.07.15.01.24.24 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Jul 2015 01:24:25 -0700 (PDT) Received: from BLU437-SMTP18 ([134.170.2.215]) by BLU004-WSS1S5.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 15 Jul 2015 01:24:24 -0700 X-TMN: [aSTL+jlXZFXeeTGR0Ye0ZWlg73bzOtOl] Message-ID: From: Bin Meng To: Simon Glass , U-Boot Mailing List , Saket Sinha Date: Wed, 15 Jul 2015 16:23:41 +0800 X-Mailer: git-send-email 2.3.2 (Apple Git-55) In-Reply-To: <1436948627-1521-1-git-send-email-bmeng.cn@gmail.com> References: <1436948627-1521-1-git-send-email-bmeng.cn@gmail.com> X-OriginalArrivalTime: 15 Jul 2015 08:24:22.0601 (UTC) FILETIME=[A7313390:01D0BED7] MIME-Version: 1.0 Subject: [U-Boot] [PATCH 04/10] x86: pci: Do not assign irq 0 to pci device X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" IRQ 0 is reserved and should not be assigned to pci device. Signed-off-by: Bin Meng Acked-by: Simon Glass --- arch/x86/cpu/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/pci.c b/arch/x86/cpu/pci.c index fdfd5f7..f8da080 100644 --- a/arch/x86/cpu/pci.c +++ b/arch/x86/cpu/pci.c @@ -172,6 +172,8 @@ void pci_assign_irqs(int bus, int device, u8 irq[4]) continue; line = irq[pin - 1]; + if (!line) + continue; debug("Assigning IRQ %d to PCI device %d.%x.%d (INT%c)\n", line, bus, device, func, 'A' + pin - 1);